To retain address obtained from GPS in both orientations with 2 xmls
In my application the address obtained from GPS must be retained in both orientations.Every time I change the orientation the GPS starts fetching from the beginning.
I have used 2 xmls for landscape and potrait...i.e layout-land... I have us开发者_StackOverflowed android:configChanges="orientation|keyboardHidden" in manifest to retain GPS result.
Result is retained but landscape xml is not used instead potrait xml is used for both orientations.
If i remove android:configChanges="orientation|keyboardHidden" from manifest GPS starts fetching location from beggining.
Please help me regarding this...
Could you post some more code. How are you starting your location listener? It doesn't make sense that removing android:configChanges="orientation|keyboardHidden" should make your GPS receive a signal. Maybe it was chance that you received a location update while inside. Maybe you should try testing the app outdoors.
精彩评论