ok, thanks, the video is very helpful, but i get an error, don't no why. Here is the code, the manifest and the error.
code....
shared = rp.GetSafeDirDefaultExternal("")
Dim TestFolder As String = rp.GetSafeDirDefaultExternal("Test")
File.WriteString(TestFolder, "test.txt", "1234aaa")
rp.CheckAndRequest(rp.PERMISSION_READ_PHONE_STATE)
wait for Activity_PermissionResult (permission As String, result As Boolean)
If result Then
Dim Pid As PhoneId
Log(Pid.GetDeviceId)
Else
Log ("No permission")
End If
manifset.....
'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:
https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="26"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.DarkTheme)
AddManifestText(<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />)
error...
B4A Version: 8.80
Parse den Code. (0.00s)
Building folders structure. (0.03s)
Kompiliere den Code. (0.08s)
Kompiliere Layoutcode. (0.01s)
Organisiere Libraries. (0.00s)
Generiere R Datei. Error
AndroidManifest.xml:21: error: Error parsing XML: not well-formed (invalid token)
Any Idea??