Android Question ActivityNotFoundException ACTION_NOTIFICATION_LISTENER_SETTINGS

juanjo3691

Member
Licensed User
Longtime User
Hello, I have this code:

B4X:
Sub Activity_Create(FirstTime As Boolean)
    Activity.Color = Colors.White
    Dim In As Intent
    In.Initialize("android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS", "")
    StartActivity(In)
    StartService("emails")
End Sub

And I find the next error:
LastException android.content.ActivityNotFoundException No Activity found to handle Intent { act=android.setting.ACTION_NOTIFICATION_LISTENER_SETTINGS flg=0x20000

Any idea ?
Thanks to all.
 

Computersmith64

Well-Known Member
Licensed User
Longtime User
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
target set to 19
the problem is not the targetsdk.
The device SDK must be using Api SDK 22 to have this intent. so your device is running Androig 5+?
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
the problem is not the targetsdk.
The device SDK must be using Api SDK 22 to have this intent. so your device is running Androig 5+?

Actually, I don't think that's the problem either because one of the devices I ran it on is running Android 4.4.2 (API 19) & it ran fine.

- Colin.
 
Upvote 0
Top