[Android] Issue regarding android:targetSdkVersion.

Domain/Android 2012.10.08 09:31

Android document says several advantages of android:targetSdkVersion. But, I faced following issue.

Here is my case.




<activity ...



Since v3.2 ScreenSize is additionally required at configChanges to handle orientation change.

But, in this case, minSdkVersion is "10" so, ScreenSize cannot be used.

The problem is that targetSdkVersion is "15".

So, framework doesn't call onConfigurationChanged() callback when orientation is changed.

This is unavoidable and unexpected.

Eventually, I gave up using 'targetSdkVersion'.

I'm not sure there are any other workarounds for these cases, but after experiencing above case, I am trying to Not-To-Use targetSdkVersion option...

Trackbacks 0 : Comments 0