Coyle L. McGuire wrote:
> Hey,
> I hope someone can help me with this (http://pastebin.com/d6d23efbc)
> http request. I don't get any return or at least the return (result)
> is empty from which follows that the openThemeDialog also returns an
> error.
> 
> I also tried to do the http request in a normal java project and I
> just had to change public String sendHttpRequest to public static
> sendHttpRequest and it worked.
> 
> I'm totaly confused...

I do not recommend using e.printStackTrace(). Use android.util.Log
instead. You should then be able to examine your Java stack traces in
LogCat, via adb logcat, DDMS, or the DDMS perspective in Eclipse. That
will hopefully tell you which exception is causing your null result.

Second, make sure you have the INTERNET permission in your manifest.

Third, you really really really really really should consider moving the
HTTP fetch into a background thread, perhaps via AsyncTask. You do not
want to do things that may take indefinite amounts of time on the main
UI thread, lest your users think your application is not responding, or
Android kills it off because it is not responding.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 1.0 In Print!

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to