My replies on Android Beginners simply refuse to go through. oregonduckman: looking at the XML you replied with on Android Beginners, your opening RelativeLayout tag is not closed.
On Jan 19, 3:53 pm, Robert Nekic <[email protected]> wrote: > I've tried to reply to this thread twice today but it refuses to show > up here. Maybe the third time will work: > > I find that, for me, exceptions triggered by setContentView are often > simple oversights in the layout file, such as a missing layout_width > or layout_height on one of my view declarations in the xml. > > On Jan 19, 3:34 pm, schwiz <[email protected]> wrote: > > > > > what else is going on in onCreate? are you hiding the title bar? > > > On Jan 19, 12:12 pm, oregonduckman <[email protected]> wrote: > > > > My code is calling setContentView(R.layout.someLayoutID); from an > > > activities' onCreate method. The activity is launched with the > > > following: > > > Intent myIntent = new Intent(this, > > > myClass.class); > > > try > > > { > > > this.startActivity(myIntent); > > > } > > > catch(ActivityNotFoundException e) > > > { > > > e.toString(); > > > } > > > The activity is declared in the manifest file as > > > <activity android:name=".myClass"></activity> > > > > The call to setContentView results in the following: > > > DalvikVM[localhost:8656] > > > Thread [<3> main] (Suspended (exception RuntimeException)) > > > ActivityThread.performLaunchActivity(ActivityThread > > > $ActivityRecord, > > > Intent) line: 2481 > > > ActivityThread.handleLaunchActivity(ActivityThread > > > $ActivityRecord, > > > Intent) line: 2497 > > > ActivityThread.access$2200(ActivityThread, > > > ActivityThread > > > $ActivityRecord, Intent) line: 119 > > > ActivityThread$H.handleMessage(Message) line: 1848 > > > ActivityThread$H(Handler).dispatchMessage(Message) > > > line: 99 > > > Looper.loop() line: 123 > > > ActivityThread.main(String[]) line: 4338 > > > Method.invokeNative(Object, Object[], Class, Class[], > > > Class, int, > > > boolean) line: not available [native method] [local variables > > > unavailable] > > > Method.invoke(Object, Object...) line: 521 > > > ZygoteInit$MethodAndArgsCaller.run() line: 860 > > > ZygoteInit.main(String[]) line: 618 > > > NativeStart.main(String[]) line: not available [native > > > method] > > > Thread [<13> Binder Thread #2] (Running) > > > Thread [<11> Binder Thread #1] (Running) > > > Thread [<15> Binder Thread #3] (Running)- Hide quoted text - > > > - Show quoted text -
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

