So I have a button, when its pressed once it opens the calendar application, however some of my other other devices don't have the calendar I have described in the method so I have created an onLongCLick method, so when a user long clicks the button, they get to choose which app they want to launch. Once they choose the app, its set. So when they click button normally it launches the app they chose. How can I go about achieving this ??
Thanks for your time.
My longclick methodC
// Hold (onlongclick) to initiate choose app to launch
date_launch.setOnLongClickListener(new OnLongClickListener() {
public boolean onLongClick(View arg0) {
// choose app to launch and save it
return true;
}
});