I understand that there are many threads about these cases, but when I try to follow them.. it crashes.
public class BuddyPage extends ListActivity{ setContentView(r.layout.xview); setlistadapter(new buddyadapter(this)); } public class BuddyAdapter extends BaseAdapter { private LayoutInflater mInflater; public BuddyAdapter(Context context) { mInflater = (LayoutInflater)context.getSystemService (Context.LAYOUT_INFLATER_SERVICE); } public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = mInflater.inflate(R.layout.buddyitem, parent,false); } It crashes soon after the getView(..) inflate. Regards, Stephen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---