Skip to content Skip to sidebar Skip to footer

Android Error In Passing Id Of Selected Item In Listview Using Contextmenu

I have a listview and long pressing will show contextmenu update, delete and send prescrip. Now when i click update it will go to the EditPatientActivity. Populate all data from My

Solution 1:

From your comments line 105 is imgUpdate.setOnClickListener(new View.OnClickListener() { indicating imgUpdate is null.

So Change this

imgUpdate = (ImageView) findViewById(R.id.imgReg);

to

imgUpdate = (ImageView) findViewById(R.id.imgUpdate);

coz you have

<ImageView
        android:id="@+id/imgUpdate"  // idis imgUpdate 

Post a Comment for "Android Error In Passing Id Of Selected Item In Listview Using Contextmenu"