Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hi..i have one problem...i want to do like this..in android.
user enter his determined time..and i want to at that time profile would be changed ..synchronization with avd's time in every two second...and profile changed ..but one problem is there...
for(i=0;i<100;i++)
    {
                       while (System.currentTimeMillis() <   endTime) {
                                   synchronized (this) {
                                   try {
                                                  wait(endTime - System.currentTimeMillis());
                                         } catch (Exception e) {
                                               }
                                   }
                       }
    }

please give right coding..thanks in advance.
Posted
Updated 5-Feb-14 6:17am
v3

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