[android-developers] Re: HTTP GET and ProgressDialog

2009-10-12 Thread Lee Jarvis
Ok so I kind of implemented this, but it forces close when I click the button.. What am I doing wrong? package net.gullycorp.example.webtest; import java.io.IOException; import org.apache.http.client.ClientProtocolException; import android.app.Activity; import

[android-developers] Re: HTTP GET and ProgressDialog

2009-10-12 Thread Lee Jarvis
Sorry, I realized in that above example I passed to arguments to execute(), not that it makes any difference to my issue. On Oct 12, 11:58 pm, Lee Jarvis ljjar...@googlemail.com wrote: Ok so I kind of implemented this, but it forces close when I click the button.. What am I doing wrong?

[android-developers] Re: HTTP GET and ProgressDialog

2009-10-12 Thread Lee Jarvis
Ok so I updated the code again, and I guess it pretty much works. Would any of this be discouraged? Or would there be a better way of doing this? http://pastie.org/652258 Regards, Lee --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: HTTP GET and ProgressDialog

2009-10-11 Thread Mark Murphy
Lee Jarvis wrote: Hi guys, I have a small test application that simply grabs a URL from an EditText box, before downloading the page source for the URL, prompting the user to ask if it should display the contents, then doing so, or returning state. I would like to incorporate a

[android-developers] Re: HTTP GET and ProgressDialog

2009-10-11 Thread Lee Jarvis
Thanks, I'll give it a go. What's with the (ick)? AlertDialog? On 11 Oct, 22:08, Mark Murphy mmur...@commonsware.com wrote: Lee Jarvis wrote: Hi guys, I have a small test application that simply grabs a URL from an EditText box, before downloading the page source for the URL, prompting

[android-developers] Re: HTTP GET and ProgressDialog

2009-10-11 Thread Mark Murphy
Lee Jarvis wrote: What's with the (ick)? AlertDialog? Well, in your test app, it's probably fine. I worry about people overusing modal dialogs, doing things in a dialog that ought to be in an activity. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy

[android-developers] Re: HTTP GET and ProgressDialog

2009-10-11 Thread Lee Jarvis
Oh, I don't plan on using half of the dialogs and such I'm using in that test application. I too prefer to write things in an activity over a dialog. I just want to get this to work. Unfortunately I'm getting confused as hell. I can see how this should be implemented, but I can't get it to do

[android-developers] Re: HTTP GET and ProgressDialog

2009-10-11 Thread konic
Lee Jarvis, one more thing. You should implement Cancel stuff. It's either Cancel button on that progress dialog or back key listener. Otherwise you may just stack. On Oct 11, 6:01 pm, Lee Jarvis ljjar...@googlemail.com wrote: Oh, I don't plan on using half of the dialogs and such I'm using in

[android-developers] Re: HTTP GET and ProgressDialog

2009-10-11 Thread Mark Murphy
Lee Jarvis wrote: Oh, I don't plan on using half of the dialogs and such I'm using in that test application. I too prefer to write things in an activity over a dialog. I just want to get this to work. Unfortunately I'm getting confused as hell. I can see how this should be implemented, but