Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intent with custom action

Tags:

android

Is there a way to construct an intent with custom action? I mean like ACTION_CUSTOM.

bundle_details.putString("query_details", searchIntent.getStringExtra(SearchManager.QUERY));
bundle_details.putString("type", SS);
listIntent.putExtras(bundle_details);
startActivity(listIntent);
like image 631
Binoy Babu Avatar asked Aug 11 '26 16:08

Binoy Babu


1 Answers

It can be done with:

public static final String CUSTOM_INTENT = "ACTION_SEARCH_CUSTOM";

Intent listIntent = new Intent(TestDetails.this, SimpleSearch.class);
listIntent.setAction(CUSTOM_INTENT);
like image 65
Binoy Babu Avatar answered Aug 13 '26 07:08

Binoy Babu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!