onOptionsItemSelected / invalidate

Put your problem here if it does not fit any of the other categories.

onOptionsItemSelected / invalidate

Postby troarty » Sun May 30, 2010 1:37 pm

Hi,

I have a menu which allows me to change some options for my application using onCreateOptionsMenu and onOptionsItemSelected. upon returning from onOptionsItemSelected i would like to rerun my onDraw override. Can anyone tell me how to do this?

I tried calling invalidate() upon leaving onOPtionsItemSelected, but get an error:
(non-static method invalidate() cannot be referenced from a static context)

Thanks!
troarty
Freshman
Freshman
 
Posts: 8
Joined: Tue Apr 06, 2010 10:26 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 14 guests