Hi,
I need some help: I've developed an Application, now I'm trying to add some Application Interop, to start my App from another via Intent, see the following Code-Snippets:
Code in Application Manifest:
Code in Service Module:
Call from external Application:
Now I get the following Error Message:
What's wrong with my Code?
I need some help: I've developed an Application, now I'm trying to add some Application Interop, to start my App from another via Intent, see the following Code-Snippets:
Code in Application Manifest:
B4X:
AddReceiverText(Service,
<intent-filter>
<action android:name="de.dms.dwviewer.SEARCH" />
</intent-filter>)
Code in Service Module:
B4X:
Sub Service_Start (StartingIntent As Intent)
If StartingIntent.Action = "de.dms.dwviewer.SEARCH" Then
If StartingIntent.HasExtra("PARAM") Then
CallSubDelayed2(Main,"SetParameterAndSearch",StartingIntent.GetExtra("PARAM"))
End If
End If
End Sub
Call from external Application:
B4X:
Dim myIntent As Intent
myIntent.Initialize("de.dms.dwviewer.SEARCH","")
myIntent.PutExtra("PARAM","A140145")
StartActivity(myIntent)
Now I get the following Error Message:
android.content.ActivityNotFoundException: No Activity found to handle Intent
What's wrong with my Code?