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
0 answers

Set default Launcher/Home programmatically in Android 4.X with System privileges

I have an app with system privileges and I would like to set another app as the default Launcher/Home of the device. Is this possible in Android 4.X? I've only seen answers related to Android 2.2 or previous. Any help will be deeply appreciated.
SebastianT
  • 263
  • 3
  • 14
2
votes
0 answers

Home Button Navigation not working properly

I am using action bar and fragments in my android app. I have home button in base activity and other fragments . These home buttons have different functionality. while clicking fragment home button it forces a click in home button in the activity…
Divya
  • 555
  • 1
  • 4
  • 15
2
votes
3 answers

Go to home screen from Android Activity

I'm making an application in android and I want to implement a button such that whenever it is pressed, I just reach back to my home screen. I know that we have the hardware key and soft keys( when there are no hardware keys) which implements this,…
user2430771
  • 1,326
  • 4
  • 17
  • 33
2
votes
1 answer

Prevent home button from going to home screen when it's on lock-screen

I'm trying to make a lockscreen for android. Whenever I press the home button, it brings me back to the home screen. I tried various apps from google play. The Go Locker app does not let you to go to home screen unless you unlock the screen. I…
Sid18
  • 23
  • 1
  • 4
2
votes
1 answer

How to disable the background color when HomeUp is pressed?

Background: I currently enable the HomeUp button on Activity, thanks to: getSupportActionBar().setDisplayHomeAsUpEnabled(true); According to the Documentation, it's related to setHomeButtonEnabled which: Enables or disables the "home" button…
Blo
  • 11,903
  • 5
  • 45
  • 99
2
votes
0 answers

How to detect home button is pressed in lock screen status?

I wrote a BroadcastReceiver with ACTION_CLOSE_SYSTEM_DIALOGS to capture the home button press event: @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if…
Bob
  • 21
  • 2
2
votes
0 answers

Background Music in App across Activities

I saw lots of similar questions, but I couldn't figure out the best way in my case. I want to play some background music in my app (looped). It should start (if a sharedPreference is set) at the start of the app. If the user disable a checkbox, it…
lis
  • 670
  • 1
  • 13
  • 32
2
votes
0 answers

Android Launcher app - Pressing Home Button in other Activity

I've written a custom Launcher that has three activities. I looked up the sample home app and configured the intent filters accordingly for the main activity - that is the first activity which is launched at start - android.intent.action.MAIN. Let's…
2
votes
1 answer

Way to set Home Application Icon in ActionBarSherlock

I am confused the way to set home icon on ActionbarSherlock and of course am new to this ActionBarSherlock. Have checked many sources, but unable to get how to set the home icon. Below is my class that sets the ActionbarSherlock. public abstract…
2
votes
4 answers

How to trigger a function when a user goes back to a background app?

For example, an user opens an app, presses the home button, and then comes back to the app again. Is there any way to trigger certain functions when the user navigates back to the app? Such as auto load a view object when the user is back to the…
Kit Ng
  • 993
  • 4
  • 12
  • 24
2
votes
3 answers

In my own custom android home screen, how do I catch the home button?

I know that android does not allow us to catch the home button press; however, I have my own built home screen replacement app and want to just know when the button was pressed to allow animations. So, my app has just one activity as I do most of my…
FADE
  • 21
  • 1
2
votes
3 answers

Android, How to receive home button click through broadcast receiver?

In my application I need to send log-out request to server when ever user goes out of application via clicking on log-out button or closing application by pressing home button key. There is no problem with button and result is as I expect. The…
Hesam
  • 52,260
  • 74
  • 224
  • 365
2
votes
1 answer

Android app exist when home button is pressed. Clicking app icon starts app over. I want it to just unpause

In my game, if a user hits the back button I pop up a dialog asking if they really want to quit. However, I can't do the same with the home button because there's no way to override it. If the user knows the task manager trick they can hold down…
HappyEngineer
  • 4,017
  • 9
  • 46
  • 60
2
votes
5 answers

How To Handle Home Button In Android

I Am a New Android Developer, I know Handle The Back Button but I Don't Know How To Handle Home Button, when I Clicked Home Button, I Tried a Lot Of Methods, But Not Used, Please Any One Help To Me and Solve My Problem. I have used following code, …
mohamed
  • 303
  • 1
  • 6
  • 19
2
votes
2 answers

How to resume from the last screen of the app after the user has pressed home once?

In my app I have a requirement that if the Home button is pressed during the working of app and if the user starts the app from the icon from home screen it must resume from the last activity. How do I save the last screen history and resume it from…
Navdroid
  • 4,453
  • 7
  • 29
  • 47