... make Android apps understand each other

Available Mashup Intents:


Map Point

top

Intent 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>
<action android:name="com.androidMashup.GEO_POINT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
to generate the Intent:
i = new Intent("com.androidMashup.GEO_POINT");
i.putExtra("longitude", longitude); //longitude as a long
i.putExtra("latitude", latitude); //latitude as a long
to retrieve data from this Intent:
long longitude = getLongExtra("longitude", DEFAULT_LONGITUDE_VALUE);
long latitude = getLongExtra("latitude", DEFAULT_LATITUDE_VALUE);

Map View

top

Intent 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>
<action android:name="com.androidMashup.MAP_VIEW" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
to generate the Intent:
i = new Intent("com.androidMashup.MAP_VIEW");
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
to retrieve data from this Intent:
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

top

Intent 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>
<action android:name="com.androidMashup.CONTACT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
to generate the Intent:
i = new Intent("com.androidMashup.CONTACT");
i.putExtra("firstName", firstName); //firstName as a String
i.putExtra("lastName", lastName); //lastName as a String
i.putExtra("company", company); //company as a String
to retrieve data from this Intent:
String firstName = getStringExtra("firstName", DEFAULT_FIRSTNAME_VALUE);
String lastName = getStringExtra("lastName", DEFAULT_LASTNAME_VALUE);
String company = getStringExtra("company", DEFAULT_COMPANY_VALUE);

Song

top

Intent 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>
<action android:name="com.androidMashup.SONG" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
to generate the Intent:
i = new Intent("com.androidMashup.SONG");
i.putExtra("title", title); //title as a String
i.putExtra("artist", artist); //artist as a String
i.putExtra("year", year); //year as a int
to retrieve data from this Intent:
String title = getStringExtra("title", DEFAULT_TITLE_VALUE);
String artist = getStringExtra("artist", DEFAULT_ARTIST_VALUE);
int year = getIntExtra("year", DEFAULT_YEAR_VALUE);