0

We are facing issue while installing app first time.

Here is the steps to reproduce this issue

  1. Install the app
  2. Click open button
  3. Open app
  4. Press device home button
  5. Click on app icon
  6. App restarted

but if we click on done button after install the app then everthing is working perfect.

corda dev
  • 169
  • 1
  • 10
  • post your code for `onStop()`, `onStart` of the relevant activity here. – Sam Mar 28 '18 at 13:06
  • And what is the issue ? – vincrichaud Mar 28 '18 at 13:24
  • App restarted while click on app icon when the app is background (when you press device home button and click again on app icon)but as per my concern is that app should not restarted. – corda dev Mar 28 '18 at 14:44
  • please check whether app restarts on pressing home button on particular Activity or on every activity – xbadal Mar 29 '18 at 12:38
  • Already checked app restarts on every activity – corda dev Mar 29 '18 at 13:06
  • 3
    Does this answer your question? [App completely restarting when launched by icon press in launcher](https://stackoverflow.com/questions/16126511/app-completely-restarting-when-launched-by-icon-press-in-launcher) – yukashima huksay Apr 29 '20 at 04:06

2 Answers2

1

Settings>Build, Execution, Deployment>Instant Run

1

Alright guys! I figured out this issue. Actually this is the bug of android launch. This is not happened only for my app, This issue is occured on whstapp also or we can say that every android app. Basically after install the app there is two option one for done and second for open. If we pressed done button then everthing will work perfect but in case of open app will restart first time or we can say that app restarted untill the user kill the app.

corda dev
  • 169
  • 1
  • 10