I have a launcher Activity
that load and resize big bitmap as it\'s background when it opens.
Whenever hit the back button, the Activity
is
even after destroying the activity by calling finish(), it's resources are queued for garbage collection. activity will be freed during next GC cycle.
@Override
public void onDestroy() {
super.onDestroy();
Runtime.getRuntime().gc();
}
You can also use android:largeHeap="true"
to request a larger heap size, in your application tag in manifest.