Intent getSerializableExtra - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Intent getSerializableExtra method.

This code example shows how to use the following methods:getBooleanExtra, getIntExtra, getSerializableExtra, getStringExtra
This code example shows how to use the following methods:getIntExtra, getSerializableExtra, getStringExtra
        super("SaveToDBService"); 
    } 
 
    @Override 
    protected void onHandleIntent(Intent intent) {
        int type = intent.getIntExtra("type", 0);
        String accountId = intent.getStringExtra("accountId");
        switch (type) {
            case TYPE_STATUS:
                AppLogger.e("start db"); 
                MessageListBean value = (MessageListBean) intent.getSerializableExtra("value");
                FriendsTimeLineDBTask.replace(value, accountId);
                AppLogger.e("end db"); 
                break; 
        } 
 
    } 
 
    public static void save(Context context, int type, Serializable value, String accountId) {
        AppLogger.e("start service"); 
8
CodeRank

Related Intent getSerializableExtra Questions & Answers:

Other Intent getSerializableExtra Examples

47:			
48:			// Nearplaces list
49:			nearPlaces = (PlacesList) i.getSerializableExtra("near_places");
50:	
51:			mapView = (MapView) findViewById(R.id.mapView);

Read More

getSerializableExtra Method Overview
Retrieve extended data from the intent.
See Code Examples for other Android Intent Methods: