titanium - restrict a user to download the app from google play if android version is older -
how restrict user download app google play(google app store) if user's android version(sdk) lower specific version. using titanium develop app.
detail: have created application client , works fine version 4.2.2 , above there issues 4.2.1 , below client wants if user having version below 4.2.1 tries download app app store, user message/notification version.
i tried set minsdkversion
in manifest file setup default sdk version in properties 4.2
still user can download , install app. there way restrict user downloading app on basis of android version.
i added property in tiapp.xml
<android xmlns:android="http://schemas.android.com/apk/res/android"> <tool-api-level>8</tool-api-level> <manifest> <uses-sdk android:minsdkversion="4"/> <!--android:targetsdkversion="7" --> </manifest> </android>
here manifest
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.contingent.pcc" android:versioncode="4" android:versionname="1.2"> <uses-sdk android:minsdkversion="4" /> <!-- ti_manifest --> <application android:icon="@drawable/appicon" android:label="cns pcc" android:name="cnspccapplication" android:debuggable="false"> <!-- ti_application --> <activity android:name=".cnspccactivity" android:label="cns pcc" android:theme="@style/theme.titanium" android:configchanges="keyboardhidden|orientation"> <intent-filter> <action android:name="android.intent.action.view" /> <category android:name="android.intent.category.default" /> <category android:name="android.intent.category.browsable" /> <!--<category android:name="android.intent.category.launcher" />--> <data android:scheme="cnspcc" /> </intent-filter> <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name="org.appcelerator.titanium.tiactivity" android:configchanges="keyboardhidden|orientation" /> <activity android:name="org.appcelerator.titanium.titranslucentactivity" android:configchanges="keyboardhidden|orientation" android:theme="@android:style/theme.translucent" /> <activity android:name="org.appcelerator.titanium.timodalactivity" android:configchanges="keyboardhidden|orientation" android:theme="@android:style/theme.translucent" /> <activity android:name="ti.modules.titanium.ui.titabactivity" android:configchanges="keyboardhidden|orientation" /> <activity android:name="ti.modules.titanium.ui.android.tipreferencesactivity" /> <service android:name="org.appcelerator.titanium.analytics.tianalyticsservice" android:exported="false" /> </application> <supports-screens android:anydensity="false"/> <uses-permission android:name="android.permission.access_network_state"/> <uses-permission android:name="android.permission.write_external_storage"/> <uses-permission android:name="android.permission.access_mock_location"/> <uses-permission android:name="android.permission.vibrate"/> <uses-permission android:name="android.permission.access_wifi_state"/> <uses-permission android:name="android.permission.access_coarse_location"/> <uses-permission android:name="android.permission.camera"/> <uses-permission android:name="android.permission.internet"/> <uses-permission android:name="android.permission.read_contacts"/> <uses-permission android:name="android.permission.access_fine_location"/> </manifest>
also check properties:
you using minsdk version 4
. must 17
4.2
make try adding 17
. not allow user have os version less 4
.
read more details @ uses-sdk detail , dashboards
Comments
Post a Comment