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

Android launcher press home in launcher to go to default screen

In the default android launcher, pressing home while in another activity will start the launcher. Pressing home again while in the launcher will reset to the default home screen page. I don't understand how this can be done. Android sends the same…
kevdliu
  • 1,709
  • 4
  • 29
  • 46
5
votes
3 answers

Enable home button ActionbarSherlock, Sherlockfragment

I want to enable the home button in my fragment. This question is asked earlier but for an activity. I tried ... getSupportActionBar().setDisplayHomeAsUpEnabled(true); ... but this doesn't work. Here is my code: import…
4
votes
2 answers

Android: How to control the home button

We're trying to provide an application to the mentally and physically handicapped daughter of my neighbor that let's her use an Android tablet as a Talker, i.e., she presses a few big buttons and the devices generates speech. The application is…
Wangnick
  • 735
  • 1
  • 8
  • 14
4
votes
0 answers

Android - clear the recent app list (shown after long HOME press)

I'm writing a custom launcher app. The problem is even after setting it as default, the long press of HOME button brings recent app list, including old launcher. Is it possible to clear the recent app list?
tomash
  • 12,742
  • 15
  • 64
  • 81
4
votes
2 answers

Admob on Android - Status bar area not covered when activity is resumed

I'm experiencing very nasty bug trying to implement Admob in my application. I thought the problem is in my code, but after some investigation I found it present also in Android-Banner-Essentials example (available for download here). I wonder if…
groob
  • 41
  • 3
4
votes
1 answer

How to add padding/margin between icon and Up-Button of the ActionBar?

I have to set margin of 10dp between up button and icon, 5 dp between icon and Title in default action bar (android 4.2.2), can anyone please suggest how it can be done. I don't want to create custom action bar as my required is exactly same as…
user2702700
  • 639
  • 2
  • 11
  • 26
4
votes
1 answer

How to set Home-Icon margins when using setDisplayHomeAsUpEnabled(true)?

I have a problem with native actionbar (not ABS). In normal state icon has 26 px margins on both side. But when I call setDisplayHomeAsUpEnabled(true) it decreases this margins and in result it looks much narrower. Do you have any idea how to…
MatrixDev
  • 1,432
  • 15
  • 20
4
votes
3 answers

Remove shortcut pointing to my app from stock launcher in ics

I need to remove one particular (better) or all shortcuts (worst case) pointing to my app from stock launcher. I was unable to use UNINSTALL_SHORTCUT broadcast, it seems that it just dont work (simillar problem to this. My app is signed by system…
4
votes
3 answers

Not able disable Home button on specific android devices

I know this question has been asked many times and the answer is always "No we cant disable home button". I have a little different query to ask. I wrote simple code in which my activity overrides the onKeyDown() and return true for all key…
dexprab
  • 89
  • 1
  • 1
  • 3
3
votes
0 answers

Android lock home key press

I know it is not possible to lock/detect/disable the home key in Android device. I am using the following code which shows "Complete action using" dialog:
AndroidDev
  • 2,627
  • 6
  • 29
  • 41
3
votes
2 answers

Android application crashes when re-entering after the home button is pressed. This is the code

I've searched over and over in this forum & google about this issue, maybe it has to do something with my thread or the way how the game is starting. This is the skeleton of the game application, please tell me what I'm doing wrong. This is what I'm…
GameBug
  • 136
  • 2
  • 10
3
votes
3 answers

Is there a way to set a default home/launcher programatically on Android?

I've created my own home/launcher and would like to set it as default depending on my location, but as far as I'm aware you can only clear/set defaults for home in the 'settings->applications->manage applications->name of home/launcher' : is this…
AndroidNoob
  • 2,771
  • 2
  • 40
  • 53
3
votes
2 answers

Altering the result of getRecentTasks

I have an app designed for a tablet in a workplace setting where a number of people will use the camera as part of their routine. While it's appropriate and necessary for a supervisor to leave the app, it should be difficult for other people to…
Robert
  • 164
  • 1
  • 12
3
votes
2 answers

Android - How to exit an app when user press the home button?

I want to know how to exit an app when user press the Home Button. As far as i know that Home Button moves the running app in background and puts Launcher process in front. I know i can use finish() but i don't know where i should call it because i…
Varundroid
  • 9,135
  • 14
  • 63
  • 93
3
votes
2 answers

How to kill an activity when the Home button is pressed?

I want to kill an Activity when the user presses the Home button. For this I'm using the following code: public void onPause() { super.onPause(); this.finish(); } It works fine. But instead of Home if the user presses the Back button it…
Sourav
  • 1,214
  • 14
  • 24
1 2
3
23 24