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

Getting an android app to keep it's OpenGL Context after hitting the home button

First a bit of context: I'm developing a video game for both the Android and iPhone platforms. The way the iPhone works, when a user hits the home button and returns to the game later, in most circumstances the game will pick up RIGHT where it left…
1
vote
1 answer

How to Android Home Button Event or Disabled

I am developing lock application. I have to make the Home Button passive. I wrote an accessbility service.The Samsung j7 prime also works but does not work on phones in home button. I tried classic methods but it is not. Please help. My…
Serkan
  • 13
  • 4
1
vote
2 answers

Is it possible remove home button from actionbar

On my main activity, where there is no way to go back, I'd like to remove the app "home" button in the actionbar. I think it is confusing for the user, who still can quit the app with the OS back button. Browsing stackoverflow, I saw a whole lot of…
Dan Chaltiel
  • 7,811
  • 5
  • 47
  • 92
1
vote
1 answer

How to disable to launch google on long press of home button programmatically?

I want to prevent to launch google if user long press home button. How to disable this google launcher?
Chirag Savsani
  • 6,020
  • 4
  • 38
  • 74
1
vote
0 answers

How to implement kiosk mode in an android app?

I have an android native app in which I want to implement kiosk mode only in single activity. I have tried screen pinning but that works only in lollipop and above. But I want to implement kiosk mode in lower versions also. And I want to exit the…
1
vote
0 answers

Android Double Press Homebutton

I am a android app developer trying to launch my app when the user double presses the home button. So I've encountered an app called Home2Shortcut which exactly does this when the settings are set well. It seems that what it is doing is, homebutton…
joony0123
  • 41
  • 8
1
vote
3 answers

Can we add a counter when home button is clicked in android?

I know that home button cannot be stopped or override. Is there a way to extend the home button in a way then when it is click, my counter should be increasing without disturbing any functionality of the home button.
Chit Khine
  • 830
  • 1
  • 13
  • 34
1
vote
1 answer

Service still bound to main activity when pressing home button, when viewing different activity

Ok, so the application I've written has a service (that tracks GPS data) with a single main activity that binds to it with bindService in it's onStart() method, and unbinds from the service in it's onStop() method using…
Ogre
  • 781
  • 3
  • 10
  • 30
1
vote
0 answers

Long Press Home button disable recent App

I'm developing a Home Application for Android devices. I want to disable long press home button action of recent App. I googled and found some solution but didn't get the solution I want. Right now I'm using this piece of code. It worked, disable…
Adi Khan
  • 157
  • 1
  • 2
  • 12
1
vote
1 answer

Faced with Changing Hamburger Button to Home Button

I faced with a problem. I have MainActivity with Fragment1 and Navigation Drawer. There is a button in Fragment1 that replace Fragment1 and Fragment2. When Im replacing, I want to turn off Navigation Drawer, change Hamburger button to Home…
1
vote
0 answers

Disable Home button and Navigation bar on Android Lollipop

Now i do Android Lockscreen app. but i cannot disable Home button and Navigation bar. I'm looking on Internet and try some solutions, but issues isn't resolve. P.S: Lock home button for Android 5.0 - 6.0.
1
vote
1 answer

How to disable navigation bar for my android app

I want to disable navigationbar for my android app. When my application open home button and recent app button disable. How can I disable button when app is running? Like pattern lock app, in this app when open lock screen disable all button.
1
vote
0 answers

How to intercept HOME button similar to Nova Launcher?

I have a requirement to make a kiosk application and I need to handle HOME button and change the behavior of my application. My application is already a launcher app but I need to consume the HOME button. I see that Nova Launcher is doing a similar…
wasaig
  • 666
  • 5
  • 18
1
vote
1 answer

Android: App screenshot preview in task list is blank?

In Android when you hold down the home button you can bring up a task list of your recent apps. And each "card" in the task list should have a preview of the app. However, this time I opened the task list and the previews were blank (except for the…
mco
  • 1,809
  • 15
  • 31
1
vote
2 answers

How to disable virtual home button in any activity?

I need to disable 3 virtual buttons in any activity in my app. I disabled back button and multitask button somehow but I cannot dsable home button. I tried onAttachedToWindow() style answers on stackoverflow but they didn't work for me. I don't want…
kagkar
  • 469
  • 5
  • 15