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
2
votes
3 answers

App is crashing after Home is pressed. Unable to pause - Derived class did not call super.onSaveInstanceState()

When I press the Home button, the app should be paused, save all state and work fine. Instead I get this error: java.lang.RuntimeException: Unable to pause activity {be.test.tester/be.test.tester.DataScreen}: java.lang.IllegalStateException: …
2
votes
0 answers

Android startActivity vs HOME Button

I have a mainactivity. In the AndroidManifest I have declared. android:clearTaskOnLaunch="true" This should bring me to this activity, every time the app is ended with the HOME Button and call onRestart() then, right? Furthermore my mainactivity…
2
votes
2 answers

How to disable back,home,multitask physical buttons?

Actually i'm developing an app and just this app should be opened on the device where is installed so i would be able to block / disable physical buttons for back,home,multitask. I've read yet some articles about how to do it but still can't get how…
John K
  • 371
  • 5
  • 26
2
votes
1 answer

How can I stop sound in Android when home button is pressed

I have an app and a music in all activity of my app I would like that, when user press button home, the sound stops like all game that you can download from android market. How I can do that? When user press home button a new intent is fired but…
user626920
  • 35
  • 1
  • 6
2
votes
6 answers

How to handle that the application is minimized by HOME button

An issue has appeared a few days ago. I have an application that listen for GPS location. The listener is a background service that works all the time, this service saves data in application level and each activity reads this data. So, when i press…
Plamen Nikolov
  • 4,177
  • 3
  • 23
  • 24
2
votes
0 answers

How do I hide the softkeys of an android tablet when an Alert dialog is showing?

I have my activity on fullscreen using this code: getWindow().getDecorView().setSystemUiVisibility( View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |…
2
votes
0 answers

RN - Android - Modal + Home Button Long Press = app crash

running into an interesting one with ReactNative. On the Android side, anywhere in my app, when a modal is open, if the user does a Long Press on the Home Button, then the app crashes. It's fine for a single tap, and it doesn't have issues when…
2
votes
1 answer

Disable Home Button , Android

I am creating a home screen lock application. i want to disable the home button so that the user cant go further without unlocking the screen. As we know as long as we are not the home screen we cant really disable the home button. so i started my…
Sagar Nayak
  • 2,138
  • 2
  • 19
  • 52
2
votes
3 answers

Android: Stop playback on Home or Back button

When I press back or home in my application, it hides, but the MediaPlayer keeps going. Is there a way to know when these buttons have been pressed and stop playback before closing?
Joel Auterson
  • 728
  • 1
  • 7
  • 26
2
votes
1 answer

Change Home Button back to left arrow for one activity

I have set the homeAsUpIndicator to @drawable/ic_menu_icon globally in a stylesheet. Every Activity has the same icon now. How can I change the icon in the ActionBar to be the left arrow (<-) again for one…
2
votes
4 answers

How to kill all my application's activities?

How can I kill all the Activities of my application? I tried using this.finish() but it just kills one Activity. In fact, I would like when the user touches the back button (in only one of the activities), the application to do the same as if he…
Nanis
  • 361
  • 6
  • 18
2
votes
1 answer

Flow change on Home button press when opening app from APP Tray or from Recent app in Android?

Why Android apps act differently when opening app from application icon and opening from Recent apps (after exiting application by pressing Home button)? Example : Start Activity A -> Activity B then press home button. Opening application from app…
Sumit T
  • 1,273
  • 2
  • 17
  • 32
2
votes
1 answer

How to toggle between default home launcher and my application using only buttons?

I am wondering if it is possible to set the home launcher with buttons instead of manually doing it through settings. Example there is two buttons(Home and MyApp), clicking on home will bring me back to the default home screen and clicking on MyApp…
Dave
  • 117
  • 11
2
votes
2 answers

How to set my App as default Home?

I'm developing a Android desktop app, and I would like that when it first starts it (confirm with user and) set itself as default action for Home button. Currently, this option is given to the user by the Android system only when he first press the…
The Student
  • 27,520
  • 68
  • 161
  • 264
2
votes
4 answers

Detect HomeButton pressed Android before onBackPressed

I'm developing an android application in which when the app is in background it displays on the status bar a notification. Using onUserLeaveHint I can detect when the user presses the HOME button, but the same event listener also triggered when the…
Manuel Castro
  • 1,633
  • 3
  • 24
  • 38