homescreen

Android | bookmark icons on homescreen

你离开我真会死。 提交于 2019-11-30 05:22:40
问题 bookmark and add to my homescreen 60x60 icon does not apprear. Make <link rel="apple-touch-icon" href="images/iphone.png"/> Size: 60x60 pixels. tried 8bit and 24bit ping! Does not work. Site is on a localhost and not 'online'. on http://news.bbc.co.uk/sport if I bookmark and add to my homescreen it works! Why? They use: <link rel="apple-touch-icon" href="/sol/shared/img/iphone-sport.png"/> Any help appreciated 回答1: For Android to pick up the icon you need a precomposed icon <link rel="apple

Changing iphone lock screen programmatically when app is running in background

馋奶兔 提交于 2019-11-30 04:08:13
I am developing an iphone app where i have to change lockscreen image programmatically when app is running in background.I have got lots of stuff saying it is not possible but there is an app for this please let me know how to acheive this. Thanks. The only way you can change the lockscreen image is when you are playing audio. Police Scanner+ does play audio, and therefore can set an image. This only works with iOS 5+ and is done something like this. - (void)setupNowPlayingInfoCenter:(MPMediaItem *)currentSong { NSString *ver = [[UIDevice currentDevice] systemVersion]; CGFloat version = 4.0;

Homescreen shortcuts with icons

核能气质少年 提交于 2019-11-29 15:21:06
问题 Am trying to create a homescreen shortcut programmatically on android. So far I've been able to add the shortcut itself with the following code: Intent shortcutIntent = new Intent(); shortcutIntent.setClassName(mContext, mContext.getClass().getName()); shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); shortcutIntent.putExtra("someParameter", "HelloWorld 123"); Intent addIntent = new Intent(); addIntent.putExtra(Intent.EXTRA

Check if web app is added to home screen on Android

ぐ巨炮叔叔 提交于 2019-11-29 10:12:11
I have a web app and on the Android I would like to display an alert describing how to add my app to the home screen. (Add it to "Bookmarks" and then "Add it to home screen" or "Add to shortcut in Home"). Then a icon will be displayed on the screen that opens my app. But off course I only want this to show if the app is not added to the home screen. Does anybody know how to do this? Any input appreciated, thanks. Yes, you can. While technically a page open in Chrome browser tab can't directly check whether a home screen shortcut exists, the page's local data ( localStorage , IndexedDB) is

How can I have a home screen shortcut launch a dialog?

久未见 提交于 2019-11-29 05:21:14
Okay, I asked another question here trying to make my activities look like dialogs. I'm thinking maybe instead of asking about a specific method, I should ask about what I'd like to do, and perhaps there is a different way to go about it... Here's what I have. My app allows shortcuts to be placed on the home screen. The code and logic for creating the shortcuts all works flawlessly, and the shortcuts then launch the proper activity which shows what it's supposed to... again, all works flawlessly. What I'm wondering though, is is there a way to have the home screen shortcut launch my activity

Get number of Home screens in Android?

≯℡__Kan透↙ 提交于 2019-11-29 05:20:47
I'm making a Live wallpaper for Android, and I want it scroll as user scroll the home screen. I can do that, but on some phones, user can choose the number of home screen. Is there anyway to get the number of home screen? Thanks. There is actually a way to know the number of home screens. The 'onOffsetsChanged' call provides to arguments for that porpouse: float xOffset and float xOffsetStep. xOffset goes from 0 to 1 and xOffsetStep represents the step size for each home scree. So if you configure your home screen with 6 'desktops' xOffsetStep would be 0.2. So the final way to check the number

Red dot (circle) next to the app name below the app icon on the iPhone Home Screen on iOS 8

旧街凉风 提交于 2019-11-29 04:26:14
问题 What does the red dot (circle) next to the app name below the app icon mean? I added a Today Extension (Widget) to the app. It appears only when I launch the app on the iOS 8, it does not appear on iOS 7 simulator. Even though I removed the extension and cleared the simulator, it still appears before the app name. 回答1: An Orange dot next to an app normally means it's a beta version, as installed through Testflight. I have a couple of those at the moment, though one looks more red. Trying to

Changing iphone lock screen programmatically when app is running in background

点点圈 提交于 2019-11-29 01:58:14
问题 I am developing an iphone app where i have to change lockscreen image programmatically when app is running in background.I have got lots of stuff saying it is not possible but there is an app for this please let me know how to acheive this. Thanks. 回答1: The only way you can change the lockscreen image is when you are playing audio. Police Scanner+ does play audio, and therefore can set an image. This only works with iOS 5+ and is done something like this. - (void)setupNowPlayingInfoCenter:

Check Widget is Placed on Android Screen

感情迁移 提交于 2019-11-28 23:48:45
Can someone tell me how to check that my widget have been placed on the homescreen? I have some code in my app that should run only if the widget is placed on the homescreen. You need to store that information yourself. I usually use the application preferences, but you could use anything. Generally widgets use services to communicate, so your code that does stuff is likely in a service, but using the preference allows any portion of your app to access this. In your widget class that extends AppWidgetProvider the onEnabled is called when the widget is put on a homescreen and the onDeleted is

How to make 4x1 size widget on Android homescreen?

a 夏天 提交于 2019-11-28 21:24:51
I have difficulties developing 4x1 widget for Android. This is the appprovider <?xml version="1.0" encoding="utf-8"?> <appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:minWidth="294dp" android:minHeight="72dp" android:initialLayout="@layout/main" /> And here is the main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="320dp" android:layout_height="100dp" android:gravity="center_vertical|center_horizontal" android:orientation="horizontal"> //content goes here <