I have TabHost with custom ListView implemented. My ListView disappears after returning from SMS screen when I try to switch tab (refresh list content).
I have context menu option to send SMS to contact from the list, I start SMS activity there and Im able to return to my app. If I don't type anything in SMS screen, just return immediately everything is fine. List will work. If I type something in SMS and press back key, toast will be displayed: "Your message is saved in Drafts". And now if try to switch tabs, list content disappears. Debugging revealed that list items are present, and that list adapter constructor is called. However, listAdapters GetView function is never called. And list results are not displayed. I found similar problem in this post: http://groups.google.com/group/android-developers/browse_thread/thread/558054e0f04aa206/5b276b89658ffa70?lnk=gst&q=tabhost+listview+bug#5b276b89658ffa70 Im working on sdk 1.5 and device. Here is my list adapter function, pretty standard: public class ResultListAdapter extends ArrayAdapter<ItemDescription> { public ResultListAdapter(Context context, ItemDescription[] objects) { super (context,R.layout.list_item_layout,objects); // being called } @Override public View getView(int position, View convertView, ViewGroup parent) { //not being called LayoutInflater inflater = LayoutInflater.from(getContext ()); View row = inflater.inflate(R.layout.list_item_layout, null); TextView tv = (TextView) row.findViewById(R.id.listText); ItemDescription item = getItem(position); SpannableString ss = getSpannableFromMarkupString (item.getMarkupString()); tv.setText((CharSequence) ss); return row; } } my ListView widget has no special properties, just width and height to fit parent. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

