Using parse database for both Android and Web - android

Hey guys I am new to android development I just created an app for android using back4app parse database where data stored in classes hope you are familiar with that and now I want to use the same data for my website using the same parse database please help me and suggest me something good to do this

parse-server store your data in a MongoDB database means that after the data is being stored you can access it from any device at any location. In your case you can start with a Web app, read, create, update and delete data and then you can just create an android app and use the same API's there and you will see exactly the same data that you see in your web app (if the logic is the same of course).
The best way to get started is with parse Javascript SDK for your web app and parse android SDK for your android app.
Later, you can create it for iOS or any other platform that you like. If for some reason you don't have the relevant SDK for your technology you can always use parse-server REST api's
If you need more info or have specific issue please let me know.

Related

Create SDK/API using Parse.Com

I got an assignment to write a SDK/API for a mobile app, which will be developed in all 3 platforms(Android/Windows/iOS) by different persons. Since those mobile app developers are outside companies, my company doesn't want to expose any Data Base structure related information to them.
So they wanted me to use Parse.com as back-end. I was playing with Parse.Com last whole week. But following things are still unclear to me. Hope there could be someone who could help
Once I go to create an app on Parse.Com it binds me to a specific
platform so is there a way I could refer data (classes) on one app to
the other ?
Is there any way I could expose only few functions out side (like
GetProductList(), GetOrders()... ) world irrespective of target OS ?
Making an app on Parse.com won't bind you to a specific platform. While in the Parse dashboard, go to settings -> keys to find the keys you need to access your Parse server for whatever platform you are coding. Parse objects are JSON encoded.
You can add javascript functions to your server via Parse's Cloud Code. These functions can be called via multiple languages. Check out the following links to add javascript functions to your server:
https://parse.com/docs/cloud_code_guide
https://parse.com/docs/js_guide

Corona; How do I create a database so that users can access it online using their android phones?

I am trying to make an game using corona sdk where a user can see what items he has and how much he has left. Its abit like a inventory management app. How do i go about doing this? I have no idea what to do and where to start. Currently what I found online is this:
-- open "data.db". If the file doesn't exist, it will be created
local path = system.pathForFile( "data.db", system.DocumentsDirectory )
local db = sqlite3.open( path )
This actually creates a local database which I don't want. I'm guessing instead of "system.DocumentsDirectory" I should put in something else? I referred online at corona labs (http://coronalabs.com/blog/2012/04/03/tutorial-database-access-in-corona/) but nothing really gave me what I needed.
Any help on this is welcomed. Thanks.
EDIT: I'm using SQLite if that's important. Also if anyone is not sure what I'm trying to ask, basically I'm trying to have a database stored online so that i can access it using my android device. How do i do that and what tools do I need?
You would have to make a REST API to manage online database and then use the HTTP requests to create, remove, update or delete records.
I would suggest to work on HTTP server which would provide you endpoints to interact with your database records then use Corona's network requests to communicate with the server. You can use the JSON format to easily exchange data over HTTP.
You can read more about network requests here.
If you want to know about REST APIs or database endpoints you can start reading about it here.
You can read about using JSON in Corona SDK here.

How to connect android to python web services and MySQL database

I'm new to Android and to web services in general.
This is what i gotta do: My company has a back end website(for the client to monitor the sales) that's used to manage/monitor sales on some stores and it connects to a MySQL db to store data about sales and users(usernames and passwords).
What I want to do is to get data from that database and to add (sync operations) new rows, all of this from my android app.
I googled this many times and it came up with some similar projects but using another languages.
I would like to see some code samples if possible and some how-to theory, what theory should I follow when developing this, how and what ways of communicating between android and python web services and from the web services to the MySQL database.
Thank you in advance.
You will need a working API, that allows you to communicate to the web service from the android application. I would read into how to write an API and how to build a RESTful service using JSON as a way of communicating between server and android app. There are alternatives to JSON, but JSON is better suited for Android than perhaps AJAX and soap is being used less and less. (Can ajax call be done in Android? It can but has limitations)
(I could only post two full hyper links as i don't have enough reputation yet to do so, you may have to remove the spaces)
API:
http://sharismlab.com/blog/2012/07/21/how-to-write-an-api-for-your-web-app/
REST:
www .restapitutorial. com/lessons/whatisrest.html/
JSON:
htt p:// www.r evillweb.co m/article s/why-use-j son/
You may want to check out restjee. It allows you to define and implement RESTful data access APIs without having to write any server side code. Works with just about any database.

android application with server as j2ee

I am new to android, and i m working on an app dat needs some server side code.For that i m thinking to use J2ee, now tell me(the concept n requirement only) so that i can send the data like log in form details to server from sqlite of android, and after some processing i want to send notifications to client devices.( i know for that i have to use google C2Dm).
But the actual problem is how do i test these things on my pc,before publishing the app.
also tell me the tools dat i need to install beside android sdk , and the language that i need to learn that can synchronize or simply send android data to server.
I have seen that when we register in websites they send us message for conformation. which technology is used here.
and last after my app is ready how to publish it, the whole process(including where i will be putting my server database and server code).
Hi I would like to suggest you to implementing a REST based web service in Java EE server. You can use JSONObject to consume this restful service.
An example for using the JSONObject with REST is given in the link:
https://blogs.oracle.com/enterprisetechtips/entry/implementing_restful_web_services_in
http://javapostsforlearning.blogspot.in/2013/04/restful-web-service-tutorial.html
and to call Web Services from Android
http://java.dzone.com/articles/invoke-webservices-android
http://www.codeproject.com/Articles/112381/Step-by-Step-Method-to-Access-Webservice-from-Andr
beside this lot of stuff you can find out through google!!
for needed tools visit
http://developer.android.com/tools/index.html
http://developer.android.com/tools/help/index.html

Which database type is applicable to Android application for contents available in server?

I am trying to develop a real-time Android application where all contents are stored in server. So, they are available whenever a connection to Internet is available. Also, the application provides communication between users and conversations are stored in the server as well. Nothing is locally stored.
However, I am still cannot decide which database type I can use. I intended to use SQLite but I am not sure if I can really use it or not.
Could you please guide me to the proper database type to my application.
Appreciate your time and efforts.
As its upto you which database you use.
you may Install Lamp (For Linux) or WAMP(for window) . This is a nice database tool and very easy to handle and easy linked with PHP for various database function
I recently developed something similar to what you are talking about and here is what I would suggest you to go for.
Use SQL server to manage the data on your desktop and create a web-service in .Net on Visual Studio.
(Note that as others have already mentioned, it really does not matter what is the database you are using in your server end, because eventually the data is going to come to the Android application from the server in form of either xml or json in the web-service., regardless of what database you are using. So it is totally your wish which database you want to use.)
Then connect to the web-service in your application and set/get data from the remote Database, using SOAP.
Link on how to make a web-service in .NET (does not include the implementation in Android).
Links on how to connect your service with Android : this, this and this.

Categories

Resources