android-launcher

How to get available “app shortcuts” of a specific app?

自闭症网瘾萝莉.ら 提交于 2019-12-03 01:11:51
Background Starting from API 25 of Android, apps can offer extra shortcuts in the launcher, by long clicking on them: The problem Thing is, all I've found is how your app can offer those shortcuts to the launcher, but I can't find out how the launcher gets the list of them. Since it's a rather new API, and most users and developers don't even use it, I can't find much information about it, especially because I want to search of the "other side" of the API usage. What I've tried I tried reading the docs ( here , for example). I don't see it being mentioned. Only the part of other apps is

Android Manifest Launcher Not Found

若如初见. 提交于 2019-12-02 19:14:52
问题 I changed my Launcher activity to a different activity than the default Activity. But when I am running the Application I am not able to start the application. In the logCat it is saying that the application has been installed but I am not able to see the app in the home screen. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.collegehack" android:versionCode="1" android:versionName="1.0" > <uses-sdk android

Properly skip login activity if already logged in

安稳与你 提交于 2019-12-02 17:41:28
My launcher icon currently starts the login activity. I've stored the logged in status in SharedPreferences. Is there any way to properly skip the login activity and go straight to the main activity without any UI glitches. All existing solutions involving finish() in onCreate() cause the login activity title to be briefly visible or some other brief blank screen UI glitch. Have a launcher acitivy with no UI that decides to open the MainActivity or the LoginActivity. You can declare no UI with: android:theme="@android:style/Theme.NoDisplay" Two other possible solutions: Just do it the other

Home Launcher issue with Fragments after reboot

不打扰是莪最后的温柔 提交于 2019-12-02 07:13:47
问题 I am developing an application that will be used in an industrial setting as a handheld interface, distributed and preconfigured by my workplace. I am working on making the application run as the Home Launcher so that there will be less temptation for the tablets to "go missing". BACKGROUND I have the following in my manifest to make the application a Launcher: <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.HOME" />

Android Launcher Shortcuts

对着背影说爱祢 提交于 2019-12-01 13:58:35
I have made a simple punch in / punch out time clock application. I want to add the user the option of making a shortcut on the homescreen that will toggle the state of the app(time out / time in) but I don't want this shortcut to open up the app on the screen at all. here is my setupShortcut() private void setupShortcut() { Intent shortcutIntent = new Intent(this, Toggle.class); // shortcutIntent.setClassName(this, Toggle.class.getName()); shortcutIntent.putExtra(EXTRA_KEY, "ToggleShortcut"); shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); Intent intent = new Intent(); intent

Android Launcher Shortcuts

為{幸葍}努か 提交于 2019-12-01 12:53:19
问题 I have made a simple punch in / punch out time clock application. I want to add the user the option of making a shortcut on the homescreen that will toggle the state of the app(time out / time in) but I don't want this shortcut to open up the app on the screen at all. here is my setupShortcut() private void setupShortcut() { Intent shortcutIntent = new Intent(this, Toggle.class); // shortcutIntent.setClassName(this, Toggle.class.getName()); shortcutIntent.putExtra(EXTRA_KEY, "ToggleShortcut")

How to remove application shortcut from home screen on uninstall automatically?

天大地大妈咪最大 提交于 2019-12-01 05:15:44
I'm developing an application that should add its shortcut to home screen after installation and remove it after the application is being uninstalled. The application will be preinstalled on the end user device, but still should have an option for uninstall). The task looks very simple but I've faced lots of troubles implementing it. What I have done: Add shortcut to the home screen using com.android.launcher.action.INSTALL_SHORTCUT on app first launch or on newt device reboot. MANUALLY remove shortcut using com.android.launcher.action.UNINSTALL_SHORTCUT. What I can't (and almost giving up):

What are alternative ways to launch my app?

半世苍凉 提交于 2019-11-30 04:55:58
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 counted as default) and my app Ways for usual users are preferred, but more difficult approaches will

App not listed in launcher due to <data android:scheme=“http” /> in AndroidManifest.xml

心已入冬 提交于 2019-11-29 19:51:43
问题 When I add <data android:scheme="http" /> in AndroidManifest.xml, it causes my app not to be listed in the launcher anymore. Why? AndroidManifest.xml without <data android:scheme="http" /> : <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.ebookfrenzy.mywebview" > <uses-permission android:name="android.permission.INTERNET" /> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="

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

大兔子大兔子 提交于 2019-11-29 11:11:22
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="android.intent.action.MAIN" /> // I removed the next line to put it with the alias : // <category