I am trying to write the correct intent filter.
I am mostly familiar with intentions, they work great in my application, but I want to know how best to do this. Here is what I need to do:
I have an application that owns some data. (data from the ECU, engine control unit) There are two actions: one action can display data in numbers, and the other can display it in graphs.
Look at the first activity.
- What is he doing? Is displayed.
- What does it display? ECU data.
- How to display this data? like numbers.
The second action is almost the same, but the third element is different: it displays data in graphs.
So, I want to be able to send intentions that describe all the information in detail, just like "Hi Android, I need to display ECU data in numbers", and then I need to open the activity first.
And I also want to be able to send an intention that indicates only the first two elements, just like "Hi, Android, I need to display ECU data", and then the android should ask the user what activity to open.
My application should also respond to other applications.
What is the best way to achieve all this?
UPDATE: Here is my xml. What should I point to <intent-filter>?
<activity
android:name=".MyActivity"
>
<intent-filter >
</intent-filter>
</activity>
2:. : Service, Bluetooth ECU. , : , , . AIDL , .
, , .
, , . : Activity, Service, , .
, Intent, ", Android, ECU", Android , , , Activity .