Hello,
i get an OutOfMemoryError in my app after changing the orientation.
I have read, that if have to use Context.getApplicationContext()
instead of a normal activity context??
My java file looks like:
class ..... {
private MapView mapView;
....
onCreate()
{
...
mapView = findViewById(R.id.map);
...
}
Must i use
mapView = new MapView(Context.getApplicationContext()) or something
like that to avoid the OutOfMemoryError??
I will post the logcat in a reply message.
Thanks,
Stefan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---