Couple of things here... 1. You are calling run() on the thread, not the one you have defined in your activity. 2. You don't want to call run() on the thread, you want to call start(). 3. You either need to create a Runnable to post to the thread or you need to extend Thread and insert your own code.
Try this: private void doLogin() { LoginThread ltNew = new LoginThread(); ltNew.start(); } private class LoginThread extends Thread { @Override public void run() { // Your login code here } } That is one option. Give it a try and see if it does what you need it to. Steven Studio LFP http://www.studio-lfp.com On Wednesday, October 26, 2011 11:07:46 AM UTC-5, nk wrote: > > Can someone help me out please ... > > I have tried everything but am unable to run the thread in the code posted > at this question... > > Thanks > > On Mon, Oct 24, 2011 at 1:48 AM, naman <naman...@gmail.com> wrote: > >> Hello all, >> >> I am trying to build an app for android and am having issues with HTTP >> authentication.... I have asked the same question at stackoverflow but >> unfortunately have not recieved any responses to it... >> >> The question is here stackoverflow ques<http://stackoverflow.com/q/7860268> >> . >> >> Can someone help me with this regard... Please note that I have checked >> the basic errors that could be there by setting the permissions in the >> manifest file etc but I have observed that neither the thread nor the code >> for sending the data runs. >> >> Thanks >> -- >> Naman >> > > > > -- > Naman > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en