Close application and launch home screen on Android -


i have 2 different activities. first launches second one. in second activity, call system.exit(0) in order force application close, first activity automatically displayed instead of application returning home screen. how can avoid this, , application return home screen?

you should think not exiting application. not how android apps work.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -