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

Started activity from home key screen

I have a background Service which starts an activity, Intent i = new Intent(this, MyActivity.class); i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(i); After destroying this Activity and restart it over the "long press home key menu",…
3
votes
0 answers

onPause not fired when home button is pressed

I have an Android AppCompatActivity that fails to fire onPause event when the Home button is pressed. According to the Android documentation: The system calls this method as the first indication that the user is leaving your activity (though it…
Roy Hinkley
  • 10,111
  • 21
  • 80
  • 120
3
votes
2 answers

Disable GotoHome behaviour provided by a mouse middle button click on Android

In a business context (not commercial app), I need to avoid middle button click behaviour, that is to say displaying Home Screen I spent hours browsing Stackoverflow pages, and the conclusion is often : it's not possible, regarding obvious security…
jsiot
  • 126
  • 4
  • 16
3
votes
1 answer

Creating a second shortcuts in the Launcher

I'm creating a cool Home application in Android. As this is a Home app I don't want her to appear in the Launcher, in the list of all applications. That's pretty easy, but now I would like the settings of this application to appear. So, I created…
Waza_Be
  • 39,407
  • 49
  • 186
  • 260
3
votes
1 answer

Android: Home logo not clickable?

I am trying to make app's logo clickable using AppCompatActivity. The logo is in the home location of the toolbar and left-aligned. The logo displays correctly but the logo is not clickable. What am I missing here? Activity.java: public class…
AJW
  • 1,578
  • 3
  • 36
  • 77
3
votes
2 answers

What lifecycle methods called when the activity home button is pressed if you in one activity?

I thought when we press home button where ever you are your onPause() and onStop() will be called. But I'm not completely sure. Please give me some more info.
3
votes
0 answers

Handle home key press in lockscreen type application

I'm taking lots of inspiration from app Go Locker and project LockScreenApp, to create a basic lockscreen app that displays various pictures, randomly picked from a folder on device storage. App is working fine. My event receiver receives…
kaushal
  • 53
  • 4
3
votes
1 answer

State of calling activity after startActivityForResult and Home key is pressed

I have a launcher Activity called HomeActivity. And a LoginActivity from where the user has to login to access the other screens. HomeActivity is marked as singleTask. In HomeActivity's onCreate() method, I launch the LoginActivity if the user is…
Kumar Bibek
  • 9,016
  • 2
  • 39
  • 68
3
votes
4 answers

Android camera app gives error on back and home button

My Application gives error "Unfortunately PhotoComment has stopped" when I am pressing back or home button. But when I am reopening app from task manager it works. this is my mainactivity.java package com.cameratag; import…
Nadir Novruzov
  • 467
  • 1
  • 6
  • 16
3
votes
2 answers

After pressing HOME button, application starts a new instance of the application's main activity

I have MyApp ready, Now I see this bug, When I install the app it displays the splash screen, and moves to second activity and so on.Now when I click on HOME button and again start the app it starts from beginning and not from where I had left and…
Goofy
  • 6,098
  • 17
  • 90
  • 156
3
votes
0 answers

Samsung Touchwiz always prompts for default app on startup in Android 4.1.1

I have developed an application for my blind friends which has the default home settings set in the manifest, as below:
3
votes
3 answers

How to launch default home launcher through code while working with real device?

I have succeeded in launching the default home launcher through the following code while working with the emulator: Intent de_intent=new…
Ganesh
  • 35
  • 2
  • 5
2
votes
3 answers

Android Home activity launching a sub-activity

I am relatively new to Android programming. I have been given a task at work where I need to create a Custom Home activity launcher. I did a bit of research and found the example on the Android developer website (home sample). This was the start…
2
votes
3 answers

need help in Home Button in android

hi all i want to intercept my Home Button. what i want is that whenever i press a Home Button i want to display a Alert dialog for Are you sure you want to Quit. if Yes then Finish the activity else do nothing. I have got to know that when ever we…
Shah
  • 4,990
  • 10
  • 48
  • 70
2
votes
0 answers

How can I disable button of navigation bar and status bar?

I am trying to develop a fullscreen mode app. Now I have set my app as immersive mode that hides every time the status bar and navigation bar, and only shows them when user made a swipe gesture in top/bottom edge of the screen I think is not…
Sergio
  • 725
  • 1
  • 7
  • 20