Questions tagged [android-homebutton]

The home button in the android Operating System

This button is used to get back to the Home screen on the android enabled smartphones.

350 questions
0
votes
2 answers

How to enable the home button to return to a common activity?

I use ActionbarSherlock and would like to enable the home button ... Therefore I call setHomeButtonEnabled(true) in my base activity. public class BaseFragmentActivity extends SherlockFragmentActivity { @Override protected void…
JJD
  • 50,076
  • 60
  • 203
  • 339
0
votes
1 answer

Navigation buttons in header xml

I'm working on my first android app and have been trying to make a header consisting of three image buttons for back, home, and next. I was wondering if it's possible to make the header in a separate XML file, and then use include so that I may cut…
0
votes
2 answers

Stop music player on device home button android

I have an android application in which am try to play a background sound for an particular activity(sound will play on single activity not for an whole application). Am using this code to start the MediaPlayer MediaPlayer backMP =…
0
votes
1 answer

Closing Soft Keyboard on Home Button Press

So I have an app with a custom AlertDialog that has an Ok and Cancel button, and an EditText Object. When I click on the 'Name of Workout' button, the AlertDialog and the soft Keyboard open. At this point, with the AlertDialog open and the soft…
0
votes
1 answer

Android home button, Timer issue

My App seems to restart everytime the App is Run after the Home button is pressed. The App has a Timer which needs to continue once the Home button is pressed. I override the Back button to minimize the app if the Timer is on, is there a way to do…
KickAss
  • 4,210
  • 8
  • 33
  • 41
0
votes
1 answer

How to relaunch the application which is exited by home button press in android?

I have an android application in which i want to exit the application only on device back key press.I mean that if user clicks on HOME button, I want to exit from the app but relaunch the app after a specific time. How to achieve this?
Devu Soman
  • 2,246
  • 13
  • 36
  • 57
0
votes
1 answer

Make an application that can't be ended

For my society, I'm to create an application that will be on a tablet in a public place. We don't want the tablet to be used for anything else but for our application. So, how is it possible to "avoid" the home button, task list, etc? I would like…
castrogne
  • 521
  • 1
  • 4
  • 17
0
votes
1 answer

Android emulate home key launch intent

In some Emulators, if the user presses the home key in the launcher, it does a different task than if you switch to it from another app: For example, if the user presses home, it launches home. But if the user presses home again in the launcher, it…
kevdliu
  • 1,709
  • 4
  • 29
  • 46
0
votes
4 answers

Close current activity on android Device's Home button click

I don't want to allow application to run in background. As user press Home button on android device, current activity should be finished. Or when application is resumed, I would like to know that application has come foreground. I have created…
Nirav Shah
  • 2,064
  • 5
  • 24
  • 34
0
votes
1 answer

Android custom launcher (Like toddler lock)

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.…
user1613103
  • 175
  • 3
  • 9
0
votes
1 answer

Listening for HOME button press and relaunch activity

I am trying to prevent the HOME button KeyPress when a Service is running protected void onPause () { if (isMyServiceRunning()) { Intent Act2Intent = new Intent(PhysicalTheftDialog.this, PhysicalTheftDialog.class); …
dythe
  • 840
  • 5
  • 21
  • 45
0
votes
4 answers

Preventing the HOME button to close activity

I am currently using a custom AlertDialog which has a Theme.Dialog theme in a Activity that requires users to type the current password to proceed. According to Android - Is It possible to disable the click of home button i have tried most of the…
dythe
  • 840
  • 5
  • 21
  • 45
0
votes
1 answer

Android: Avoid phone restart when clicking home button

I'm programming an app, and I have to solve this problem... Being in any of the activities, when clicking the home button the phone restarts, and I don't want that to happen. I know that clicking the home button brings the app to the background, and…
acm46
  • 9
  • 2
0
votes
4 answers

i want to fix an home button for all activities.how?

i am designing an application which have diff types of functionalies through buttons/image buttons. At final the list might increase. i want to put one custom home button which always keeps on screen when i am in diff activities. or either if you…
Deepu Mandy
  • 117
  • 12
0
votes
1 answer

How to bring activity to front after "home" button has been pressed

I've been reading lots of post but no luck. What I want is a similar behaviour to NoLed application, when the screen turns off i want to reenable it and show a low consumption screen. If the screen turs off when my aplication is in the foreground…