My app shows different icon on phone app setting - android

Apps shows different icon on phone app settings and icons are normal anywhere else I tried different icons and restart emulator but nothing happened help me please.
App on menu:
App on settings:
App on task:

Possibly, your app has an icon in both the <application> and <activity> elements in the AndroidManifest.xml. If these icons are different, you will see the <activity> icon on the home screen (because it starts the activity), and the <application> icon in the settings (because it represents the app).

Related

Samsung Galaxy: Running Android app disappears from background stack list

On my Samsung galaxy tablet, when the app goes to background (by pressing the home screen), it completely disappears from the back stack (where you can see all the open apps). Yet when I open the app with the icon manually again the state is clearly restored.
Is this a manifest settings or similar? I cant figure it out
This happens when you have android:excludeFromRecents="true" in your manifest launcher activity. Try set it to false:android:excludeFromRecents="false"

Custom Launcher is not remaining as default launcher in Huawei device

I have developed a custom launcher/homescreen and it has been working perfectly on all android version for nearly two years. So far this launcher has been used in various Samsung devices.
Currently I am testing it in new huawei lua-u22 device. My launcher runs, can be set as default and shows up other apps on top of launcher too. But if I run another app (for example Gmail), screen lock(Swipe only) for 20-30 second, unlock device then press back button then instead of bringing it back to my launcher it goes back to default huawei homescreen. I checked by going to the settings-> home and there my launcher was still set as default. It only brings back my launcher home screen when I press home button again.
Is this problem of huawei device that is always redrawing default huwaei home as homescreen? Is there anyway I can track default selected home change at any time?
I found out the reason. In huawei after screen is tuned off my app was getting killed.
Huawei has a feature Protected Apps which allows application that is enabled in the list to keep running when screen is turned off. After I allowed my app in Protected apps it was not getting killed after screen turned off and everything now working properly.
To enable this feature go to System settings (which you can either find in the quick toggles portion of the notification shade by pulling down the status bar on the top portion of the screen). Go to All tab, Scroll down to Privacy and Security section, go to to Protected Apps and enable your app(this will control what’s allowed to run when the screen is off and what isn’t)
In stackoverflow there are few codes available to run this screen pro-grammatically which I do not find reliable enough as it may change in any new version of device.

Android: system notification icon

I'm developing an Android application that implements a vpn service.
During the lifetime of a VPN connection, a system-managed notification is shown, as is reported on the documentation: http://developer.android.com/reference/android/net/VpnService.html
This notification actually seems to show the icon I provided as application icon, but I noticed that the icon is resized on some devices and its ratio is modified. I made the various launcher icons (ldpi,mdpi...xxxhdpi) according to the size here: http://developer.android.com/design/style/iconography.html
Where am I wrong? Where does that system notification icon is taken by the system?
By default, a VpnService, like any Service inherits the icon from your application unless you specify one in your manifest via android:icon. You should create an icon per the notification icon specifications (tools like Android Asset Studio can help) and set that as the android:icon for your service:
<service android:name=".ExampleVpnService"
android:icon="#drawable/notification_icon"
android:permission="android.permission.BIND_VPN_SERVICE">
<intent-filter>
<action android:name="android.net.VpnService"/>
</intent-filter>
</service>
I'm afraid that's not possible.
Pre-Lollipo, look at Vpn.java:504 - it loads the launcher icon specifically. It seems quite deliberate - probably due to security concerns to prevent misleading the user.
Post Lollipop they moved it into Quick Settings UI, so I'm not sure there's an icon, but if there is, its probably hardcoded to use the launcher icon as well, for the same reasons.

Show full application name on Home screen

My app name contains 12 characters. But application launcher icon appears with truncated text.
As i observed this issue is not produced in all device. I am using device with OS 4.0.3.
App launcher icon should show full app name regardless of app name length.
Is there any property available in Android Manifest to set app name without eclipsing? or Is it default behavior of device that apply on all launcher icons?
Thanks in advance.
Imagine a name like TheCoolestAppIveEverDoneAndWantToBeDisplayedCompletely. Imagine that to be forcing its whole title to show.
This is why there is no such option. And there really is none. The only thing you could do is develop your own launcher or contact the devs of other third-party launchers.

Flex app installed on my android phone, does not create a shortcut icon

Apk file from Flex to make the Android phones have been installed.
Shortcut icon does not appear on the screen.
What should I do?
First check if in Playstore setting if auto add widgets is checked or not.
Second mark automatically add home screen shortcuts checkbox in home screen launcher settings.
Third installing app on different device and check if you are getting shortcut or not.

Categories

Resources