android - Start Activity Using Custom Action -
i looking start activity in app using custom action. have found few answers try throws java.lang.runtimeexception
saying no activity found handle intent { act=com.example.foo.bar.your_action }.
this activity in manifest file:
<activity android:name=".feedbackactivity" > <intent-filter> <action android:name="com.example.foo.bar.your_action" /> </intent-filter> </activity>
and how i'm starting activity:
intent intent = new intent("com.example.foo.bar.your_action"); startactivity(intent);
any appreciated.
i think creating intent wrong. try this:
string custom_action = "com.example.foo.bar.your_action"; //intent = new intent(this, feedbackactivity.class); // <--- might need way. intent = new intent(); i.setaction(custom_action); startactivity(i);
Comments
Post a Comment