Android Question Intent to get data into a service

tucano2000

Active Member
Licensed User
Longtime User
[TUTORIAL] Inter-app Communication with Intents say:

5. Code the Requester to accept the data
Again this code is very similar to the Provider except that it gets the data:

B4X:
Sub Activity_Resume

Dim in as Intent
in = Activity.GetStartingIntent
If in <> null Then
    If In.HasExtra("Settings") Then
        AcceptSettings 'Do something here with your settings
    End If
End If
End Sub
I need to do this in a service to retrieve putextra and I do not want to load the activity. Is it possible? How?
 

DonManfred

Expert
Licensed User
Longtime User
1. This is an old thread. You should always ceate a new thread for a new question instead of pulling out an OLD one...
2. Create a new one and GIVE US MUCH MORE INFORMATIONS.
3. Search for inter app communication. Search for Intent filters and how they work. MAybe app deeplinking is right for you; search for it
 
Upvote 0
Top