I have a fragment of a dialog attached to the main operation, and is there a way by which I can launch another action from the dialog using the Click button.
My call with DialogFragment call:
Intent i= new Intent(getActivity(),SecondActivity.class);
startActivity(i);
Registered a second activity in
Manifest.xml
as below
<activity android:name=".SecondActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.Dialog">
<intent-filter>
<action android:name="com.example.testjsoncall.SecondActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
source
share