I have a problem to call a java class from OnItemClickListener widget..
private OnItemClickListener detailClickListener = new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
Intent productDetailsIntent = new Intent(getBaseContext(),MenuRestaurantActivity.class);
startActivity(productDetailsIntent);
}
};
Parameter in currentActivity isn’t send to anotherActivity class..
How to fix it?
thanks for your attention..
Instead of this in your onclick
use this line
In FirstActivity.java file onclick button you should use below code.
In secondActivity.java file oncreate .. use this code.