2011-11-30 8 views
3

Existe-t-il un moyen de construire une intention avec une action personnalisée? Je veux dire comme ACTION_CUSTOM.Intention avec action personnalisée

bundle_details.putString("query_details", searchIntent.getStringExtra(SearchManager.QUERY)); 
bundle_details.putString("type", SS); 
listIntent.putExtras(bundle_details); 
startActivity(listIntent); 

Répondre

5

Il peut être fait avec:

public static final String CUSTOM_INTENT = "ACTION_SEARCH_CUSTOM"; 

Intent listIntent = new Intent(TestDetails.this, SimpleSearch.class); 
listIntent.setAction(CUSTOM_INTENT); 
Questions connexes