Create Server side for mobile app(android) - android

I'm trying to create a new android app from scratch and I'm trying to investigate on how to create a server backside that will support the following: oauth and sql.
I'm just a beginner and I don't familiar with building servers side for mobile app.
Is this the right flow to start building server-side for mobile app?
1) buy/register for some backside storage that will contain my code(EX. godaddy).
2) Install there SQL server and auth server(? - :( )
3) Install VS2010 and connect to the server
4) Start coding in PHP and deploy the code when I'm done.
Thank guys
Edit 1:
What do you say guys about http://www.ibm.com/developerworks/library/l-django/ ?

Take a look at parse.com They make backends for mobile super easy. I use them all the time.

I think you should take a look at this link:
http://android-developers.blogspot.de/2013/06/bootstrap-your-apps-cloud-services-with.html
Google is now offering a whole host of cloud backend stuff pretty much ready to work with mobile devices, and specially extra libraries ready to use on Android.
It's free to begin with and if your app works and start to have a lot traffic, then it starts to have some charges.
Further, it's mostly in Java already, so it's piece of cake for Android developer.

Related

Cross platform application

Me and my friend are going to work on final year project (graduation).
We are going to create an android application as well as web.
Now the problem is that we can not work together. He is far from me but we have to access a single database as android and web will get and post data to same data base.
Is is possible to create a single data base and both of us access that db?
If yes then how???
I am working on android and friend on Web
Thank you in advance
The main idea here is to create a core code, something you can share no matter what sort of application are you building web or mobile, that means you have to start creating an API, preferably using a programming language you handle with some framework for extra help and then setting up a DB engine.
There are plenty of options you could use, eg. db4free.net for MySQL, mlab.com for MongoDB, Amazon aws or even Google Cloud offers free accounts for testing purposes and once you have your DB and API built, you can start creating the client application.

Using MongoDB along with ionic android app

I am building an android app using the ionicjs framework. I have done the basic layout using ionic's creator that gives me the code for it when I export it.
Now, I have to authenticate the login and register information against the details in the database, which is MongoDB. My question is, how do I install MongoDB? Do I install via the command prompt like it says in the Mongodb website or do a npm install in the root folder of my project?
After the installation, how do I go about connecting to the DB and doing the authentication? I think I need to use a REST API for that.
It would be very helpful if someone points me in a direction. I am new to developing apps like this.
Thanks!
MongoDb is a server-side database. So you have to install it on a remote machine, You shouldn't connect database directly with the mobile application which runs on clients hand. It's totally insecure, anyone can reveal your database connection information (password, username) by simply decompiling the app.
So, As you figure out, right way is to create a REST API to retrieve and send data back and forth between the server and the application.
Create a backend services with a server-side technology that your are prefer. It could be PHP,Python,Java or whatever. The client side application should not depend on the server-side technology your are using. Server side technology should completely transparent to the client application. You can attain this by designing good REST API.

How to set up a server for android app?

I am trying to create an android application in which an user will pretty save some data in database-like user data, photos and also be able to retrieve.
But I am clueless how to set up a server, connect to some database etc.
Can somebody help me point to right resources for end-to-end installation of server, database, and its interaction with the android application
Just set up a basic server that works over HTTP, and use HTTP libraries for android to make requests and handle results in the device. There are plenty of technologies with which you could make the server, just google building REST API with PHP/.net/java (whichever language you are comfortable with).
If you are mobile app developer and want to create server-client app then better use any back-end service rather than implementing new by own. Some most advanced and simple to use services are Parse and Firebase , BaasBox also there are many more.
And the plus point is this services free of cost until you have very large users.

How do most android applications retrieve data from a database server?

I am currently working on an application which is a small applications for businesses to list their promotions on my website. I have created this in ASP.NET and I'm using a REST-like interface for my website in the back-end. I'd like to now also introduce an android application. I've noticed there are things like windows azure mobile services out there which let you easily create and integrate data services to mobile applications. My question is should I use the same interface as my website or is there a conversion people use in the commercial space.
Thanks for your help :)
I do not have any experience with windows azure mobile services but I have many experience in writing APIs for different front ends (mobile/win/web/widgets) and never heart about any conventions/conversions in commercial space.
My advice is. If you need to push data to mobile application use some service that can do it or write yours. If you are going to write push notifications service you will need server to run it.
If the application will only pull data from server or push to it than better use same REST-like interface you already have. It can to avoid code duplication and will create some data exchange standard between you front ends and back end.
Hope it will help you.

Mobile Development and Cloud Database, Where Should I Start?

I am an Android Developer and a noob when it comes to web technologies.
I am planning to create an Android app that stores its data to a database.
I do not want to maintain my own server so I guess I would be resorting to Cloud Services.
The thing is I do not know where to start.
What do I need to be able to access and store data to a cloud database from my Android app?
Where can I get a cloud database preferably for free.
Do I need to use web services?
Any help
There are a few things in this that make me ask questions, as opposed to answer them.
Do you mean for your application to be always able to communicate with the database, or will it be more of a backup/sync with a database you have on your handheld.
If you do intended the app to be live all the time, then just write a web app and construct it with small screens in mind. It would be faster and sort of cross platform.
If you intend to have the app just sync with a back-end.. Well then a simple web service should do you for storage. Yep. Rails would be the way to go.
It really depends on your users.. How will they be using the app? Where will they be?
Personally I like the stand alone application that just sync's with the back-end. It is less prone to crashing because I walked into a tunnel. It also lets me control when and where I am when I sync. But it means the data I'm looking at could be out of date. And the data I'm adding isn't right there for others to consume.. they have to wait for me to sync'.
Check out Amazon's AWS and their SDK for Android. Highly recommended.
I assume that you know Java and my solution would be GWT/GAE ,since you asked for web application,GWT https://developers.google.com/web-toolkit/ would be perfect way and also you could use Google AppEngine Store as Cloud service and also you can integrate GWT with Phonegap to run it in Android.

Categories

Resources