2010/9/7 Gabriel Simões <gsim...@gmail.com>: > Here is my code: > > Dialog dialog = new Dialog(this); > dialog.setContentView(R.layout.save); > dialog.setTitle("Program Saving Center"); > final ListView lvList = (ListView) > dialog.findViewById(R.id.lvList); > > lvList.setOnItemClickListener(new OnItemClickListener(){ > �...@override > public void onItemClick(AdapterView<?> arg0, View > arg1, int arg2, > long arg3){ > removeDialog(DIALOG_SAVE_ID); > } > }); > > lvList.setAdapter(new DBAdapter(this.getApplicationContext())); > > I´m stuck on this...
Also, delete every occurrence of getApplicationContext() from your code. Never use it. Whatever object you are calling getApplicationContext() on *is* a Context. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://skillsmatter.com/go/os-mobile-server -- 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