'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
'<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="4"/>
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetActivityAttribute(StopNagging2, android:theme, @android:style/Theme.Translucent.NoTitleBar)
'SetActivityAttribute(StopNagging2, android:theme, @android:style/Theme)
'SetApplicationAttribute(android:icon, "@drawable/icon") 'remmed 11/16/19
'11/16/19 added next two lines
SetApplicationAttribute(android:icon, "@mipmap/ic_launcher")
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>
)
SetApplicationAttribute(android:label, "$LABEL$")
AddPermission(android.permission.RECEIVE_SMS)
AddPermission(android.permission.PROCESS_OUTGOING_CALLS)
AddPermission(android.permission.READ_EXTERNAL_STORAGE) '6/4/18 - required for 26
AddPermission(android.permission.ACCESS_NOTIFICATION_POLICY) '6/4/18 - required for 26
AddReceiverText(DoSMSNotification, <intent-filter> <action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>)
AddReceiverText(DoSMSNotification, <intent-filter> <action android:name="android.provider.Telephony.MMS_RECEIVED" />
</intent-filter>)
AddPermission(android.permission.READ_PHONE_STATE)
AddReceiverText(DoNotification, <intent-filter> <action android:name="android.intent.action.PHONE_STATE" />
</intent-filter>)
'AddReceiverText(DoNotification, <intent-filter> <action android:name="android.intent.action.SERVICE_STATE" />
'</intent-filter>)
AddReceiverText(DoNotification, <intent-filter> <action android:name="android.provider.Telephony.LISTEN_MESSAGE_WAITING_INDICATOR" />
</intent-filter>)
AddReceiverText(UserPresent, <intent-filter> <action android:name="android.intent.action.USER_PRESENT" />
</intent-filter>)
AddReceiverText(UserPresent, <intent-filter> <action android:name="android.intent.action.NEW_OUTGOING_CALL" />
</intent-filter>)
'End of default text.
CreateResourceFromFile(Macro, Themes.LightTheme)
AddApplicationText(<uses-library android:name="org.apache.http.legacy" android:required="false" />) 'Added10/24/19 to fix error with LicenseChecker
'CreateResourceFromFile(Macro, Themes.DarkTheme)