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

Android long-press home button

In my Samsung Galaxy S long-press home button open the stock/samsung task manager. Is there any way to programmatically change the asociated action for this event? I suppose it will not depend on the device, as it looks like an android issue in…
Tibor
  • 589
  • 2
  • 7
  • 20
1
vote
1 answer

Android Pressing Back or home button causes Connectivity change?

I am having a strange issue. I have a very simple piece of code that is meant to trigger whenever someone connects to a wifi access point. IntentFilter ConnectedFilter = new…
Dave
  • 3,178
  • 5
  • 28
  • 44
1
vote
0 answers

Resume sub activities after Home key

My problem is that onStart, onResume, onRestoreInstanceState etc are not called by the system after using the home key and restart. The situation is as follows, Activity is a splash screen during the first 3 seconds , Which then starts another…
1
vote
0 answers

Visual effects, and Activity redraw after pressing home button and come back

I am programming an Android app and it seems to work well, but when the user presses the 'home' button, and after returns to the app, the activity has changed his position some pixels, and due to this some buttons are hidden. It only happens in…
Mirk Eph
  • 11
  • 2
1
vote
4 answers

How to handle KeyEvent of home button in an Android application?

I'm developing an application in Android, and I use the the following code to handle the KeyEvent for the back button: @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if ((keyCode == KeyEvent.KEYCODE_BACK)) { …
Hasmukh
  • 4,632
  • 2
  • 30
  • 44
1
vote
1 answer

Detecting / finishing Activity on Home button press in Android

I have a service, and when tapped a button, My Activity, fragment opens. This is an Editor screen activity. I have another activity on top of it, A chooser Activity. When the user presses the Home button from the Editor Activity, the activity…
1
vote
1 answer

Disable android home button without onCreate being called multiple times

Before beginning I want to state that I know disabling the home button is typically not a good idea (or generally possible). For the application I am working on though it is 100% necessary. This app will not be deployed out in the wild and moreover…
HXSP1947
  • 1,311
  • 1
  • 16
  • 39
1
vote
0 answers

How to detect Full screen gestures in Android 10

I want to know is it possible to detect full screen gestures that introduced in Android 9. I tried BroadcastReceiver, it can detect traditional Home key and Task key press action. But it can't detect "swipe for Home key" action and "hold and swipe…
1
vote
0 answers

Is there a possibility to differentiate wether the user pressed the home button or locked the phone in unity3d for android?

I would like to know if it's possible to detect wether the OnApplicationPause/Focus function was called because the android user locked his phone or if the user pressed one of the three buttons so the app gets minimized. I'm using Unity3d. Thank you
jojays
  • 11
  • 1
1
vote
0 answers

Stay on current activity on home button click

Looking around I found many Q&A about how to (try) override the home button click and how to kiosk the user into an app. Many were confusing, many not working and many really long and complex to implement. That said, what I would like to achieve is…
Pier Giorgio Misley
  • 5,305
  • 4
  • 27
  • 66
1
vote
1 answer

Detect application backgrounding with intelligence

I'm looking for a way to detect that my android app has been backgrounded, so that regardless of which Activity was running upon pressing the Home key (or return key on the last activity in stack) then a specified function will be called. onPause()…
KomodoDave
  • 7,239
  • 10
  • 60
  • 92
1
vote
1 answer

How to keep webview running in foreground service after pressing home button in android?

I am loading an url in webview which plays some audio song. When user presses the home button, then the audio stops after some time(Probably because activity is going in stopped state). Well, I think service might solve my problem. But How can I…
1
vote
0 answers

Unity Android app critical crash when it's set as default home (when home button is pressed)

I'm developing an Android application with Unity and one of the requirements is that my app asks for a set default home in the device. I was looking everywhere and I read many tutorials in order to do that. But when the screen of defaults home apps…
eflores
  • 25
  • 1
  • 10
1
vote
3 answers

Android Overriding home key

As the question suggests I know we can't override the Home key event but if you look into the emulator of android 2.2 you will see an application Car Home it has overridden most of the keys like Home, end call. Now, the point is how have they done…
ingsaurabh
  • 15,249
  • 7
  • 52
  • 81
1
vote
3 answers

Application not resumed and again start from Main Activity if opened from Home Or Background

After Login I start My Application.When Application is at another Activity or Fragment and I press Home Button application goes to background.But suppose again If started from Home or Background it start from first Splash and Login screen.It is not…