How to make sure app restarts each time its opened even if its just put in background? android

A.Turner

I am creating a control app for the sound systems in place in certain areas like bars/clubs/events ect...

I need my app so that lets say a manager closes the android tablet but doesn't fully close the app i am building, then it will still re-start the app anyway as if she had? so when the next person who picks it up which might not be a manager gets taken back to the first activity (log in page) - - - (for log in / security purposes)

I have seen a few different ways on here but found they either dont work or caused memory leaks...

Any advice on doing this would be great, thank you!

Aznhar

The best way to do this is to detct when the app goes in background so when the current activity is restart you can call your disconnect function and go to the connection Activity.

To detect when the app go in background, I used the solution explained here

I personaly took the answer of "d60402" So you can choose the timer after which the app is considered in background.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to make JButton add Doubles each time its clicked

From Dev

How to make sure the QApplication and its QThreads are all closed

From Dev

android: how to make sure my app doesnt get paused when running in the background

From Dev

android: how to make sure my app doesnt get paused when running in the background

From Dev

How to make a div draggable from just 1 on of its child nodes

From Dev

How to put data of each month in its respective monthly column

From Dev

Android app restarts when opened by clicking app icon

From Dev

Android app restarts when opened by clicking app icon

From Dev

Delphi XE5 Android : how to make each listview item have its own template?

From Dev

How to make sure the MultiResourceItemReader refreshes the resources each time the job is executed

From Dev

How to make sure the MultiResourceItemReader refreshes the resources each time the job is executed

From Dev

How gmail android App loads its ListView?

From Dev

How to limit broadcast to its own Android app

From Dev

How gmail android App loads its ListView?

From Dev

How to make sure that a form is only opened once?

From Dev

How to make a div mask its parent's background

From Dev

How to synchronize resource access between UWP app and its background tasks?

From Dev

how to move the background running app to foreground by its package name

From Dev

How to build an Android application that alerts the user, even if its killed?

From Dev

Make the UICollectionView scrollable even when its not full

From Dev

AlarmManager repeats call even if its not time

From Dev

How can we make `time` apply to a pipeline or its component?

From Dev

How to make sure every data members of a class have been copied in its copy constructor?

From Dev

What actually the 'socket' object is in socket.io? How to make sure its usage is optimum?

From Dev

How to make sure that a inner div does not go outside its container div flexbox with CSS/HTML only?

From Dev

How do I make sure that the domain is up and the CLI is connected to its controller?

From Dev

How make sure that a Composite also lays out its children after calling Composite.layout() in Java

From Dev

How do you prevent an Android View from drawing its Background

From Dev

How can I move a CheckBox in relation to its image background? (Android)

Related Related

  1. 1

    How to make JButton add Doubles each time its clicked

  2. 2

    How to make sure the QApplication and its QThreads are all closed

  3. 3

    android: how to make sure my app doesnt get paused when running in the background

  4. 4

    android: how to make sure my app doesnt get paused when running in the background

  5. 5

    How to make a div draggable from just 1 on of its child nodes

  6. 6

    How to put data of each month in its respective monthly column

  7. 7

    Android app restarts when opened by clicking app icon

  8. 8

    Android app restarts when opened by clicking app icon

  9. 9

    Delphi XE5 Android : how to make each listview item have its own template?

  10. 10

    How to make sure the MultiResourceItemReader refreshes the resources each time the job is executed

  11. 11

    How to make sure the MultiResourceItemReader refreshes the resources each time the job is executed

  12. 12

    How gmail android App loads its ListView?

  13. 13

    How to limit broadcast to its own Android app

  14. 14

    How gmail android App loads its ListView?

  15. 15

    How to make sure that a form is only opened once?

  16. 16

    How to make a div mask its parent's background

  17. 17

    How to synchronize resource access between UWP app and its background tasks?

  18. 18

    how to move the background running app to foreground by its package name

  19. 19

    How to build an Android application that alerts the user, even if its killed?

  20. 20

    Make the UICollectionView scrollable even when its not full

  21. 21

    AlarmManager repeats call even if its not time

  22. 22

    How can we make `time` apply to a pipeline or its component?

  23. 23

    How to make sure every data members of a class have been copied in its copy constructor?

  24. 24

    What actually the 'socket' object is in socket.io? How to make sure its usage is optimum?

  25. 25

    How to make sure that a inner div does not go outside its container div flexbox with CSS/HTML only?

  26. 26

    How do I make sure that the domain is up and the CLI is connected to its controller?

  27. 27

    How make sure that a Composite also lays out its children after calling Composite.layout() in Java

  28. 28

    How do you prevent an Android View from drawing its Background

  29. 29

    How can I move a CheckBox in relation to its image background? (Android)

HotTag

Archive