Android and website synchronization - android

I have an issue. We have a website, where person can login and make its own lists of news. Now we trying to develop an Android application, where person could login and do the same in phone. I cannot understand best preactises of implementing such things. It have to be same accounts, with same preserved data as stored online on website.
Could anyone tell me how to synchronize web and android?

You can use backend scripts to get the same data from database of website in android. You need to call a script(in any language like php) to get the data from database. and show this in listview in android or compare it with the user id password entered.

Related

User Sign up and retrieval of all user data app in android with SQLite

I am a newbie in Android Development, I want to build an app where user from anywhere can register (Userdata should be save in sqlite db) and after registration n login process user can see all the other user list who are register.
Is this possible using android and sqlite db. I search many times on google but all i found tutorial for sqlite. I started to follow the tutorial but i am confuse as it is stated that Sqlite can only save APP data and private data of user. How could i make app for register user from anywhere. Suggestion and links for another method to do that is also helpful, Please Help
Thanks in Advance
SQLite can save only data for specific user in the specific device of the user. No one can access SQLite database which is stored in my device from any other device. Such scenario can be implemented by centralized system where all the details are stored in Mysql, mongo DB or similar. These databases are stored in centralized system so that it can be accessed from anywhere by anyone as per authorization settings. It is accessed by the internet.
So as per your requirement go for centralized system where database can be used by using web services. Web services can interact with server in which database is stored and can give you desired output in form of JSON or XML.

SQLite or Parse for android app?

I am an amateur app developer. I have developed many android apps but for offline use only. Now I'd like to make an online app. The users should login with Facebook account and I handled that. The problem is that I want to save some data like the user Facebook friend-list and some other stuff. I knew that there are 2 ways to solve such problem the first one is using Parse and the second one is using the SQL-lite so which of them should I use?
I think that the Parse database is more suitable in this case, because you will be able to sync the data automatically, when you store it in the cloud

How to sync android database with web database?

Hi I want to sync android database with web database, my scenario is:
I want to make an android app dictionary. The dictionary words are added by web forms and the user android consume those words. In the Android application I have the historical of words that the user displayed and data of their studies, that should be synchronized online in case of change user phone or him have multiple devices.
My question is how to do that:
I need authentication or can get the User's google account to identify him?
How should I synchronize these two databases?
If I use Backup API i can get the same data in diferents devices?
I need authentication or can get the User's google account to identify him? That's your decision. You could even provide both methods. Some people don't want to share everything with Google, others don't care. If you want to create your own authenticator read the Udinic blog post about it.
How should I synchronize these two databases? You need a sync adapter in Android and a receiving service in your web application. In the Udinic blog there is also a tutorial about sync adapters. On server side you could create a REST service for example.
If I use Backup API i can get the same data in differents devices? The Backup API doesn't seem to be the right choice as it only restores data during the initial setup and I assume you want to synchronize the data all the time.

is there a way to use existing websites as an Android app?

I need your expertise to understand how an Android App can communicate with an existing website.
Using the same web interface but should be displayed as an Android app
Using the same database, when we try searching, and the result should be displayed with in the app
Using the same authentication, so if we accept username/password on our Android app, it should use an existing website script which can authenticate and whatever is returned should be displayed in the app.
Thanks
Well you can use webview for display of pages that should be optimized for best user experience on phone, you can query the database and show response on android - for that you need to build parser on webpage that can accept some sort of query and return response in for example json or xml format. The same goes for authentication, it is very simple actually
As per my knowledge, you need to access Web Services of Website to take the data back from the Website to the App.

Is there any other suitable database that can be accessed by both android phone and web portal?

I am new in android development. Currently, I facing problem to choose a proper database software that can keep the information of a user registration details for a taxi service mobile apps.
This app require user to login and the details for both the driver and passenger will be kept in the same database. There will be a admin control the system via the web portal for this app. I am not sure whether SQLite will be the suitable database or is there any other suitable database for my project where the database can be accessed by both android phone and the web portal?
Thank you in advance.
IMO you're looking at this the wrong way.
If everything is going to be stored on a server then access data from the phone via a service.
You can keep device-local data using the normal SQLite DB. On the server side I'd probably use something else, like MySql, Postgresql, etc.

Categories

Resources