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

Can't disable home button with TYPE_SYSTEM_ALERT

I want to keep my activity on the user's screen when the home button is pressed. According to this question, I can do so by using "TYPE_SYSTEM_ALERT". But I keep going to homescreen on home button click... Here's my code: @Override protected void…
0
votes
2 answers

Android activity to android home and again from android home to activity

I have 3 activities in my application. activity1 -->activity 2--activity3 if user press back button in activity3 i am navigating to home page of the mobile using below code Intent startMain = new Intent(Intent.ACTION_MAIN); …
0
votes
1 answer

Hide Navigation Bar Permanently

I've followed this thread to hide Navigation bar: Hide ICS back home task switcher buttons Works fine when the Activity starts, but whenever I press anywhere on the screen the Navigation bar appears again. I've tried this on an empty Activity…
Deukalion
  • 2,516
  • 9
  • 32
  • 50
0
votes
4 answers

Disabling home button Android

I have read a lot about how we cannot override or disable home button. And I too agree that its risky in many ways as some people might take wrong advantage of it. But unfortunately its a requirement in my app. I was able to hide them in my device…
ik024
  • 3,566
  • 7
  • 38
  • 61
0
votes
1 answer

Why when use custom action bar home button image changed from app logo to app icon

in AndroidManifest i set same this ... When i use default…
user2955394
  • 1,063
  • 4
  • 17
  • 34
0
votes
1 answer

Start home replacement app by pressing home button while on lock screen

I have written a home replacement app that listens to the HOME-Intent and is started whenever the user presses the home button on the device. This works fine if the phone is unlocked. But if the lock screen is shown and my home replacement app is…
Twilite
  • 873
  • 9
  • 22
0
votes
2 answers

How to display all applications which run in background?

When I click on "Home" button, it will display applications which I open and haven't been killed on the background. Example: First, I open WhatsApp and then go to home screen without killing it. Then I open Facebook and do the same again. Do the…
user2134526
0
votes
3 answers

Reload the same activity when press Home

I have an application. I tried to disable home button. Many people said that it doesn't possible to do in android 4.0 and above. So i decided to reload the same activity when press home button. I followed the below code. @Override public boolean…
Parthi
  • 669
  • 1
  • 9
  • 26
0
votes
0 answers

Call an Intent on Android when home button is pressed

I'm developing an app that requires certain level of security. I need to have a feature when you press the home button and later enter in the app again, the app requires a password to continue where you've been staying before pushing the home…
0
votes
0 answers

How to get the assigned activity for HOME key long press, programmatically in android?

In some android versions HOME key long press results in showing up recent app list. but in some, its assigned for "Google now" search. So from my application programmatically, how can I get the activity name that's being mapped/assigned to HOME key…
0
votes
1 answer

Home button starts game from beginning?

I'm playing my game. While playing, I press the home button on my Android phone. Then I press the game Icon on my Android screen, and the game starts from beginning. I know there is OnApplicationPause. But what should I add there? How can I continue…
Johnny
  • 612
  • 3
  • 13
  • 32
0
votes
1 answer

SlidingMenu: "getActionBar().setHomeButtonEnabled(true);" not taken

HomeButton is not Enabled to toggle the menu! it works in my testing-app, but not in the app I want. Here the NavigationDrawerActivity: public class NavigationDrawerActivity extends Activity{ protected String[] drawerList; protected…
rala
  • 895
  • 2
  • 18
  • 43
0
votes
1 answer

Implement Home Button in custom Launcher

I've written a custom Launcher and it works pretty nice. The Launcher has some pages filled with applications. I want to implement, that the variable that represents the page number is set to 0, if the homebutton is pressed. So if you are on a…
Julian
  • 909
  • 8
  • 21
0
votes
1 answer

How to block home button on Android 4.4?

On Android 4.4 I develop a lockscreen app, but in lockscreen activity I can't block home button. Can anyone solve it?
0
votes
0 answers

How can I know if a user has returned to my app?

I want to know if a user has returned to my app. I mean, if a user opens my app and then press home button (not back button) and sees his home screen then reopens my app using the launcher icon. How can I determine that the user performed this…
user3086226
  • 93
  • 1
  • 7
  • 18