use of intents

Darren69

Member
Licensed User
Longtime User
Hello,

Trying to get my head around intents.

is it possible / how do i send values that are generated within one application to another application?

I have an app that calculates pixels for a given LED screen, and a second program that will generate a media grid, I could make it a single program, but want to reuse the grid generation program for another application, so how do I send values from one to the other?

I have been reading through the forums, but I don't think I am fully understanding if I need to do something special in the receiving intent.

thanks in advance

Darren
 

thedesolatesoul

Expert
Licensed User
Longtime User
The receiver:

Write an intent filter in your manifest
- Action
- Category

Create an activity or service to deal with this intent.
- Activity for foreground action, service for background action.
- Use GetStartingIntent to get the intent and then Intent.GetExtras to get any extra information
 
Upvote 0

yttrium

Active Member
Licensed User
Longtime User
but want to reuse the grid generation program

You could always wrap the grid generation program into a library, and use it in both apps.
 
Upvote 0
Top