I have developed an educational android application. I have also developed a web application to insert questions on the web and download in android sqlite database. And also the test result is uploaded to the web. The application is working locally without internet when its database is updated.
My Problem: I want to update my android application's sqlite database from my website using internet and to upload test result after someone completed the test. So, give me information programmatilly as soon as possible to update my android app from my website and to upload test result from android app to my website.
I will be highly thankful!
That is not a good practice to change your local sqlite database from web directly. You need to store your activities status in an external database (probably on your web server) and let your android app talk to your server and ask for update or new results (preferably a JSON response) and let you app update your local database.
If you want to get notified if anything has changed on your server you can use Google Cloud Messaging (GCM) or you can write a SyncAdapter to poll the server periodically to get the latest changes.
But never try to update your local sqlite database from web!
Related
I have an app that runs on SQL database. I'm making a similar website now that is
going to use the same data. I already connected the basics like email and username both from Android app and Web app to server. Im using PDO at the server side. This may be answered many times before but some questions are as old as from 2012.
Android app and web app is going to be dependent on the same data
I want to make sure Im doing everything right from the start.
What ways are there to connect from Android to server read/write data (Now Im only using HttpURLConnection to write data)?
Could I bulk the data and send it for example one time after session ended or should I update the database after every transaction from Android side?
1) Yes HttpURLConnection will the best way to connect server.
2) You have to update database in every android transaction so when ever you will refresh your web page, it will show you latest data in both side(Android app & web).
I made an android application which is collecting data from a wearable device and storing it into a local sqlite database.
Now I want to sync the data of all android devices local sqlite databases to cloud and visualize the data and perform data analytics related operations on it.
Can anyone suggest me what to do?
I have looked around multiple clouds like AWS, GAE, AZURE, HEROKU, GoDadddy shared cloud etc for storing my data in a central database.
My question is that should I directly store data from android into mysql or some other database using jdbc or odbc driver or write a webservice or api for storing data in cloud?
I want to sync data after some time interval i.e. a day or so, between local android device and cloud.
According to your description, based on my understanding, you want to sync up the data from wearable device between all android devices and cloud.
Per my experience, the way to directly store data from android into database is not a good choice. The normal way is creating a web service or rest apis to communicate with mobile device for data synchronizing to cloud.
On Azure, the best practice for your needs is that creating an Azure Mobile App instance and enable the Offline Data Sync feature in Azure Mobile Apps to implement this. You can refer to the Azure offical document Offline Data Sync in Azure Mobile Apps to know the related concept.
You can get start with the tutorial for Android within Azure Mobile Apps, and then continous to the next tutorial to implement the feature of offline sync up data automatically.
As reference, the tutorial How to use the Android client library for Mobile Apps will shows you how to use the Android client SDK for Mobile Apps to access the data from SQL Azure table online.
Meanwhile, to visualize the data and perform data analytics related operations on the cloud data, Azure support more Intelligence + Analysis services which could be used for your future plan.
I want to make an android application.i.e.It's a quiz application.
Like after publishing my app I added some new question.
I want when user get connected to internet application should be updated.
So how can I update application from internet?
Do you have the data held in sqlite within the app? If so, you could look for updates to data on the internet (presumably on a website you already host) everytime the app starts. Do this in an async task so that it doesn't affect the user experience.
If newer data is found, you could fetch it and update the sqlite tables in the background.
Data bundled with app : If you compile and upload a new apk file to play store, update will show in users play store. This is good for occasional updates, like a new version of app or so.
Data not bundled with app : you can make your app fetch its question data from a remote server. This is easier for very frequent updates, like you add questions daily on a web site. But you will need a server.
I'm doing jquery mobile application for android with html5. We use websql for the local data storage. Is it possible to run a service in background which can access this db and upload some data from local DB to the server SQL DB? I really don't have any idea about it. Please suggest.
Heard that in browser we can't do such background services. If I move my data from websql to android supported SQLite, is it possible to run a service to upload this data?
I wants to have,
Run the service & upload data even if the application is closed.
Send & complete request if I redirect through my application pages
so I am writing an android app that will be used at a point of sale in some shops for survey questions. I have a java jsf web app using jpa with a mysql database that I want to sync with, preferably both ways but only a couple of tables. The android app will have only a few tables and will not replicate my server database completely. Unfortunately the android apps will in some places have only intermittent internet access that will drop in and out. I am currently looking at different options to use to store my data on android. I have looked at:
writing my own sync between the database on my server and SQLite on android but there has to be an easier option
storing my data on app engine and syncing with app engine as per the example in the android developers guide however I am not sure how my limited internet connectivity will work
using couchdb but I dont really want to go down this route as I already have the server side set up
does anyone have any ideas?
can I store data locally using android then sync with app engine when I have a connection?
Thanks