Available Mashup Intents:
Map Point
topIntent Action: com.androidMashup.GEO_POINT
Title: Map Point
Description:
a geological point
required Extras for this intent:
-
key: longitude
type:long (long number )
The center of the map -
key: latitude
type:long (long number )
The latitude center of the map
optional Extras for this intent:
Sample Implementation:
for your manifest:<intent-filter>to generate the Intent:
<action android:name="com.androidMashup.GEO_POINT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
i = new Intent("com.androidMashup.GEO_POINT");to retrieve data from this Intent:
i.putExtra("longitude", longitude); //longitude as a long
i.putExtra("latitude", latitude); //latitude as a long
long longitude = getLongExtra("longitude", DEFAULT_LONGITUDE_VALUE);
long latitude = getLongExtra("latitude", DEFAULT_LATITUDE_VALUE);
Map View
topIntent Action: com.androidMashup.MAP_VIEW
Title: Map View
Description:
map view
required Extras for this intent:
-
key: longitude
type:long (long number )
the longitude center of the map -
key: latitude
type:long (long number )
-
key: zoomLevel
type:int (a Integer number )
optional Extras for this intent:
-
key: mapMode
type:String (a Standart Java String )
Sample Implementation:
for your manifest:<intent-filter>to generate the Intent:
<action android:name="com.androidMashup.MAP_VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
i = new Intent("com.androidMashup.MAP_VIEW");to retrieve data from this Intent:
i.putExtra("longitude", longitude); //longitude as a long
i.putExtra("latitude", latitude); //latitude as a long
i.putExtra("zoomLevel", zoomLevel); //zoomLevel as a int
i.putExtra("mapMode", mapMode); //mapMode as a String
long longitude = getLongExtra("longitude", DEFAULT_LONGITUDE_VALUE);
long latitude = getLongExtra("latitude", DEFAULT_LATITUDE_VALUE);
int zoomLevel = getIntExtra("zoomLevel", DEFAULT_ZOOMLEVEL_VALUE);
String mapMode = getStringExtra("mapMode", DEFAULT_MAPMODE_VALUE);
Contact Person Mashup
topIntent Action: com.androidMashup.CONTACT
Title: Contact Person Mashup
Description:
mashup applications that deal with your contacts. All applications that can deal with with a contact identified by first name and last name and possible other fields will respond to this mashup.
required Extras for this intent:
-
key: firstName
type:String (a Standart Java String )
-
key: lastName
type:String (a Standart Java String )
optional Extras for this intent:
-
key: company
type:String (a Standart Java String )
Sample Implementation:
for your manifest:<intent-filter>to generate the Intent:
<action android:name="com.androidMashup.CONTACT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
i = new Intent("com.androidMashup.CONTACT");to retrieve data from this Intent:
i.putExtra("firstName", firstName); //firstName as a String
i.putExtra("lastName", lastName); //lastName as a String
i.putExtra("company", company); //company as a String
String firstName = getStringExtra("firstName", DEFAULT_FIRSTNAME_VALUE);
String lastName = getStringExtra("lastName", DEFAULT_LASTNAME_VALUE);
String company = getStringExtra("company", DEFAULT_COMPANY_VALUE);
Song
topIntent Action: com.androidMashup.SONG
Title: Song
Description:
mashup you music libary!
required Extras for this intent:
-
key: title
type:String (a Standart Java String )
-
key: artist
type:String (a Standart Java String )
optional Extras for this intent:
-
key: year
type:int (a Integer number )
Sample Implementation:
for your manifest:<intent-filter>to generate the Intent:
<action android:name="com.androidMashup.SONG" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
i = new Intent("com.androidMashup.SONG");to retrieve data from this Intent:
i.putExtra("title", title); //title as a String
i.putExtra("artist", artist); //artist as a String
i.putExtra("year", year); //year as a int
String title = getStringExtra("title", DEFAULT_TITLE_VALUE);
String artist = getStringExtra("artist", DEFAULT_ARTIST_VALUE);
int year = getIntExtra("year", DEFAULT_YEAR_VALUE);