« first day    last day (20 days later) » 

01:21
@a
@Android_K.Doe
02:00
Yo
Whats up @KelvinJigSawing
yo
Ok so my application apparently whenever launched on the android, when you press the home button after login it will log out
Anyway to make the users stay login for a period of time
or unless they close the app then he have to log in again
02:43
@Android_K.Doe
03:18
fkin brownout haha
Hmmm
I guess you just have to use Sqlite for that then just clear the table on the onDestroy()
thing is I am not allowed to use that. I searched couple of forums was thinking how about sharedpref
Well sharedPref would work too i guess.. Then just update it in onDestroy()
hmm ok will go look it out
So I want have 2 threads running socket I want it to work in this order:

Start thread a -> Make thread b wait -> After button is clicked -> Notify thread b -> Wait for thread b to end -> Make thread b wait again -> Repeat from button clicked
any idea how i can go about it
@Android_K.Doe
03:39
what do you mean?
This is the code so far
make it a function and just call it if necessary
thread.sleep
to stop execution
so something like this

public void run()
{
while(true){
doStuff(); //the code that i want repeatedly called

Thread.sleep(500);
}
}
is that right?
yeah but sleep for about half a second
gonna go lunch. laters
Alrights :)
 
1 hour later…
05:04
you got it?
05:54
yeah :)
thanks alot

« first day    last day (20 days later) »