android-launcher

How to prevent custom home launcher app restart activity?

為{幸葍}努か 提交于 2019-11-29 04:50:29
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 screen with app icons, it zooms out to see a snapshot of all screens, If you open a drawer and press Home,

Launcher Icon is not Shown in Oreo 8.0/8.1

回眸只為那壹抹淺笑 提交于 2019-11-28 19:08:40
Explanation: I have a working app in google play market. Everything works fine in android versions from 4.0-7.0. Case: When the client downloaded it on his Android 8.0 (Oreo) a launcher icon did not seem to show instead android's default launcher icon is showing!! Question: Anyone who has encountered such issue? I need any hints to solve it since it seems weird because I have all 4 typed .png icons in mipmap folder. Yes, I also faced the same issue in Android Oreo. 1) Add your images by adding in Image Vector This might not be the ideal solution. But deleting the directory named mipmap-anydpi

App completely restarting when launched by icon press in launcher

时间秒杀一切 提交于 2019-11-28 18:05:53
I'm in the process of trying to make a release build of my first android app to send to a few testers. However, I ran into a problem with it. When you exit the app and then re-enter it by launching it via its icon, it restarts the whole app instead of returning to it's previous location. This occurs even if you re-enter right after exiting. However, it does not happen if I hold the Home button and launch it through the recent apps list. I've searched online for others having this problem and there are a few, but no one has ever had a solid answer as to why it's happening to them. It's been

android: choose default launcher programmatically

旧时模样 提交于 2019-11-28 05:08:51
I want to pop up a dialog that lets the user choose a launcher to be launched with set as default option . I tried Intent home = new Intent(Intent.ACTION_DEFAULT); home.addCategory(Intent.CATEGORY_LAUNCHER); Intent chooser = Intent.createChooser(home, "Launcher"); context.startActivity(chooser); But the dialog popped by this does not have the option to set default. While the following code will not pop up the dialog if a default launcher is already set. Intent startMain = new Intent(Intent.ACTION_MAIN); startMain.addCategory(Intent.CATEGORY_HOME); startMain.setFlags(Intent.FLAG_ACTIVITY_NEW

How to change the icon and label of an app once it is installed?

 ̄綄美尐妖づ 提交于 2019-11-28 04:39:36
问题 I am trying to change the icon and label of my app once it is installed. In the manifest, i put this code : <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/MyTheme" > // 1st Activity declaration <activity android:name=".activities.SplashScreenActivity" android:configChanges="orientation|keyboardHidden|screenSize" android:screenOrientation="portrait" android:theme="@style/Theme.Sherlock.NoActionBar" > <intent-filter> <action android:name

How do I set the default launcher in an AOSP build?

三世轮回 提交于 2019-11-27 12:42:55
问题 I am modifying the AOSP source code because my app needs to run in a kiosk environment. I want Android to boot directly into the app. I've excluded launcher2 from generic_no_telephony.mk , and added the app there. Now Android prompts me all the time to choose default launcher . The two choices that are available on the pop-up: Home Sample My app. How can I exclude the Android Home Sample Launcher? Or is there another way to set the default launcher in an AOSP build? 回答1: Instead of modifying

App completely restarting when launched by icon press in launcher

霸气de小男生 提交于 2019-11-27 11:03:03
问题 I'm in the process of trying to make a release build of my first android app to send to a few testers. However, I ran into a problem with it. When you exit the app and then re-enter it by launching it via its icon, it restarts the whole app instead of returning to it's previous location. This occurs even if you re-enter right after exiting. However, it does not happen if I hold the Home button and launch it through the recent apps list. I've searched online for others having this problem and

How to change launcher icon and it's label from the application

夙愿已清 提交于 2019-11-27 03:00:03
问题 How can I change the launcher icon and its label from my application runtime in Android? (if it is possible) I mean the properties defined in AndroidManifest.xml : android:icon and android:label . I want to replace it by the image I take from the camera. 回答1: Edit: your original answer didn't specify you wanted to do it at runtime. Below the line is how to do it before it compiles. As for doing it programmatically at runtime: From this answer: You cannot change the manifest or the resource in

Android application restarts when opened by clicking the application icon

十年热恋 提交于 2019-11-27 02:52:23
问题 I am new to the Android development world and I've built a simple "Hello World" app. First, activity requests a text. When the "Go" button is clicked, the app launches the second activity displaying the input text. If I click the HOME button and then click the application icon, the app launches the first activity again but if I press-hold the home button and click the icon from the "Recent apps" bar, it resumes the app where I left. How do I avoid this? I need my app to resume even if the

Launcher Icon is not Shown in Oreo 8.0/8.1

梦想的初衷 提交于 2019-11-27 01:13:32
问题 Explanation: I have a working app in google play market. Everything works fine in android versions from 4.0-7.0. Case: When the client downloaded it on his Android 8.0 (Oreo) a launcher icon did not seem to show instead android's default launcher icon is showing!! Question: Anyone who has encountered such issue? I need any hints to solve it since it seems weird because I have all 4 typed .png icons in mipmap folder. 回答1: Yes, I also faced the same issue in Android Oreo. 1) Add your images by