On Oct 8, 6:53 am, Stefan ebay-dah...@web.de wrote:
hi,
i have a question:
If I want to handle the configuration changes in my own way, which
things must I consider??
In the AndroidManifest.xml, I can set:
- mcc, mnc, locale, touchscreen, keyboard, keyboardHidden, navigation,
Please note, consuming configuration change events is NOT a way to get
around having to deal with an activity being destroyed and recreated -- you
still must deal with this to behave properly when your application goes to
the background and must be killed to have memory elsewhere, so that when the
hi,
thanks for your answers. thats really helps me for understanding.
@Dianne
Atm, i only need orientation and keyboardHidden for rotation. But If
something other happened (like connecting an external keyboard), all
states are lost. So i don't want to use onConfigurationChanged,
because thats
You can have it implement Parcelable and implement the code to read/write
its state.
On Thu, Oct 8, 2009 at 12:36 PM, Stefan ebay-dah...@web.de wrote:
hi,
thanks for your answers. thats really helps me for understanding.
@Dianne
Atm, i only need orientation and keyboardHidden for
hi,
i don't find a good tutorial for that. I don't get behind the idea of
this. But i want to understand it because in my opinion, this is the
cleanest way??
A dirty but perhaps an easier idea is to implement a String
getTrackPoint() function and save this in a Bundle. But i think, this
isnt the
i think i have found a good example.
But I must not create a service, or? I must only call:
saveInstanceState.putParcelable(sh, sh);
in my onSaveInstanceState - function???
And how can i use my sh object, after the activity was recreated??
Does this work:
sh =
Here's a typical implementation of a Parcelable class:
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/content/ComponentName.java
(Don't worry about the static writeToParcel() or readFromParcel() methods,
those are a special optimization that you won't
Yeah, I get it work.
I only add this to my class:
private SaveHelper(Parcel in) {
}
@Override
public void writeToParcel(Parcel dest, int flags) {
// TODO Auto-generated method stub
}
public static final Parcelable.CreatorSaveHelper CREATOR =
new Parcelable.CreatorSaveHelper()
8 matches
Mail list logo