I want to develop an application that will need its data to be updated regularly, to do that I will add an administrator. I was thinking to make a website for the admin only who will go and update the data over there and then a notification will be sent from the server to the android application using GCM when there is an update, the app will sync and the data will be updated.
Now since I will need to use a server that means my database will be MySQL right?
Or is there another way to do the same thing but without having a headache of using MySQL and json?
I don't have a server of my own, I was going to use a local server like xamp or wamp and I am more used to working sqlite, if there is a solution to get around this problem with sqlite it would be a pleasure to know it.
The application you are talking about can be achieved by using JSON. For that you need to make api with the related data.
Related
Currently, I have an App that sends data to web server.
But, if website sends data to the server, my App does not receive any data from the server.
I want to create an app like Evernote where I don't have to refresh the app to receive data from the server.
So when I sends data from mobile, it has to sync with all other devices.
How do I implement it?? Which method is best for android?
Is GCM the only way to do it?
We need more information regarding what you have tried implementing for us to provide a better solution since your issue is about code implementation.
You may check Firebase Realtime Database as this seems perfect for your situation because with Firebase, "data are synced across all clients in realtime, and remains available when your app goes offline". Since you are using Android, you can check this document: Set up Firebase Realtime Database for Android.
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).
Hey guys i have a basic question,
I want to know if i can setup a wamp server on my pc with a database, for that when i update something on the database on my pc, it automatically updates the database on my android app via internet, and if it is possible
im planning to put the app on the googlePlayStore, and i want to know if the users who download the app will be able to update the database of the app also thru my server.
im making an app with a db of contacts, mostly taxi services and i want to be able to update the contacts of the db thru an online server, in wich if i change a contact the user will click on the UPDATE_CONTACTS button, and i want the app to automattically check if the server is online, and if it is, UPDATE the db's on the app.
but i want the server to be on my pc, can i do it thru a Wamp_Server app, or do i need to install Windows_Server?
Thanks in Advance for all Answers!
Regards.
Yes you could use a WAMP server, along with Google Cloud Messaging to accomplish this. Create an account and add the API to your server side logic. Once that is complete, implement GCM in your app.
Check out how to implement a GCM client in Android for information on how to do this.
You'll be able to use push notifications from the cloud to send data (retrieved from your server application) to your app via GCM.
Hope this helps.
I think that there's a better solution:
Create a JSON file;
Store this JSON on the cloud;
Read this JSON every time your app starts.
So, your app's users always will get those contacts up to date, without any efforts.
I am new in android development. I am developing android app for news portal. I want my users to be able to read news even when there is no Internet connection, somehow similar to twitter feed. I need advice about connecting server data from SQLite. I see two options for now: connecting directly to MySQL or generating XML data in server in /rss page and synchronize using scripts. Which one will be better? Or is there any other option?
SQLite is best solution for this problem. We need to put synchronization technique between SQLite and MySQL.
I want to build a website, where the data will be saved in a data base, logical in a sql database. Also, I want to build an android app, which will take the data from the above (sql) data base. How can I achieve it? I mean how can I manage the communication between the website and the android app. In past, I have create website with php and sql and also I have build android apps, but now I want to achieve the communication between them. Can I use parse platform?
FYI, without any server communication you can't use the website database in android application.
If you want to manage the communication between the website and the android app means you need a centralized server which having the data of your web/mobile applications. So, after that by using the web service methods (REST/SOAP) you can achieve the communication between them.
yeah unfortunately chrome won't let webapps use local storage on android. what you can do is create a local server (using org.apache.http package for example), let it run as a background android service, then have the website make requests to that url. Its considered hacky, but it would work. You can post whatever data you wanted the website to know about , and then get it from the website.