Android Question phonestatelistener - signal strenght

DonManfred

Expert
Licensed User
Longtime User
maybe a problem with the new permission system in Android 6?
 
Upvote 0

palmaf

Member
Licensed User
Longtime User
This is my manifest

AddManifestText(
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="23"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_UPDATES"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
 
Upvote 0

palmaf

Member
Licensed User
Longtime User
'Callback invoked when network signal strengths changes.
'you can use getCDma, etc to get the network connection.
Sub PSL_onSignalStrengthsChanged (signalStrength As String)
ToastMessageShow(signalStrength, False)
ToastMessageShow(PSL.CdmaDbm, False)
End Sub

This is the code that should give the message (numeric) signalstrength and this is what it appears


Screenshot_20151118-114214.png
 
Upvote 0
Top