android - Sending Activity to background without finishing -


how can make activity go background without calling finish() method , return parent activity started this? tried not find solution. if guys thankful.

the following work if activity running in different task parent. achieve this, see http://developer.android.com/guide/topics/manifest/activity-element.html#lmode.

public void onbackpressed () {     movetasktoback (true); } 

the current task hidden, state remain untouched, , when reactivated appear when left it.


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 -