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

sherlockActivity back button color

I want to change the back button color in the ActionBar with SherlockActivity. The problem is that I have use DarkActionBar but if I put the following code (to show the back button): //…
1
vote
1 answer

Android: How to check that the application has been brought to the background for avoiding not needed BroadcastReceiver checks

The question is simply easy: Explanation: What I am doing is to have a BroadcastReceiver that is called everytime the state of the GPS changes (enable or disable) and notifies to the user if the GPS as been disable, inviting him to reenable it…
1
vote
2 answers

Launching an application from a service after the homebutton is pressed, takes too long

I use a service to launch applications by gestures. That works fine. But when I press the homebutton (doesn't matter when and where) then the launch of the app (right after pressing the homebutton) from the service takes about 2-3 seconds. It is…
1
vote
7 answers

How to execute code when Home button is pressed?

I want to run code only when the home button (when the app is sent to background) is pressed. I tried using the lifecycle-method but the problem is that they also get executed when and other dialog/activity is started. I only want to check if the…
androidBeginner
  • 197
  • 1
  • 2
  • 10
1
vote
1 answer

How to always open current activity on icon press , after pressing the home key of device

I really having stuff with the Activity launch after press on home key.Suppose i have three A, B, C activity and i disable the back press on device. Suppose A is my main Launcher Activity and i move from A to B and B to C and pressed the home key…
Sunil Kumar
  • 7,086
  • 4
  • 32
  • 50
1
vote
1 answer

How to handle home button issue in Android Launcher applications

I'm creating a sample lock screen application in this i must override the home button, after i researched in both google and stackoverflow i got the result, it's complicated to do it. Here i mention what i did in my app, Created a service with…
Aerrow
  • 12,086
  • 10
  • 56
  • 90
1
vote
1 answer

Android overlay (API 19) - how to cover bottom parts of SW buttons as well?

I'm adding an overlay view over the home screen using: ((WindowManager) getContext().getSystemService(Context.WINDOW_SERVICE)).addView(this, layoutParams); Layout params are defined as follows: layoutParams = new WindowManager.LayoutParams( …
1
vote
1 answer

Change homeAsUpIndicator dynamically

I build an app with four tabs and, as a consequence, four fragments. In the first fragment, I have a sliding menu and I throw with a custom icon in the actionbar. The problem is that in the others fragments, I want to stablish other custom icon to…
Yeray
  • 1,265
  • 1
  • 11
  • 23
1
vote
0 answers

How to stop the home button from minimizing the app?

I know it is possible. But ho do I do so? @Override public void onAttachedToWindow() { super.onAttachedToWindow(); this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD); } doing this does not work. Any help would be…
DDukesterman
  • 1,391
  • 5
  • 24
  • 42
1
vote
1 answer

Left And Right Android Navigation Drawers Overlapping Each Other

I have two navigation drawers in my app enabled by two icons on the left and right side respectively. Now my right side icon is a menu item so I am able to toggle both the navigation drawers via onOptionsItemSelected. The problem I am having is that…
1
vote
1 answer

How to add my app to long press on home button?

This is what happens when I long press on the home button on my Android device. As you can see, except Google Now, there are two other apps... I need to add my own App to this menu, yet I am unable to find anywhere how to go about coding it. Answers…
jjj
  • 2,594
  • 7
  • 36
  • 57
1
vote
1 answer

Android Home button disable application exhibition

I'm developing an application for a museum, I need that application to be the only one the visitors can use. The administrator of the museum has the possibility to quit this application, by a button, which will ask a password. I already managed to…
1
vote
1 answer

Double tap home button in Android

I'm working on a Home Screen replacement app. I have an activity set as default and I want to override (in a sense) what happens when the Home button is double tapped. So far I have code in the onResume() method of the Home activity that detects if…
mike
  • 1,318
  • 3
  • 21
  • 41
1
vote
1 answer

android thread startIntent in 5 second and press Home key

step to show the problem: 1 create android hello world projet 2 create Activity2, just copied from MainActivity,declared it in manifest.xml 3 in MainActivity.onCreate method add code belows mContext = MainActivity.this; new Thread() { …
dormi330
  • 1,273
  • 11
  • 18
1
vote
1 answer

Strange home key behavior when finishing app

The app I'm making will end with opening the SMS inbox for the user convenience and is at this stage finished. Normally then the back key would go back to the activity but since this is does not make any sense for the user I simply tried to finish…
Aoaoaoappa
  • 35
  • 1
  • 6