Hi , 

There is defined that in this link 
http://developer.android.com/guide/google/play/publishing/multiple-apks.html, 
that when there is no over lap between device lass, we don't need to change 
versioncode 


If you have one APK that's for API level 4 (and above) *and* small - normal 
screens, and another APK for API level 8 (and above) *and* large - xlarge 
screens, then the version codes *do not need to increase* in correlation 
with the API levels. Because there is no overlap within the screen size 
filter, there are no devices that could potentially move between these two 
APKs, so there's no need for the version codes to increase from the lower 
API level to the higher API level. 


I have used following two different identifier for creating different apk. 
 Both are having same API level as well as same versioncode
*First Identifier for apk*

<compatible-screens>
>        <screen android:screenSize="small" android:screenDensity="ldpi" />
>         <screen android:screenSize="small" android:screenDensity="mdpi" />
>        <screen android:screenSize="normal" android:screenDensity="ldpi" />
>         <screen android:screenSize="normal" android:screenDensity="mdpi" />
>     </compatible-screens>


*Second identifier for other apk*

<compatible-screens>
>         <screen android:screenSize="large" android:screenDensity="hdpi" />
>         <screen android:screenSize="large" android:screenDensity="xhdpi" 
> /> 
>        <screen android:screenSize="xlarge" android:screenDensity="hdpi" />
>        <screen android:screenSize="xlarge" android:screenDensity="xhdpi" />
>     </compatible-screens>


But still market gives me error "The new apk's versionCode (6) already 
exists."

-- 
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

Reply via email to