Cannot display SQLite database items in custom ListView?

Ok, can you replace your adapter class's getView() method with mine.

Ok, can you replace your adapter class's getView() method with mine, @Override public View getView(int position, View emailView, ViewGroup parent) { if(emailView == null){ LayoutInflater inflater= (LayoutInflater)getSystemService(Context. LAYOUT_INFLATER_SERVICE); emailView= inflater. Inflate(R.layout.

Email_listview_row, null); } GetEmailFromDatabase o = itemss. Get(position); if(o! =null){ TextView messageNo = (TextView)emailView.

FindViewById(R.id. Item_number); TextView subject= (TextView)emailView. FindViewById(R.id.

Emaillistrow_txt_partofemail); TextView sender= (TextView)emailView. FindViewById(R.id. Emaillistrow_txt_sender); TextView datetime= (TextView)emailView.

FindViewById(R.id. Emaillistrow_txt_datetime); ImageView icon= (ImageView)emailView. FindViewById(R.id.

Emaillistrow_icon_indicator); icon. SetImageResource(R.drawable. Y_icon); if(messageNo!

=null){ messageNo. SetText(Integer. ToString(o.

GetMessage_No())); } if(subject! =null){ subject. SetText(o.getSubject()); } if(sender!

=null){ sender. SetText(o.getFrom()); } if(datetime! =null){ datetime.

SetText(o.getDate()); } } return emailView; } after replacing let me know what happen..

Thanx Bro. The problem is solved – Suru Nov 16 at 11:27 I got the point where I was doing mistake thanx again. – Suru Nov 16 at 11:37 It is in the if condition's clause braces.

– user370305 Nov 16 at 11:40 yes yes, I got that. – Suru Nov 16 at 12:47.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions