Sunday, December 26, 2010

[android-developers] Getting the Android Java source?

Is it possible to get just the source for the Android .jar files?
I don't want the whole bleeding OS, just the source that will help me figure out what's going wrong in my code when I get weird exceptions.

Like, right now, this line of code:

Button btn = new Button( context);

is throwing:

[2010-12-26 19:50:35 - main.xml] Parser is not a BridgeXmlBlockParser!
java.lang.NullPointerException
    at android.view.View.<init>(View.java:1845)
    at android.widget.TextView.<init>(TextView.java:326)
    at android.widget.Button.<init>(Button.java:69)
    at android.widget.Button.<init>(Button.java:65)
    at android.widget.Button.<init>(Button.java:61)

I don't have the faintest idea WHY this exception is happening in Eclipse (not in the Emulator, but in the Eclipse Console window.)

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment