Questions tagged [home-button]

A physical button on iPhone, iPad and iPod Touch. Returns from the programm to the home screen

103 questions
2
votes
1 answer

override Home key in android ICS

I need to override HOME key in my application. I've used code from this post but it's not working on android 4.X. Do you know other workarounds to achieve this task? I've looked a little bit in native Phone application (on android 2.2) but I…
Buda Gavril
  • 21,409
  • 40
  • 127
  • 196
2
votes
1 answer

My simulator crashes when I try to terminate my app from the recent-apps bar

My simulator crashes when I try to terminate my app from the recent-apps bar. When I hit the home button and then my app, the app goes back to where it was, just like it should. But when i hit the home button, and then the home button twice, and…
Mangy92
  • 621
  • 1
  • 10
  • 25
1
vote
2 answers

Count User Actions

I am a beginning programmer but I was wondering how I could keep track of a user's actions. For example, hypothetically, the goal of my application is to keep track of how many times the user presses the home button (or opens the internet, etc). …
Szwedo
  • 354
  • 1
  • 3
  • 15
1
vote
2 answers

Detecting when 'Home' is pressed or app is resumed (Keyboard is covering View when it resumes)

In my iPhone app, if the user presses the Home button while the keyboard is up, then returns to the app, the keyboard is still up but my view behind is hidden behind it! I have some code that normally would rise and lower the view as necessary, but…
Andy A
  • 4,191
  • 7
  • 38
  • 56
1
vote
2 answers

Hiding an app from recents programmatically

I want to hide my app from recents programmatically when the user press the home or the task button. The user can decide if the app is persistent in background or not, this setting come from backend so pre-login activities are not to be maintened in…
jack_the_beast
  • 1,838
  • 4
  • 34
  • 67
1
vote
3 answers

Appium iOS can't go to Home screen

Im using Appium to test my iOS app on real device. During the test I need to go to the home screen (I must do so) but can't find a way to do it. I found here that there is an option to use the accessibility for Home button- Appium iOS can't inspect…
user7768692
  • 76
  • 1
  • 1
  • 6
1
vote
3 answers

Android: associate a method to home button of smartphone

how can I associate a method to home button of smartphone? I want that checking this botton my Android app does a specific method. I read that to disable home button there is the…
user3582433
  • 469
  • 1
  • 8
  • 24
1
vote
1 answer

Getting the error expected resource of type attr

I am trying to use the Home Key Locker https://github.com/shaobin0604/Android-HomeKey-Locker I want to be able to detect and prevent homescreen button click on the lock screen. Majority of the answers mentioned that it cannot be disabled. This is…
1
vote
3 answers

Home button minimizes the app

I have created a small app using the sdk 4, app works perfectly fine, but when the user hits the home button to exit and when he comes back, the app doesn't go to the home screen, it continues from the state (screen) which the user hit the home…
Sukitha Udugamasooriya
  • 2,268
  • 1
  • 35
  • 56
1
vote
1 answer

Call a function when home button tapped in swift

I have been working on a game in swift and when the home button is tapped accidentally I would like to run a function that restarts the game. Does anyone know what code needs to be implemented to call a function when the home button is tapped and…
1
vote
1 answer

Open an URL in UIWebView

I have an important question. I'm creating an iPhone app. I have an UIWebView (https://www.google.de/) with goBack, goForward and reload. Now, I want a Button e.g. Bar Button Item named Home or Homepage, to open an URL (https://www.google.de/) in…
user4428017
1
vote
3 answers

How do I disable Home button in Android 4.4.2

In my app i have to disable device's Home key, my tab supports android 4.4.2 I know how to disable back button functionality, i used below lines for that @Override public void onBackPressed() { } but i am concern about How to disable Home button…
Sun
  • 6,768
  • 25
  • 76
  • 131
1
vote
0 answers

Execute Code only when lockbutton was pressed (iphone objective-c)

I made an app that should execute code when the phone is locked with the app active. This action calls the following methods: - (void)applicationWillResignActive:(UIApplication *)application - (void)applicationDidEnterBackground:(UIApplication…
andre_bauer
  • 850
  • 2
  • 10
  • 18
1
vote
2 answers

Disable home button for staying in current screen for 4.0+

I have to create an app where the user can't go out of it. The device is fixed in a car and should act as a login and info service. The user in the car should not go out of this app. So I really have to find a solution to disable the home button.…
silvia_aut
  • 1,481
  • 6
  • 19
  • 33
1
vote
0 answers

How to make app quit after a few minutes on home screen?

I'd like to ask a question what item on the plist could I use to make my app quit after a few minutes on the home screen. I am already aware of the "Application does not run in background" boolean in the Plist, but this command completely quits the…