Android Question sdkVersion

Rogerardo

Member
Licensed User
Longtime User
I am trying to distribute an application on a regular basis to around 100 tablets. I am using MAAS360 to distribute. MAAS360 is stopping the distribution due to my App not having a valid version number. The version shown in MAAS360 is "sdkVersion". I presume this is something to do with the manifest file. Does anyone know how I put in a version number? It would be helpful to me if I could see an example of the code required.
 

Rogerardo

Member
Licensed User
Longtime User
These are the attributes at the top of my main screen:
#FullScreen: True
#IncludeTitle: True
#ApplicationLabel: Inspection
#VersionCode: 7
#VersionName: 1405080
#SupportedOrientations: portrait
#CanInstallToExternalStorage: False
For whatever reason MAAS360 will not distribute the application, coming up with "sdkVersion" as the version number rather than the 7 I expected.
 
Upvote 0

Rogerardo

Member
Licensed User
Longtime User
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" />
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.


<?xml version="1.0" encoding="UTF-8"?>

-<manifest android:installLocation="internalOnly" android:versionName="" android:versionCode="3" package="ry.b4a.inspection" xmlns:android="http://schemas.android.com/apk/res/android">

<uses-sdk android:minSdkVersion="4"/>

<supports-screens android:anyDensity="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true"/>

<uses-permission android:name="android.permission.INTERNET"/>

<uses-permission android:name="android.permission.BLUETOOTH"/>

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>


-<application android:label="Inspection" android:icon="@drawable/icon">


-<activity android:name=".main" android:label="Inspection" android:screenOrientation="portrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden">


-<intent-filter>

<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER"/>

</intent-filter>

</activity>

<activity android:name=".units" android:label="Inspection" android:screenOrientation="portrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden"> </activity>

<activity android:name=".invoice" android:label="Inspection" android:screenOrientation="portrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden"> </activity>

<activity android:name=".trailer" android:label="Inspection" android:screenOrientation="portrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden"> </activity>

<activity android:name=".invoiceheader" android:label="Inspection" android:screenOrientation="portrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden"> </activity>

<activity android:name=".system" android:label="Inspection" android:screenOrientation="portrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden"> </activity>

<activity android:name=".transmit" android:label="Inspection" android:screenOrientation="portrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden"> </activity>

<activity android:name=".cantprocess" android:label="Inspection" android:screenOrientation="portrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden"> </activity>

<activity android:name=".diagnostics" android:label="Inspection" android:screenOrientation="portrait" android:launchMode="singleTop" android:windowSoftInputMode="stateHidden"> </activity>

</application>

</manifest>
 
Upvote 0
Top