android-launcher

Create shortcuts in Home screen android

杀马特。学长 韩版系。学妹 提交于 2019-12-23 04:52:14
问题 This question may sound duplicate but there is no answer that i found is working: I have gone through these question(s): Android create shortcuts on the home screen But the proposed solution is not working. I have used the below solution which is working in API Level < 23 Intent shortcutIntent = new Intent(context, LedgerDetailActivity.class); shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); Intent addIntent = new Intent();

Android Wear Launcher

情到浓时终转凉″ 提交于 2019-12-21 04:57:20
问题 I am wondering how the Android Wear launchers like Swipify and Wear Mini Launcher intercept touch events on the android wear home screen . I have tried adding the onTouch and onClick listeners to the Watch View Stub in my app so far, but I can not figure out how to get touches that occur outside of my app. 回答1: In fact, the views are directly added in the WindowManager in a Service . You can take a look at this thread to understand how it works: Creating a system overlay window (always on top

How to add custom view in android's JellyBean Launcher

[亡魂溺海] 提交于 2019-12-20 11:09:07
问题 I am working on making custom launcher in android. I have referred the code of android's Jellybean launcher. now I want to make some modification in this launcher. What I want : As we know there are default five work-space screens and I want to add custom view in any one of the workspace screen. My xml file should be inflated in any one of the screen. I have tried many ways to do it but as the default launcher code is very complex still having no luck to finding out way for it. There is

How to add custom view in android's JellyBean Launcher

*爱你&永不变心* 提交于 2019-12-20 11:06:14
问题 I am working on making custom launcher in android. I have referred the code of android's Jellybean launcher. now I want to make some modification in this launcher. What I want : As we know there are default five work-space screens and I want to add custom view in any one of the workspace screen. My xml file should be inflated in any one of the screen. I have tried many ways to do it but as the default launcher code is very complex still having no luck to finding out way for it. There is

android launcher page on the menu

强颜欢笑 提交于 2019-12-20 06:47:49
问题 I'm running my android app on my droid x2 device. this app has a menu with some items, one of which is the Home (the screen that launches when the app starts). the problem is that when I tap on the Home item it brings up this menu, I don't know why it does that and how i can fix it. It works fine on the simulator, I'm gussing this is something that needs to be set up on the device. I need to know if some has seen this menu before and if so what it is and when it shows up? 回答1: I actually fix

What are alternative ways to launch my app?

痴心易碎 提交于 2019-12-18 11:48:10
问题 I can launch my app by: Tapping on its icon in launcher Registering "visible" intent-filter (I mean - user clicks for example "Send with.." then chooses my app) Entering numeral code in dialer and "call" - "invisible" intent, user cannot choose app, he just enters code Are there any other ways to launch my app? (I'm mostly interested in something else like "invisible" intent from paragraph 3). Assume that we have clean device only with default system apps (most popular of Google apps are also

How to prevent custom home launcher app restart activity?

隐身守侯 提交于 2019-12-18 04:23:07
问题 I am working on my own home launcher replacement and it works fine but one thing bothers me. When I press a home key, current home activity (the one defined in manifest as main/defualt/launcher/home) restarts - current activity instance onpause is executed and oncreate is fired again, so new activity is brought up. On the other hand, ADW launcher and LauncherPRo does not behave like that - I do not a refresh like in my case. Launcher Pro even can do several actions: If you are on the main

Android: launchMode singleTop not working if app opened from another app

China☆狼群 提交于 2019-12-12 13:36:37
问题 I have an application, which misbehaves if started from another app (e.g. over the playstore). Instead of resuming to the already existing Activity , it restarts as a new instance. What I have: declared every activity with launchMode="singleTop" in manifest.xml I tried the same with launchMode=singleTask , but it has the same behaviour used additional intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP) on every Intent which starts a new Activity onNewIntent() is not called in already running

Android - clear the recent app list (shown after long HOME press)

北战南征 提交于 2019-12-12 11:27:10
问题 I'm writing a custom launcher app. The problem is even after setting it as default, the long press of HOME button brings recent app list, including old launcher. Is it possible to clear the recent app list? 来源: https://stackoverflow.com/questions/6723132/android-clear-the-recent-app-list-shown-after-long-home-press

Is it possible to get the shortcut layout of Launcher and use it in our own widget?

我怕爱的太早我们不能终老 提交于 2019-12-12 10:03:13
问题 I've noticed that the appearience of Dropbox shortcut-like widget to specified folder is consistent with shortcut layout no matter which launcher we use: So I want to make such a widget that behaves and looks like shortcut and is consistent with user's launcher. Is it possible to get the shortcut layout of Launcher and use it in our own widget? 回答1: Aside from AppWidgets , Android also has a concept of Launcher Shortcuts that are often grouped under the "Widget" label. That Dropbox folder is