android-launcher

Hide application icon from launcher [duplicate]

半世苍凉 提交于 2020-01-03 06:40:07
问题 This question already has answers here : How to Hide app from launcher in Android [duplicate] (1 answer) Android how to programmatically hide launcher icon (4 answers) Closed 5 years ago . I have an android application. I want to hide app icon from launcher screen & make it visible again after dialing some no i.e "1234" . Any helpful code snippet will be appreciated. 回答1: Have a look on this link. May be it will help you hidden App Edit 1: First: PackageManager p = getPackageManager(); p

Creating Home Replacement app?

安稳与你 提交于 2020-01-03 04:51:18
问题 I want an application that acts as a Home Replacement app. There are several activities when you first launch the app that allow you to configure basic settings. Then you get to the Home Screen. In the Android Manifest, I have added the following lines: <activity android:name="com.tabletnanny.HomeScreenMain" android:theme="@style/Theme" android:launchMode="singleInstance" android:stateNotNeeded="true"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name

How do I programmatically set the default launcher app? [duplicate]

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-01 10:17:12
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Android: change default Home Application I want to create a program like "Home Switcher" that can programmatically set the default launcher. I have no code written yet but can kind of figure out how to find the available launcher apps, but I have no idea how to programmatically set the default. Can anyone point me in the right direction? 回答1: This is not possible, except perhaps via some security flaw. I will

Overlay Status bar on android 4.2.2+

故事扮演 提交于 2020-01-01 06:33:07
问题 I want to overlay android status bar. In my case it is on top. I do not want to overlay or hide navigation bar. Note : Solution must work on android 4.2.2+. I prefer answers for non-rooted device. I have searched many SO questions and answers, but none works on 4.2.2. Below is my code, but it does not consume touch events. That's why status bar opens its panel. And I do not want this. @Override public void onCreate() { super.onCreate(); windowManager = (WindowManager) getSystemService(WINDOW

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

依然范特西╮ 提交于 2019-12-30 08:51:58
问题 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

How to resume previous activity instead of going to default HOME launcher

岁酱吖の 提交于 2019-12-25 02:29:46
问题 I have created a settings activity which will get fired when I press the two volume keys simultaneously. I am invoking this settings activity using an Intent from PhoneWindowManager.java as below, Intent intent = new Intent("com.MyApp.Settings.EXT_SETUP"); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); mContext.startActivity(intnt); I am also running a custom launcher application. While the custom launcher is running, I am able to invoke my settings Activity by pressing the volume buttons.

How to restart an Android Activity?

谁说胖子不能爱 提交于 2019-12-24 03:37:25
问题 I am creating an application in Android, but when I would like to update some data, I want to restart my MainActivity. But my problem when I try to restart my Application, it crashes. I use the following code to restart my Activity case R.id.update: admin = false; Intent intent1 = getIntent(); finish(); startActivity(intent1); break; my Log is 04-22 12:28:10.444: E/AndroidRuntime(11867): FATAL EXCEPTION: main 04-22 12:28:10.444: E/AndroidRuntime(11867): java.lang.RuntimeException: Unable to

How to properly install an APK file, so that the launcher will create a new app icon of it on the home screen?

只愿长相守 提交于 2019-12-23 19:17:42
问题 Background I have a spare time app which I've made (here), that one of its main features is to install APK files. The problem Users who install apps expects that a new app icon will appear on the launcher. This can occur from the Play Store, but for some reason launchers ignore other types of installing. Something is different in the way the Play Store installs apps, than how third party apps do it. I'd like to know how to do it properly, like on the Play Store, so that installing an APK file

Android custom launcher (Like toddler lock)

懵懂的女人 提交于 2019-12-23 04:58:07
问题 I am making a children's app and I would like to add a child lock to it, just like the one on the app called "Toddler lock". Toddler lock asks you to set the default launcher when the lock is turned on which allows the home button to be disabled. How would I do this? 回答1: Ok so ive got a rough working example here: Create two activities and two layouts, in the main layout place a normal button. The other layout can just have a blank <LinearLayout> . This is what my manifest looks like:

Google play auto update does not update apps

大城市里の小女人 提交于 2019-12-23 04:52:21
问题 I have make application as Home & launcher app with below manifest, When i set my application as default Launcher it will not auto update from google play, All other app auto update fine but only one application is not update <activity android:name=".MainActivity" android:alwaysRetainTaskState="true" android:excludeFromRecents="true" android:launchMode="singleInstance" android:showOnLockScreen="true"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <action android:name=