Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, I want to create an application like lock pattern app in android. But i dont know which api or library can use for this. I'm searching this for a while but i couldn't find useful resource. Please help
Posted

1 solution

If you're looking for the Java equivalent of this C# construct:
lock (sync_root) {
    multi_threaded_accessed_int_field++;
}
you can simply do this in Java:
synchronized (sync_root) {
    multi_threaded_accessed_int_field++;
}
/ravi
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900