Skip to content Skip to sidebar Skip to footer

Views Removed Using Removeview() Are There When I Next Open The Activity (android)

I have a MainPage activity that the user is taken to after logging in. This activity then dynamically draws one button on the screen for each subcategory it finds in my database in

Solution 1:

This was my bad, removeView() was working. The problem instead was with my database handling. Everytime the user logged out I was not wiping the SQLite database on the phone...but every time they logged in I was copying data off the server into the lite databse again.

This meant that when the user logged out and logged back in all the fields in the database had been duplicated so my code was displaying what was in the database as it should.

Post a Comment for "Views Removed Using Removeview() Are There When I Next Open The Activity (android)"