Questions tagged [home-button]

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

103 questions
3
votes
3 answers

Disable Home button in Android 4.0+

I'm trying to replace the stock lock screen with my own app. In my code, i want to disable the Home button. I know how to do this in Android 2.3 and below, but the same code doesn't work with Android 4.0+ (return to desktop when Home button…
user538565
  • 513
  • 1
  • 6
  • 21
3
votes
0 answers

Detect a home button click with Safari on an iPad

Is it possible to listen for a 'home button' click when running a web app on an iPad? Something equivalent to applicationDidEnterBackground for native iOS apps. Thanks in advance!
Simple Simon
  • 712
  • 2
  • 8
  • 23
3
votes
1 answer

Phonegap Android application restarting instead of resuming on coming back after home button click

I have created PhoneGap 1.4/ with Android application with plugins. My client reports that, when he leaves the app using the Home button, and then relaunches it using the app icon, the app relaunches from the start instead of resuming. However, when…
2
votes
1 answer

Unity - How to hide Homebar on iOS ( defer system gestures and hide home button )

The game is in landscape mode and at the bottom of the screen are some ui buttons, for this reason I would need to hide iPhone home bar and use deferred edges. Using "Hide home button on iPhone X" correctly hides the button, but any single tap will…
CosmicSeizure
  • 1,375
  • 5
  • 17
  • 35
2
votes
2 answers

iPhone identify home button pressed

How do I identify if the app was in the background when the home button was clicked and not by external events (sms, call, video call)?
2
votes
1 answer

iOS: Make WebView fullscreen (hide white background behind home button)

New to iOS development. ContentView.swift: struct ContentView: View { var body: some View { WebView(url: "https://www.stackoverflow.com") } } WebView.swift: struct WebView: UIViewRepresentable { var url: String …
Hillcow
  • 890
  • 3
  • 19
  • 48
2
votes
1 answer

How to get iPhone X home bar to double swipe in landscape?

Landscape apps made with Xcode 8.3 are letterboxed on the iPhone X, and the home bar is partially disabled, meaning that the user must swipe up to "wake it" then swipe up again to exit the app. It's this second functionality that I want to implement…
hawkwood
  • 93
  • 1
  • 4
2
votes
0 answers

iOS 9 event for lightly double tapping home button i.e. Reachability?

Is there an event or way to know when the user taps the home button twice lightly for iOS9? Just to be clear that you know what I am talking about; I am not talking about when the user double taps the home button to then choose another app to jump…
Norm Doow
  • 73
  • 1
  • 9
2
votes
2 answers

What happens when the user hits the home button?

I have an app which can currently communicate with an server. Imagine the following case: User hits some buttons which triggers an server request. The request is send to the server and is processed. The user hits the home button (and maybe removes…
user3892683
2
votes
3 answers

Overriding the functionality of Home Button

In android I have been able to override the functionality of back button very easily but for my app I need to override the home button. For example the user is in Activity A, when he presses the home button, activity B is launched. I have tried to…
Umer Farooq
  • 7,356
  • 7
  • 42
  • 67
2
votes
5 answers

How to bring activity to front using finish from another activity

i have two activities: A and B. from A to B: onCreate Context context = this; onClick Intent i = new Intent(context,B.class); startActivity(i); from B to A: (if B has a button to return to A) button.setOnClickListener(new View.OnClickListener(){ …
Jayyrus
  • 12,961
  • 41
  • 132
  • 214
2
votes
1 answer

onResume() works only when app launched through launcher icon other than by pressing open button when installing

I am developing an android app with Min-TargetSDK=3 and TargetSDK=15. Previously also I have asked question related to my app not getting minimized to Recent Apps on home button press. Whenever I launch my app it starts from login page instead of…
Nandhu
  • 121
  • 1
  • 11
2
votes
1 answer

Keep GPS running for a few minutes when pressing the Home button

I have an App with Region Monitoring but for better presition I call to "startUpdatingLocation" for use the GPS when the user enter into the Region specified: - (void)locationManager:(CLLocationManager *)manager didEnterRegion:(CLRegion *)region…
2
votes
2 answers

Android, how to tell if user clicks a linkify link, or presses home button

I think I need to put some code within my onStop method. It pertains to a service that should be running only when the activity is finished() but when the user follows some linkify'd text to the web browser, or when the user presses the homescreen,…
CQM
  • 42,592
  • 75
  • 224
  • 366
2
votes
4 answers

How to trigger a function when a user goes back to a background app?

For example, an user opens an app, presses the home button, and then comes back to the app again. Is there any way to trigger certain functions when the user navigates back to the app? Such as auto load a view object when the user is back to the…
Kit Ng
  • 993
  • 4
  • 12
  • 24