Hello,
I need to get installed applications on the Android
The found solution is:
B4X:
Private Sub ShowInstalledApps
Dim pm As PackageManager 'phone library
For Each pck As String In pm.GetInstalledPackages
Dim name As String = pm.GetApplicationLabel(pck)
Log(name)
Next
End Sub
My question is Does the codes compatible with all android versions?
In my app, I have to give a score user after installing app and that is important that I can get the installed app
Thanks
Google Play restricts the use of high-risk or sensitive permissions, including the QUERY_ALL_PACKAGES permission, which gives visibility into the inventory of installed
You can query for the existence of specific apps with something like this
AddManifestText(<queries>
<package android:name="com.fake.app" />
<package android:name="com.fake.game" />
</queries>)
You can query for the existence of specific apps with something like this
AddManifestText(<queries>
<package android:name="com.fake.app" />
<package android:name="com.fake.game" />
</queries>)