android-launcher

Android launcher press home in launcher to go to default screen

巧了我就是萌 提交于 2019-12-12 08:14:08
问题 In the default android launcher, pressing home while in another activity will start the launcher. Pressing home again while in the launcher will reset to the default home screen page. I don't understand how this can be done. Android sends the same intent whether the launcher is in the foreground or not. Home key also cannot be intercepted by user apps. Is there a way to achieve this? 回答1: Android sends the same intent whether the launcher is in the foreground or not. Correct. Home key also

Can Android Application Launch Start an Activity That Has No Intent-Filter?

纵饮孤独 提交于 2019-12-12 03:59:11
问题 I have many "internal" activities in my Android application that I only want to be started from inside my application by code I've written. These "internal" activities have no intent-filter tag in the Android manifest file. I have one activity, named SplashActivity, that I use as a splash screen that has the typical launch intent-filter: <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> I was

Android - customize “your recent screens appear here” / “your recent apps” screen

[亡魂溺海] 提交于 2019-12-12 02:18:29
问题 I realy dint know how this screen is named :/ i called it after the message it shows when no app is running "your recent screens appear here". It basicly shows all apps currently runnning on the device. So you know what im talking about here screens (sry big and spammy) with and without running apps. The second screen also shows the google widget i want to get rid off. Is there a way to adjust the "your recent screens appear here" screen on Android phones and Tablets? Is there a solution

Always disable status bar and bottom bar in a custom launcher

左心房为你撑大大i 提交于 2019-12-12 00:55:34
问题 I need to write custom android launcher with only one my application and with disabling android system statusbar and bottom bar. Here is my code in AndroidManifest.xml <activity android:name=".MainActivity" android:launchMode="singleTask" android:stateNotNeeded="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER"/> <category android:name="android.intent.category.HOME" /> <category android:name="android.intent

How to embed app drawer / app launcher in Android Application

烂漫一生 提交于 2019-12-11 21:53:47
问题 I'd like to embed the app drawer within an activity/layout in my android app. Has anyone seen an example of how this can be done? I did a StackOverflow search and I wasn't able to find anything useful... https://stackoverflow.com/search?q=app+drawer 回答1: Download DevApps Direct on your device. All the samples DevApps showcases are open source. It has an example called "Sliding up Panel", with its code here. But note that you'll also need to merge the code for this gridview example if you want

No activity found to handle Intent/no launcher activity found manifest file issue

删除回忆录丶 提交于 2019-12-11 20:21:55
问题 Here's the problem guys, first i tried to run my application with Launch default activity as launch action (Run Configurations --> Android --> Launch action), the logcat kept telling me that it can't find the launcher activity and the application wouldn't even start, problem is i defined my launcher activity in the manifest file, but it's like it's not reading it at all. So i tried to launch the splash activity by specifically telling it to run it through run configurations, it did launch but

Shortcuts vs Launcher Widgets (Android)

与世无争的帅哥 提交于 2019-12-11 15:29:18
问题 We have enabled shortcuts for two of our app screen. Using manifest, we have initialized Activity which is referring to the shortcut as below. <activity android:name=".ui.shortcuts.ShortCut1" android:screenOrientation="portrait" android:icon="@drawable/shortcut1" android:label="@string/app_shortcut_name1" android:theme="@style/AppLightTheme"> <intent-filter> <category android:name="android.intent.category.DEFAULT" /> <action android:name="android.intent.action.CREATE_SHORTCUT" /> </intent

Android - onNewIntent is not called - singletop activities

天涯浪子 提交于 2019-12-11 12:17:41
问题 I have launcher A (activity A1) and application B (activities B1, B2 both singletop). A1 -> B1 -> B2 -> A1 -> B2. However onNewIntent wasn't called on activity B2, B2 did call direct onResume but not onNewIntent. Launcher A : Activity A1: Intent app_B = getPackageManager().getLaunchIntentForPackage(PACKAGE_B); startActivity(app_B); I want: A1 -> B1 -> B2 -> A1 -> B2.onNewIntent(Intent intent) But not: A1 -> B1 -> B2 -> A1 -> B2.onResume() Can someone helps me out? Thanks. (Debug on Android 4

Load launcher app again?

删除回忆录丶 提交于 2019-12-11 03:01:22
问题 I have a custom launcher. When I install it, I open it for the first time and use the following code to load the intent chooser for the launchers: Intent localIntent = new Intent(Intent.ACTION_MAIN); localIntent.addCategory(Intent.CATEGORY_HOME); localIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(localIntent); My app will show the all the launchers. Then I choose the other launcher, the one that's notm y launcher, and set it to default. Then the next time the code above runs,

Detect the click event of home button in android (application launcher icon)

六眼飞鱼酱① 提交于 2019-12-11 00:54:12
问题 How to identify the click event in the application launcher icon in android? I need to go to home screen once the user click on this icon. For example, assume this is the manifest file: <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" .......... Using the following code segment in main activity inside onCreate() actionBar=getActionBar(); actionBar.setHomeButtonEnabled(true); the application icon is click-able .I don't' have any way