wireuposcar / WireUp_test

1 stars 0 forks source link

Starting Intent on Intent #6

Open Faagerholm opened 6 years ago

Faagerholm commented 6 years ago

Please review..

I have found several places in your code where you start a new activity with Intent and instead of calling finish() you then decide to call new Intent, building a beautiful layered cake of spaghetti. :)

There is two suggestions to fix this.

  1. Call finish() to return to previous Activity
  2. Clear intent stack. ( https://stackoverflow.com/questions/5794506/android-clear-the-back-stack )
Faagerholm commented 6 years ago

There is several ways to return objects and information back to previous Intent, for example use Intent.PutExtra(String key, object value);