Ok I'l spend some more time looking into the debugger tonight (yes using Eclipse) The layout is contained in its own xml file labeled owners.xml I tend to seperate each view into separate xml files to keep it easier to manage. here is the other code requested :
/** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.dashboard); //Setting the Font for the My Rides section Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/DS- DIGIB.TTF"); TextView tv = (TextView) findViewById(R.id.myride_miles); tv.setTypeface(tf); Typeface tf2 = Typeface.createFromAsset(getAssets(), "fonts/DS- DIGIB.TTF"); TextView tv2 = (TextView) findViewById(R.id.myride_mileage); tv2.setTypeface(tf2); SharedPreferences prefs = getSharedPreferences("myDataStorage", MODE_PRIVATE); ChangeAccent(prefs.getString("accent", "green")); UpdateMileage(); myRideLV = (ListView)findViewById(R.id.myride_list); myRideLV.setAdapter(new ArrayAdapter<String>(this,R.layout.myride_listview, myRideLV_Array)); final View NavDrawer = (View) findViewById(R.id.navigation); final View HomeScreen = (View) findViewById(R.id.home_screen); final View MyRideScreen = (View) findViewById(R.id.myride_screen); final View OwnerScreen = (View) findViewById(R.id.owners_screen); HomeScreen.setVisibility(View.INVISIBLE); MyRideScreen.setVisibility(View.INVISIBLE); //OwnerScreen.setVisibility(View.INVISIBLE); .... .... .... On Feb 10, 8:41 pm, TreKing <treking...@gmail.com> wrote: > On Thu, Feb 10, 2011 at 7:35 PM, Aaron Buckner <nagm...@gmail.com> wrote: > > Thanks for taking the time to look at this and help me. > > > 1. I'm not sure what you mean/how to "step through the debugger" > > I'm assuming you're using Eclipse. If you don't know what this means, you > really need to spend some time learning this. Google "Eclipse Debugger" and > you should get plenty of information. > > > 2. I figured you meant that my view was not defined > > > 3. Here is the XML layout: > > OK, that's a LinearLayout with the specified ID. Where is *this* layout > contained? Where's the parent? And what does your call to setContentView() > look like? > > --------------------------------------------------------------------------- > ---------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- 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