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
1 answer

Disabling 'home' button in android for pattern lock app

I have developed a pattern lock android application. It is working fine. In home screen, pattern is displayed. User could get through the lock only after unlocking with correct pattern(just like normal pattern lock).But the problem here is ,when the…
0
votes
2 answers

Android Launcher app: Is it possible to supply the user with different activities on home press?

I have made a launcher that launches an Activity on home press. However, I want to launch different activities depending on different circumstances. Is it possible to intercept the home-press and assign it a certain activity dynamically within my…
JohnyTex
  • 3,323
  • 5
  • 29
  • 52
0
votes
2 answers

Android Home Button Disable error

I'm developing some android application .In application i want to disable home button . So i tried to overide onAttachedToWindow method, but the problem is i getting a error when start application. Code : @Override public void onAttachedToWindow(){ …
0
votes
1 answer

How to detect home key event

In order to finish android activity when holding Vol UP + home. The home button is not detected as key event: I already cheched with onkey onkeyevent but only back button is detected. Any ideas?
ZChokri
  • 39
  • 1
  • 2
0
votes
0 answers

Lock Homw button in Android 6

all-knowing All! Till this moment i found answers on my questions simply by searching here - very helpfull resource! But now i can't find answer. So, i creating a lock screen application, and locking Home button using this…
Alexander
  • 3
  • 5
0
votes
1 answer

Minimize app on double click (like home button)

My current code exits application if press double back button and now I want to change it so that it just minimize app on double click. Just like how pressing a home button. This is the code: @Override public void onBackPressed() { if…
user6038288
0
votes
1 answer

How to listen home key in service?

I created a simple app demo and created a layout in my service class. In the service class, I created a layout and I need to hide this layout when the user clicks on the home key. I found sample here and implemented setOnKeyListener and…
0
votes
0 answers

how to call home button simulate from service?

how can simulate home button in android from other app? i create a app use service to floating over other applications. i need when home button in my app pressed other application goes to home screen like another assistive touche app like…
Hamed Hosseini
  • 182
  • 2
  • 13
0
votes
1 answer

how come back to Application after pressing home button

I have an android application, when user presses home or back key, android application will be minimized. I want to open this application after pressing back or home key. (like long press in home key and selecting minimized app - I want…
0
votes
2 answers

Open Application after minimized in android

I have an android application , when user press home button ,android application minimize . I want to open this application 5 seconds after minimize. what should I do?
0
votes
1 answer

Launch service on home button press

Android M: I am trying create/resume a service whenever the home button is pressed. The activity that is displayed when the home button is pressed should not be destroyed/paused. I have tried to make my service filter the…
0
votes
1 answer

How to disable Home/Menu button in Android above 4.0?

I am developing a lockscreen application, and so far have achieved everything needed for the app to be working. But I can't disable the home/menu buttons available as virtual as well soft in Android devices. I have gone through every possible answer…
Wilson Christian
  • 650
  • 1
  • 6
  • 17
0
votes
1 answer

Need a new solution for disabling the home, menu buttons in android

I have searched a lot and tried nearly everything and nothing worked for me . I just want to disable the home and the menu buttons. here is the LockScreenActivity.java import android.app.ActionBar; import android.app.Activity; import…
0
votes
1 answer

Using Fragments recover Home/Drawer Button

I have an app with a main activity which loads a navigation drawer, and a pair of fragments that load in that activity ... In the navigation drawer I have 4 options A, B, C and D ... the first one loads FragmentA on my activity and the last 3 load…
0
votes
4 answers

Android - Prevent onResume when returning to app after home button

Is there any way to prevent executing code within onResume when returning to an application after the home button has been pressed? What method is called when the home button is pressed? I could possibly flag something up when home button is…