2010/9/7 Gabriel Simões <[email protected]>:
> 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...

Either:

-- Use AlertDialog.Builder and setAdapter(), supplying the listener that way, or

-- Create a dialog-themed ListActivity

-- 
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 [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

Reply via email to