External database is not loading on android

Asked

Viewed 275 times

2

I need to make an application Android who accesses a servidor, low files .s3db and query about the downloaded files. I can download normally to data/data/meu-pacote/databases/ and I can also do operations on those files. But there is a problem:

For some reason, I can only do operations in arquivos.s3db when opening the app for the second time. First you need to install, click on download again (this time it does not download because it already has a file of the same name in the folder, but still need to click) then close the application and open again. There yes the button that makes the query works normally ...

I’ve tried to use threads and activitys but it doesn’t work at all ... does anyone have any idea what this might be? I use android studio

  • accompanied the logs by the log cat?

  • 1

    Apparently your application is not knowing how to update the database received from the server. You could show us the part of your code that makes this update?

  • You need to clarify the problem better, you can show your code?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.