android-homebutton

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

Android - Is It possible to disable the long click of home button to avoid the task manager?

被刻印的时光 ゝ 提交于 2019-11-27 02:50:41
问题 I am looking for a way to disable the task manager window once I long press on the home button. I managed to disable other device keys (such as volume, menu etc) and the normal click on the home button as I am the default launcher, but I don't know how to disable the task manager! Even Toddler Lock kids app show u the task manager screen following long click, so I assume it isn't easy to do so. I saw few answers say I shouldn't disable the task manager, but I want to have it from another key

Overriding Home button for a Car Home replacement app

戏子无情 提交于 2019-11-27 01:42:50
问题 I have been working on a replacement for the stock Car Home app for a bit, and I am completely stumped on how to override the Home button so that my app will be brought back to the foreground whenever the phone is docked. This is the way that Car Home works, so there must be a way. It seems that BroadcastReceivers won't work, because the intent that is broadcast whenever the Home button is pressed will still cause the default homescreen app to launch; I cannot prevent it. I can override the

Disable home button in android toddler app?

橙三吉。 提交于 2019-11-27 01:04:33
I've developed and app that is a slide show of pictures which each play a sound when you tap them. It's like a picture book for ages 2-4. The problem is, since android won't let you capture a home button press and essentially disable it, when parents give the phone to their child to play with unattended (brave parent), the child can inadvertenly exit the app and then make calls or otherwise tweak the phone. There are two other apps that currently have a psuedo fix for this issue. The apps are Toddler Lock and ToddlePhone. I've tried contacting the developers of these apps for some guidance but

Android: change default Home Application

左心房为你撑大大i 提交于 2019-11-27 00:46:28
for some specific requirement I am required to change Android Default Home application with my customized Home application ( a setting inside my app that will toggle default home = my application or previous home) I don't want the user to travel android settings that are very complicated. Can any one help me out like where it registers launcher.apk for default home application or how to change that The only thing I could find was that old question: How to change default Android's Desktop application? but no answers at all. I have seen HomeSwitcher in the Market that do the trick, but no answer

How to add “menu” indicator next to Action Bar's app icon?

≯℡__Kan透↙ 提交于 2019-11-26 20:23:14
问题 At least Gmail and Youtube Android apps use a side menu (navigation drawer?) that opens by swiping, or by clicking the app icon (home button): Is the menu indicator / icon in the screenshot above a ready-made part of Android SDK? (Or a custom icon Google uses in their apps?) In any case, what's the easiest way to get your home button to look like that , i.e., like it opens a menu? ( targetSdkVersion 18; minSdkVersion 14) Resolution Finally got it working. What was missing for me was 1) the

Not able disable Home button on specific android devices

ぃ、小莉子 提交于 2019-11-26 18:59:56
I know this question has been asked many times and the answer is always "No we cant disable home button". I have a little different query to ask. I wrote simple code in which my activity overrides the onKeyDown() and return true for all key presses. In theory this means whoever opens the application is stuck there and has no option to move out of the application. When i tested this application on different devices, i made following observations : On motorola device with OS as 2.2.2 , Home button got disabled. On HTC device with OS as 2.3.5 , Home button got disabled. On Sony with OS as 2.3.7 ,

Altering the result of getRecentTasks

拈花ヽ惹草 提交于 2019-11-26 18:23:00
问题 I have an app designed for a tablet in a workplace setting where a number of people will use the camera as part of their routine. While it's appropriate and necessary for a supervisor to leave the app, it should be difficult for other people to accidentally do so. However, a long press of the home key is pretty easy to do accidentally. I've done it myself. That brings up a list of recent tasks; the user can tap any one of them and they're lost, since some of them aren't as sophisticated as

Android Overriding home key

我与影子孤独终老i 提交于 2019-11-26 15:31:48
As the question suggests I know we can't override the Home key event but if you look into the emulator of android 2.2 you will see an application Car Home it has overridden most of the keys like Home, end call. Now, the point is how have they done it? I tried to peep into the source code of the app but to my surprise its not available or I am unable to find it, but I don't think later is the case. I agree with @Romain Guy You can't override the behaviour of home button. What the Car Home app does: it has defined itself as a launcher. You can also define yours as a launcher, and it will be

Disable home button in android toddler app?

[亡魂溺海] 提交于 2019-11-26 09:34:07
问题 I\'ve developed and app that is a slide show of pictures which each play a sound when you tap them. It\'s like a picture book for ages 2-4. The problem is, since android won\'t let you capture a home button press and essentially disable it, when parents give the phone to their child to play with unattended (brave parent), the child can inadvertenly exit the app and then make calls or otherwise tweak the phone. There are two other apps that currently have a psuedo fix for this issue. The apps