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

How to not restart my app when the Home button is pressed?

I have an app that uses intent-filters in the AndroidManifest.xml file to start an Activity when the Home button is pressed. Thing is, if my app is on that time in a different activity, the LoginActivity is started again and the user has to log in…
Bart Friederichs
  • 33,050
  • 15
  • 95
  • 195
0
votes
1 answer

I can't to set HomeButton in right of Actionbar

I have an app, that must use slidemenu in right of screen. whit a change in XML file I can set slidemenu in right of screen but can not to set HomeButton in actionbar in right... I send for u some code that I sence we need: MainActivity.java package…
0
votes
0 answers

Disabling the home button, gives me an error

I know this has been asked a few times, but I am having some problems with actually using the solution provided. I want to disable access to the home button on a particular activity. Any help would be greatly appreciated. I think that my issue is…
epiclapser
  • 271
  • 4
  • 12
0
votes
4 answers

Add home button to action bar in the last activity

I want to add a home icon on action bar in my last activity, so that the if the user is at last activity, he just click the custom home icon button on last activity and navigates to the main activity. I created a new menu
PK__
  • 187
  • 3
  • 11
0
votes
1 answer

Launcher that open the other launcher

I want to know if the user clicks on the Home button (like listen to Home button). Because I saw that is there now way to do that, I tough about an idea. Maybe if I will create a launcher I will be able to handle to Home button... But since I don't…
nrofis
  • 8,975
  • 14
  • 58
  • 113
0
votes
3 answers

Home Button Service Background Music

I have a background music which is in Service, it works fine but when I pressed the HOME Button the music won't stop. Help me. Service: public class BackgroundSoundService extends Service { private static final String TAG = null; MediaPlayer…
0
votes
1 answer

Is there a way to make AppCompat's ActionBar's "back/up" button act as the "back" system button

I have an app with a couple of activities. Until now I had a "hardcoded" hierarchy between them, so I had the android:parentActivityName set explicitly in each (but the launcher activity) of them. However now I added the Settings to the menu of more…
0
votes
2 answers

Android intent BOOT_COMPLETED is never launched on Samsung SM-T230 Kitkat 4.4.2 tablet

I'm creating a HOME (android.intent.category.HOME) typed application which launchs another app as soon as the first one is launched. Up until now I've been using onResume() on the activity fragment, which was working great (meaning on other tablets…
0
votes
1 answer

Why a "home" activity will be killed when the home button is pressed?

I have created an activity , set it's filter as a Home activity and set launchMode with singleTask. When I press home ,the activity will be in onpause state then onStop . What confuse me is why the activity will be re-launched when back from icon…
0
votes
2 answers

press home key button and reinitialize the application

My application activity is facing a scenario when user press Home button on android phone. I have used OnPause() method . this i called when user press Home key. and Normal cicumstances when user launch the app again, it calls the onResume() method…
Sunil
  • 521
  • 1
  • 7
  • 24
0
votes
0 answers

What is the keycode for multitasking/appswitch for samsung galaxy s3?

Our app is crashing (it says "application has stopped) after we longpress the home button on samsung galaxy s3 (the longpress button is used to popup the multitasking screen/app switch dialog) we do not have this problem on our another testing…
0
votes
0 answers

How can i disable multitasking/app switch, when our application is running?

Our app crashes when we hold the home button (to get into the app list). KEYCODE_APP_SWITCH does not work for us.
Petr Župka
  • 111
  • 2
  • 9
0
votes
0 answers

Home Button press issue on my app

I'm trying to solve this but couldn't find any answer on SO. My issue is that whenever I'm in my app and I press the home button, my app layout becomes for a second like the wallpaper for my menu on the phone! Something like this : I've tried to…
BugaIulian
  • 315
  • 3
  • 18
0
votes
1 answer

How to set app title as up in Android 4.0 & 4.1

I have an app which should work on android 4.0 and up. When I try the app with my Samsung Galaxy S5 (Android 4.4.2), everything looks fine. I can press the activitie's title to go back. But on Android 4.0 and Android 4.1, I can only press the arrow…
Robin
  • 709
  • 2
  • 8
  • 20
0
votes
1 answer

How to finish activity with custom animation when home button pressed

I have an ActionBarActivity "B" whose parent is ActionBarActivity "A" (also defined in manifest). A is in "singleTask" launch mode. I have an animation when starting B from A as follows: public void onItemClick(...) { Intent mIntent = new…
Mehmed
  • 2,880
  • 4
  • 41
  • 62