I have a bitmap:
Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.myimage);
I want it so when a user presses on the bmp, I get a trace message (I will add in what I need it to do)
Anyone have any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It may be more appropriate to use an
ImageButtonrather than anImageView. Although, you could implement theonTouchEventand register a touch event listener on the main element that the Bitmap relies in. Or, register anonTouchListenerfor theImageView.