Android listview not updating

Put your problem here if it does not fit any of the other categories.

Android listview not updating

Postby ayyanababu » Fri Mar 12, 2010 8:27 am

hi guys i am much pleasure if any one can look around my project and see whatz the problem in my application that was not updating from one activity to another activity

1)adding names in addstock layout and stores it in database
2)In liststock i want to retrive from database and display in a listview
3)for this i had used DbAdapter class so any one can look around my code and help me regarding this.
(63.17 KiB) Downloaded 83 times
Posts: 5
Joined: Mon Jan 25, 2010 11:29 am


Postby vik » Wed Mar 24, 2010 1:51 pm

this is happening because you are just inserting the entries in database and then finishing your that activity ( finish() )

just append this
Intent i = new Intent(AddStock.this,ListStock.class);
before finish() in AddStock activity
rest will be taken care of
User avatar
Senior Developer
Senior Developer
Posts: 141
Joined: Wed Sep 09, 2009 7:32 am


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 7 guests