Reputation: 2821
is it possible to perform two actions on onlongclickListener.. below is sample code
public class traction implements OnLongClickListener {
private Activity activity;
static int i = 0;
public traction(Activity activity) {
this.activity = activity;
}
public void onLongClick(View v) {
Intent i = new Intent(activity, login.class);
activity.startActivity(i);
}
}}
here when i press fst time the activity fires, if i do three long presses another acitivity should fire...Thank you
Upvotes: 0
Views: 623