Then i created a service s1 which should run anytime when media mounted.
B4X:
Sub Service_Start (StartingIntent As Intent)
If(StartingIntent.Action = "android.intent.action.MEDIA_MOUNTED") Then
ToastMessageShow("media has been mounted",True)
Log("media has been mounted")
End If
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.