I am talking about the Intents and Activities.
From my point of view (mainly Qt development in C++ when it comes to end user applications) I compare the Activity with a full screen dialog with a special purpose. This is not really the same as an ordinary main window; activities is expected to come with an intention - the Intents. The intents describes the intention of an Activity.
So far nothing special. I design my main window as an activity and next thing is to open an audio file from the book. Now I need to start another activity where I can browse files. At the first glans I though this to be an easy task. Then I stumbled on the Intent and things got complicated. After some reading everything turned impressed instead.
Here goes:
The framework is built so when I need to have something done I find the corresponding Intent (i.e. PickFile in my case) and ask for an activity that will provide me with that intended function. The system will try to match this and if there are alternatives, the user will be asked to chose. The proposed way to make sure I have my own Activity started is to create an unique Intent identifier and fire it of.
So, why is this really cool?
Take a look at http://www.openintents.org/. There you have a database of intents and can download or purchase the module supplying the activity. This means that using Intents you can use and resue, not only open source code by copying it into you application, but you can use closed source modules as well.
Experimenting with Intents and Activities as Use Cases |
No comments:
Post a Comment