Acquiring Lock for an Drawable resource

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Acquiring Lock for an Drawable resource

Postby Tikloo » Mon Mar 10, 2008 9:41 am

Hi Plusminus,

Thank you so much for your code samples.

I am 70% done . I need to know how I can acquire a Lock or set a Lock for a drawable resource?Do help me the code. If possible try to post a full example.

I move an image from left to right. when I press the center button of the emulator, the image shld stop.When this is done, there should be some points getting displayed on the center of the screen and again on some keypress the image should retrace from left to right. I have done this with threads and the image is shared. I want to provide a lock for this resource to stop if for few seconds.

Hope I am clear with the problem statement.

Thanx in advance.
Tikloo
Freshman
Freshman
 
Posts: 5
Joined: Wed Feb 27, 2008 4:36 am

Top

Postby plusminus » Mon Mar 10, 2008 9:27 pm

Hello Tikloo,

I'm not sure what you mean with "lock" ?
You are talking of a Mutex-Lock ?

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby Tikloo » Tue Mar 11, 2008 12:26 am

yes.I mean the same.
Tikloo
Freshman
Freshman
 
Posts: 5
Joined: Wed Feb 27, 2008 4:36 am

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests