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

Android: Stop new activity bringing app into foreground

I posted a question yesterday as I have some specific requirements that seem to be quite difficult to achieve with android. I am working on an app that shows sensitive data and a requirement is that whenever another app gets focus or the app goes…
berimbolo
  • 3,319
  • 8
  • 43
  • 78
1
vote
1 answer

Stop application from going to foreground when an activity is started

So, I have an app with a splash screen that starts another activity once it's done loading. When the user hits the home button while it's loading, the application goes to the background and then comes back to the foreground once that activity is…
dramzy
  • 1,379
  • 1
  • 11
  • 25
1
vote
1 answer

Game not start again when Home button pressed once's.

I am working on a game. When I press the home button on my device my game is closed. When I launch it again my game doesn't start until I've cleared the memory of my device. please solve my problem thanks in advance. Here's my mainActivity of the…
Mirza Zeeshan
  • 99
  • 4
  • 12
1
vote
1 answer

Override home Button in Android

I need to override Home button for Lock Screen App. And I found the following answer which restart the app after 6 seconds on home button press. protected void onUserLeaveHint() { Intent i=new Intent(this,MainActivity123.class); …
Brahm Datt
  • 11
  • 3
1
vote
1 answer

Home Button that doesn't work only while my own app is in foreground

I have created a Home Screen replacement app. As per some of the suggestions here on SO, I approached this by creating the following two activities:
mike
  • 1,318
  • 3
  • 21
  • 41
1
vote
1 answer

How to handle home button click event in custom lock screen application

I am working in a project where custom lock screen must be implemented once the user clicks the lock button. After clicking, the application should be locked and should also prevent from closing the app while pressing home button. I used following…
1
vote
3 answers

How do I disable Home button in Android 4.4.2

In my app i have to disable device's Home key, my tab supports android 4.4.2 I know how to disable back button functionality, i used below lines for that @Override public void onBackPressed() { } but i am concern about How to disable Home button…
Sun
  • 6,768
  • 25
  • 76
  • 131
1
vote
1 answer

Is it possible to disable "other apps" button in Android?

i'm creating an app, which will be used by kids and so client wants me to disable any way of getting out of it. I managed to block home button, also back button, but what about others app button? I can hide all down buttons, but it is possible to…
Adam Staszak
  • 1,674
  • 14
  • 16
1
vote
1 answer

Samsung devices show extra gap in front of actionbar home button

Looks like it is a bug, but Galaxy S5 and Note 2 add an extra space in front of home drawable when setDisplayHomeAsUpEnabled() is set to false
goRGon
  • 4,402
  • 2
  • 43
  • 45
1
vote
0 answers

How to disable Home button android 4.4?

I write lock screen for Android 4.4. I can't block home button. I start new Activity in onPause function ( or start in service) but If onPause is called by Home button, Activity start delayed 5s. How to fix it? (In google play HiLocker fixed start…
1
vote
1 answer

Intercepting home button on Android

I've researched this a lot and it seems that after ICS normal applications can no longer intercept the Home Button. However, I see apps like Go Locker that are able to trap the Home Button. If Go Locker isn't intercepting the home button, what are…
Brien King
  • 334
  • 2
  • 16
1
vote
1 answer

How to block "Google Search" appearing when long pressed HOME key?

I'm developing a Home screen application for android. But when the HOME key is long pressed "Google Now" search always appears - I want to avoid that. I found that the android framework does not give a HOME key press event out to application level.…
1
vote
1 answer

Is it possible to disable home button temporarily for other apps on rooted device?

Is it possible to disable home button temporarily for other apps on a rooted device? I am making a program that controls other programs. I have full root access. Is there a way I can disable the home button so that other apps can't use it if…
1
vote
1 answer

Handling Home button android for developing lock screen

I am developing lock screen application for that i need to disable the home button. some one told to me kept in the manifest as category as default, home but when ever device boot completed my activity launches but not finishing.because I my…
1
vote
1 answer

android - screen orientation vs home button onStop()

I am trying to build an app where if the user press the home button , he goes back to a home page via an intent ( so via the onStop() button that is overridden ) but the problem happens when the orientation changes, usually it also calls the…
TheChix
  • 107
  • 1
  • 10