Android Question Start App with E-Mail URI and Starter Service

Siam

Active Member
Licensed User
Longtime User
Hello,

I'm not getting any further right now

I have a App with this is it possible that i can start it from e-mail URI so far it is working but if this app is in the background and i tap on a link in the e-mail then the app will start a second time. i think my problem is the Starter Service or the manifest entry.

manifest entry:
AddActivityText("webbasal",
<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT"></category>
    <category android:name="android.intent.category.BROWSABLE"></category>
    <data android:scheme="https" />
    <data android:host="kleinersonnenschein.eu" />
</intent-filter> )

so now is my question how i do I have to proceed in the starter service so that the app doesn't run twice? and/or how can i figure out in the starter service that the app is started from e-mail?

if i try to get the intent in the starter.service with this code

B4X:
Sub GetIntent1 As Intent
    Dim sR As Reflector
    sR.Target=sR.GetActivity
    Return sR.RunMethod("getIntent")
End Sub

i will get a null pointer exception
 
Top