throws "Received authentication challenge is null"

by Mark Murphy » Mon, 31 Aug 2009 21:34:40 GMT

Sponsored Links
 > I am using HttpURLConnection to send a GET request to a server. Upon

Off the cuff, it would seem as though you're getting a 401 Unauthorized
error, due to a malformed Authorization header.

That's a distinct possibility.

Mark Murphy (a Commons Guy) 
Android App Developer Books: 


Other Threads

1. xml view defination to take event handler class name

In the meantime, you could easily automate this behavior on your side:

- one method is to add custom tags to your layout XML. Use an
XmlPullParser to parse the XML and when you find an element with an
android:id and your tag, use reflection to associate a listener to it.

- another method would be to use special id names, for example
"__name". Inflate your view content, visit the view hierarchy and for
each view id that matches the name you can automatically attach a
listener found via reflection.

In both cases you can just make an utility method that does this and
use it everywhere.
The "visit xml/hierarchy" and "reflection" keywords should tell you
it's going to be expensive.



2. Using AbsolluteLayout even though it is deprecated

Hi Guys,

Ihave used absolute layout in the application that I had earlier
developed and since it has been deprecated now it has been quite
difficult in changing the layout params, can I go forward and publish
the application without removing the absolute layout? what will be the
problems because of this? will this layout become obsolute in the


3. Android Menu

4. distributing an app packaged with just emulator

5. Problem running emulator on SDK 1.5

6. Downloading Android

7. Could not find AVD file