Search in sources :

Example 1 with Place

use of com.androidquery.simplefeed.data.Place in project simplefacebook by androidquery.

the class PostActivity method handleCheckin.

private void handleCheckin(Intent data) {
    Location loc = (Location) data.getParcelableExtra("location");
    Place place = (Place) data.getSerializableExtra("place");
    AQUtility.debug(loc, item);
    if (loc != null && place != null) {
        clear();
        this.location = loc;
        this.place = place;
        attachPlace(place);
        refreshButtons();
    }
}
Also used : Place(com.androidquery.simplefeed.data.Place) Location(android.location.Location)

Example 2 with Place

use of com.androidquery.simplefeed.data.Place in project simplefacebook by androidquery.

the class PlaceActivity method itemClicked.

public void itemClicked(AdapterView<?> parent, View v, int pos, long id) {
    if (loc == null)
        return;
    Place place = places.getItem(pos);
    if (place == null)
        return;
    //ajaxCheckin(item.getId(), "Hello", loc);
    Intent data = new Intent();
    data.putExtra("location", loc);
    data.putExtra("place", place);
    AQUtility.debug("finish", loc + ":" + place);
    setResult(RESULT_OK, data);
    finish();
}
Also used : Intent(android.content.Intent) Place(com.androidquery.simplefeed.data.Place)

Aggregations

Place (com.androidquery.simplefeed.data.Place)2 Intent (android.content.Intent)1 Location (android.location.Location)1