Android Question SetMobileDataEnabled for Android => 5

Luciano Veneziano

Active Member
Licensed User
Longtime User
Hi! exist a system call like this
Code:
Sub SetMobileDataEnabled(enabled As Boolean)
r.Target = r.GetContext
r.Target = r.RunMethod2("getSystemService", "connectivity", "java.lang.String")
r.RunMethod2("setMobileDataEnabled", enabled, "java.lang.boolean")End Sub
for android >= 5

Thanks!!!
 

Luciano Veneziano

Active Member
Licensed User
Longtime User
Si.. lo avevo già visto. ma lavorando con b4a da meno di un mese non ho capito come implementarlo sulla mia applicazione.
 
Upvote 0
Top