Android Question intent help is needed...

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
hi,

in my app i need to load and run 2 other apps
i use this code

B4X:
Try
        
        Dim MyIntent As Intent
        MyIntent.Initialize(MyIntent.ACTION_MAIN, "")
    
        'App #1
        'MyIntent.SetComponent("arkom.nfc/.main")

        'app #2
        'MyIntent.SetComponent("il.co.app.accountit_app/.main")

    
        StartActivity(MyIntent)
    
    Catch
                
        log(LastException.Message)
   
    End Try

of course i use 2 different subs - one per each but they are identical
app #1 loads perfectly

app#2 generates an error

java.lang.Exception: android.content.ActivityNotFoundException: Unable to find explicit activity class {il.co.app.accountit_app/il.co.app.accountit_app.main}; have you declared this activity in your AndroidManifest.xml, or does your intent not match its declared <intent-filter>?

when trying to use the app's name (il.co.app.accountit_app) to open play store it opens perfectly on the app

so - why am i getting this error on this app ?

of course i have added the app to my manifest
and even as a single app in manifest i get the same error

B4X:
AddManifestText(
<queries>
<package android:name="arkom.nfc"/>
<package android:name="il.co.app.accountit_app"/>
</queries>
)

can anyone please help?

thanks...
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…