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
9
votes
6 answers

Android - Removing home and navigation button

I'm trying to remove the Home button and the Multithread button. The idea is to remove it completely from the running application, better if we can remove it completely from every application on the tablet we are working with. Using full-screen is…
Filnik
  • 352
  • 1
  • 12
  • 33
9
votes
3 answers

overriding the Home Key Long press in a category.HOME activity

I just created my own "Home" to replace the stock android one or Sense. All is working fine and I get all I want. My only problem is to replace to long press on home key ( that usually show the last 6 activities you launched) by my own launcher. I…
Waza_Be
  • 39,407
  • 49
  • 186
  • 260
7
votes
1 answer

How to override home button in android 4.0

I want to override the home button in my android activity. I have tried out few things related to this which are working for 2.3 and below but not for 4.0 above @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode ==…
6
votes
3 answers

HOME button doesn't work, is it possible to listen?

Ok here's my problem. Whenever I press the HOME button nothing happens. If i'm in an app and press it i'm not sent to the home screen like I should be. However, if the screen is locked and i press it the screen will light up(because a key was…
phoenixcoder
  • 61
  • 1
  • 2
  • 4
6
votes
0 answers

Android: Home launcher activity is recreated into new task only the first time when pressing HOME

I want to prevent user from leaving my app. I am trying to achieve this through home launcher activity/application and I don't understand android's behaviour. Pressing HOME first time always creates new activity in new task instead of moving the…
6
votes
3 answers

Which method is run when Home button pressed?

I have a Home replacement Activity from within which you can launch a number of apps. When you tap the Home button, you are returned to my Home replacement Activity. As I understand, tapping the Home button creates an intent to launch the Home…
mike
  • 1,318
  • 3
  • 21
  • 41
6
votes
1 answer

Set and unset default app in Android

I have an application which I am attempting to "enter Kiosk mode" with, however I only want it to occur on only one Activity. After tinkering around with some of the controls, I came up with Intent.createChooser(). What I am trying to do is once the…
Wakka02
  • 1,491
  • 4
  • 28
  • 44
6
votes
7 answers

How to simulate home, back, menu, search, task and volume buttons?

I want to simulate all physical buttons of our Android devices. So is there a way to simulate: BACK BUTTON HOME BUTTON MENU BUTTON SEARCH BUTTON TASK BUTTON VOLUME (+ AND -) BUTTONS
Meroelyth
  • 5,310
  • 9
  • 42
  • 52
6
votes
3 answers

setHomeButtonEnabled on PreferenceActivity and nested preference

I have preference screen extended PreferenceActivity. For targeting OS 4.0.3, I wanted to add < icon on action bar so I did this in onCreate(). ActionBar actionBar =…
5
votes
2 answers

clear application defaults

I am using category android:name="android.intent.category.HOME" category android:name="android.intent.category.DEFAULT" to override the HOME button behavior and point it to my application. On this particular tablet, i only want this custom…
newdev
  • 1,363
  • 1
  • 12
  • 18
5
votes
0 answers

adb shell dumpsys activity activities shows two instances of single task in separate stack

I have a main activity having intent with CATEGORY_HOME to behave like a launcher. It also has CATEGORY_LAUNCHER so that user can access from App Drawer. Here is the main activity: public class MainActivity extends AppCompatActivity { @Override …
5
votes
2 answers

How to prevent custom home launcher app restart activity?

I am working on my own home launcher replacement and it works fine but one thing bothers me. When I press a home key, current home activity (the one defined in manifest as main/defualt/launcher/home) restarts - current activity instance onpause is…
tiptop
  • 51
  • 1
  • 2
5
votes
0 answers

How to detect that default launcher app is changed

I have developed an app which is working as a launcher app. When the user removes my app from default launcher I need to know it. User can remove my app from default launcher in two ways: 1. Settings->Apps->Reset app preferences. 2.…
5
votes
10 answers

Back pressed events with system alert window

I need to dismiss system alert window on back pressed and home button event.I have tried with onKeyEvent but in vain. As we can't capture the back pressed event in a service, how to achieve this?
user3595323
  • 59
  • 1
  • 3
5
votes
4 answers

Overriding Home button for a Car Home replacement app

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…
BigFwoosh
  • 1,197
  • 10
  • 17
1
2
3
23 24