Android Question Inter App Communications "Help Please"

werner_Fourie

Member
Licensed User
Hi All..

I want to send small packets like "000.12 kg" from one App to another App on the same device..

Just need to be pointed in the right direction please..

I don't want to use Intents..

Should I use "client" "server" type communications or is there another way..

Thanks
 

JohnC

Expert
Licensed User
Longtime User
Just curious, why don't you want to use Intents?
 
Upvote 0

werner_Fourie

Member
Licensed User
Hi

I don't know intents that well..
Prefer to just use a port on the device..
I just don't know what is the best way to do it apart from intents on the same device..

Thank You
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
The problem with using a port is that the receiving app must already be running so that it can receive the data.

This might help you understand intents:

 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
If the other app provide an api for that use the api.

The way to transfer things from app a to app b in Android is to use intents.

Bot apps need to understand how the intents looks like though.
 
Upvote 0

werner_Fourie

Member
Licensed User
Hi
Both App's will be my own..
I thank You for the advice but there must be a different way..
Will see what comes up otherwise I will have to go with intents..

Thanks
 
Upvote 0
Top