because i get the image in adapter,i added the onclickListener inside the adapter.but i am unable to call the another activity via intent.is there any other way to do this ulf ?
This reasoning is fundamentally flawed. You assume because something you implemented didn't work it was the wrong way to implement it. Pardon me for being frank, but given the history of your Android development efforts as documented by your posts here, your first assumption should be that you made a mistake somewhere.
I need to call another activity when i click on the image.I have posted the my code above.But i am unable to call the activity via intent inside instantiateItem in adapter.Is there anything wrong in my code or any other place to call activity ?
What you posted doesn't even compile. If there are problems -as I've told you many times before, but unfortunately you insist on ignoring it, which is getting
extremely tiresome- you need to tell us what you are doing, what you expected to happen in response, and what is actually happening. Post the values of all involved variables, the stack trace of all exceptions if there are any, etc. etc.