Italian fallisce su Lollipop in ->

Luciano Veneziano

Active Member
Licensed User
Longtime User
Dopo essere uscito pazzo per una settimana ho trovato dove fallisce con (Android 5)
Qualcuno sa come fare in modo che tale funzione vada bene per tutti i tipi di android?

B4X:
Sub SetMobileDataEnabled(enabled As Boolean)
    Try
          refl.Target = refl.GetContext
          refl.Target = refl.RunMethod2("getSystemService", "connectivity", "java.lang.String")
   ->    refl.RunMethod2("setMobileDataEnabled", enabled, "java.lang.boolean")
    Catch
         Log("SetMobileDataEnabled: " & LastException.Message)
    End Try  
End Sub
 

moster67

Expert
Licensed User
Longtime User
Last edited:
Top