homescreen

add my app to the “add shortcut” list to have a shortcut on homescreen

感情迁移 提交于 2019-12-08 03:20:52
问题 As you know when you long press on the home screen, the phone shows up a list menu. You can add shortcuts, widgets, Folders, etc. I would like my app to be in the shortcut list. How can I do that? 回答1: That functionality is already there by default, they just have to choose from the "Applications" list. You can't add directly to the main shortcuts list (it would get far too cluttered quickly), that's provisioned by the operating system and to my knowledge cannot be populated by a third party

Android homescreen shortcut permission error

廉价感情. 提交于 2019-12-06 21:41:11
问题 In my program it adds a shortcut to the screen. I get the icon on the screen fine, but when I tap it, I get: 03-01 20:00:29.410: ERROR/AndroidRuntime(796): java.lang.SecurityException: Permission Denial: starting Intent { data=http://www.example.com/ flags=0x14000000 comp={com.isaacwaller.example/com.isaacwaller.example.ExampleCut} } from ProcessRecord{435c7398 796:android.process.acore/10005} (pid=796, uid=10005) requires null Do you know the problem? Thanks, Isaac 回答1: I had something like

add my app to the “add shortcut” list to have a shortcut on homescreen

那年仲夏 提交于 2019-12-06 05:26:26
As you know when you long press on the home screen, the phone shows up a list menu. You can add shortcuts, widgets, Folders, etc. I would like my app to be in the shortcut list. How can I do that? That functionality is already there by default, they just have to choose from the "Applications" list. You can't add directly to the main shortcuts list (it would get far too cluttered quickly), that's provisioned by the operating system and to my knowledge cannot be populated by a third party application. Shortcuts had existed since API level 1, and can be used by 3rd party apps as well. To add an

Android home-screen/launcher chooser does not show 'use by default for this action' option

人走茶凉 提交于 2019-12-06 04:16:06
问题 I am trying to launch the Home-screen/Launcher chooser dialog programmatically by using the following intent: Intent i = new Intent(Intent.ACTION_MAIN); i.addCategory(Intent.CATEGORY_HOME); i.addCategory(Intent.CATEGORY_DEFAULT); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(Intent.createChooser(i, "Set My HomeScreen as default")); But unfortunately the dialog that appears with the list of installed home-screen launchers does not have the Use by default for this action option at

iPhone Web App on Home Screen + Facebook Authenticate

≡放荡痞女 提交于 2019-12-06 03:36:39
Gurus of SO I have a working web app which works well enough with Facebook Connect. But when I post the Web App to the Home Screen on iOS 4.3.4 & click on 'FB Login' in the app -> it triggers Safari to open up and I end up leaving the Home Screen view. Is there anyway to login from the Home Screen app itself and not trigger Safari? Thank you. Tried target="_webapp", target="_blank", etc none of those worked for me. This bit of javascript worked just fine for me: <a href="#" onclick="window.open('<put your facebook login URL here>','_parent'); ... It is doing this to verify the Facebook login

iPhone: Safari vs. launch from “Home Screen” bookmark

北战南征 提交于 2019-12-06 02:11:21
What's the difference between these two? Do they both launch Safari (with the exception that the home-screen doesn't show a URL/tool bar? I've found weird quirks that appear in home screen version..do they have different rendering engines? For example, mailto: doesn't work in home-screen mode, and there are some small rendering/css-styling bugs that don't appear if I visit my web application from mobile Safari. Thanks! Apple is using two different Runtime Environments for the Sarari Browser when launched as a browser or as a Homescreen app. The Homescreen environment suffers from multiple

Is there any way to put an EditText/input field into a homescreen widget?

馋奶兔 提交于 2019-12-05 20:58:32
问题 I want my user to input something on the homescreen, but every time I add an Edittext to the widget it breaks. I did a little google searching to find that they apparently are not supported in widgets. There is a Google Search widget with an input field on every android phone though, so I am wondering if there is any way to have one in my widget. Thanks in advance EDIT: I noticed that the Google search bar doesn't actually have an input, instead it just opens an activity on touch. But there

Android widget get touch position

走远了吗. 提交于 2019-12-05 07:21:41
问题 is it possible to get the position of a touch when the user touches my widget on the homescreen? TIA edit: my widget code: public class MyWidgetProvider extends AppWidgetProvider { public static String ACTION_WIDGET_MEMO = "comNgarsideMemoActionWidgetMemo"; public static String ACTION_WIDGET_PEN = "comNgarsideMemoActionWidgetPen"; public static String ACTION_WIDGET_ERASER = "comNgarsideMemoActionWidgetEraser"; public static String ACTION_WIDGET_UNDO = "comNgarsideMemoActionWidgetUndo"; public

Android homescreen shortcut permission error

青春壹個敷衍的年華 提交于 2019-12-05 01:23:47
In my program it adds a shortcut to the screen. I get the icon on the screen fine, but when I tap it, I get: 03-01 20:00:29.410: ERROR/AndroidRuntime(796): java.lang.SecurityException: Permission Denial: starting Intent { data=http://www.example.com/ flags=0x14000000 comp={com.isaacwaller.example/com.isaacwaller.example.ExampleCut} } from ProcessRecord{435c7398 796:android.process.acore/10005} (pid=796, uid=10005) requires null Do you know the problem? Thanks, Isaac I had something like this happen when I had accidentally duplicated the activity tag for one of my activities in my manifest. I

Homescreen widget, listView shows “Loading”

早过忘川 提交于 2019-12-05 00:01:28
To start off, an image says thousand words: This takes place although getViewAt is called 4 items as my cursor size is. Here's the code: public class WidgetService extends RemoteViewsService { @Override public RemoteViewsFactory onGetViewFactory(Intent intent) { System.out.println("Factory"); return(new WidgetViewsFactory(this.getApplicationContext(), intent)); } } The widget provider: public class WidgetViewsFactory implements RemoteViewsService.RemoteViewsFactory, LNTConstants { private Context context = null; ArrayList<DBItemModel> items; public WidgetViewsFactory(Context context, Intent