Intent i=new Intent(getApplicationContext(), FbsampleActivity.class)
In your case, “this” refers to the DialogInterface class. You need the context of your Activity.
0
solved How to call another activity(class) from one activity? [closed]
Intent i=new Intent(getApplicationContext(), FbsampleActivity.class)
In your case, “this” refers to the DialogInterface class. You need the context of your Activity.
0
solved How to call another activity(class) from one activity? [closed]