B4A Library CompassView

Johan Schoeman

Expert
Licensed User
Longtime User
Maybe this one requires location permission that was not required before....Will have to check

 

Johan Schoeman

Expert
Licensed User
Longtime User
I´ll test with GPS Permissions later today too ;-)

This one runs on my Android 16 device as is when downloading it from the B4A posting (allowing an OLD version of Android to be installed) and also when I change the Manifest to 34. Needles are working perfectly in both cases.

Manifest changed to 34:
'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="34"/>
<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)
'End of default text.

It uses:
Java Imports:
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…