'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.basic4ppc.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="33"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"
/>)
AddActivityText(Main,
<intent-filter>
<action android:name="android.intent.action.VIEW" android:exported="true" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="$PACKAGE$"/>
</intent-filter>
)
'wegen Recivern
AddPermission(android.permission.RECEIVE_BOOT_COMPLETED)
AddReceiverText(BackupReciver, <intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>)
SetApplicationAttribute(android:label, "$LABEL$")
SetActivityAttribute(Main, android:windowSoftInputMode, stateHidden|adjustPan)
SetApplicationAttribute(android:theme, "@style/MyTheme")
SetApplicationAttribute(android:icon, "@mipmap/logo")
CreateResource(mipmap-anydpi-v26, ic_launcher.xml,
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/background"/>
<foreground android:drawable="@mipmap/foreground"/>
</adaptive-icon>
)
CreateResourceFromFile(Macro, Core.NetworkClearText)
AddPermission(android.permission.SCHEDULE_EXACT_ALARM)
AddPermission("android.permission.WRITE_EXTERNAL_STORAGE")
AddApplicationText(
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="$PACKAGE$.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>
)
CreateResource(xml, provider_paths,
<external-files-path name="name" path="" />
)
'Ende of File Provider
'Checkbox
CreateResource(layout, checkbox.xml,
<CheckBox xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/chk1"
android:layout_width="85dip"
android:layout_height="55dip"
android:button="@null"
android:drawableRight="?android:attr/listChoiceIndicatorMultiple"
android:tag="chk1" />
)
'''''Checkbox ende