Currently I am working on one android app which takes user's info and let them register for the app.
But I am having problem while connecting my backend with my app.
In order to save the data I use server host which I don't know how to implement for android users.
Help me with this so that I can start building my apps..
If you are sending basic user info, maybe you can publish a rest webservice on the server and consume it from android app. im using retrofit right now to consume rest webservices from android and is very easy to use.
Related
I want to create a rating application in android.
The app will be installed in a mobile device where the user can rate from 0 to 10. Then I want to collect those data to a database and show them in my web application.
I found that I have to create a REST API where the android app will send the data to a web server so I can manipulate them.
How can I send those data from the android app to the webserver?
Which framework should I use to create the REST API? I am between Laravel and Node.js.
Can anyone help me, please?
To achieve this you need to follow some steps.
1. Server-side
Need a database to save the data.
Write an API to connect the database with the mobile application. You can use PHP/JavaScripts to write this REST API.
Write an API to communicate with web application
2. Mobile Application
Create a mobile application
Use Volley/Retrofit to send the data to the database via API (1.2)
1) I have a web application. This web app is for a user to buy a point.
2) I have an android application for parking payment. Payment is based on point that user buy from the admin. Since I made two things which are web app for admin and android app for user, so I will have two database for each one right?
3) So, how can I transfer the point that user buy from the admin to an android application? Is this thing has to do with JSON fetch or pass data?
4) Basically I want the user to get the point from the web application? Your answer will be really helpful to me, thank you :)
The issue is design issue. Your mobile app and the web app don’t have to be two separate.
You can have one application with one database that both web and mobile point to.
If you’re using Android look into ionic framework that can help you code one codebase targeting both web and mobile.
See
https://ionicframework.com
https://scotch.io/tutorials/create-your-first-mobile-app-with-angularjs-and-ionic
You will have to build a single server for both your admin and your app. Both will have a single database that is controlled by your server. Your app will request the same server to redeem points and your admin will request the server to add points. You can use retrofit library in android for making api calls to your server
The web application and the android application must connect to the same database on the server. In the android application, to you get the data via json, you must use asynctask to download the server information or use libraries like Retrofit or volley that facilitate the handling of json.
I'm creating an android app, using Android Studio and at the same time making a web version of the said app using django. Is it better to make a python web app in django with the database and all first. So in the mobile app, i wont need to store data anymore, im just gonna grab the data from the web to show in the mobile app. If so, how do i do getting data from web and show it to android app?
The usual way is to make a web service which returns a json which you can consume on your mobile app and store it if needed offline.
i am new into developing in general, so i am made a social network web application using ruby on rails but only in a localhost , and i made sign-up/sign-in form in an android app.
what i want is basically to have an online server that will have my website code and database and domain , and how to send the user data when signing up/in in the android app and sent some back too
Obviously, I am not looking for a code or a simple answer, i just want links or any useful resources to start with.
thanks in advance.
i'm not a RoR people, but if you want to communicate android to web, you need create a web api on RoR which handle signup, signin event and return json format. Then in your android app, you can use HTTP REQUEST to get or post data
http://www.androidhive.info/2011/10/android-making-http-requests/
Hi guys so I am new to android development or any mobile device development.
So I am working on a project that consists of two application.
One with ASP.NET MVC4, one with Android.
what it is doing right now, Android device is accessing database server of ASP.Net application and saves data. This is able because currently, android app has database access information in the codes(db login info).
Since method above is extremely stupid I need help.
So what I am looking into is to use JSON(if possible). ASP.NET MVC4 application is already JSON ready, and i've made sandbox application that brings information from web app to android app. BUT my question here is is it possible to do same thing the other way around. Is it possible to make android application to make JSON and web application to access that application? I dont think this is possible.
So how do other REAL mobile applications save users data on their database server without including db access information within the code?
This is usually done through web api - have a look at twitters api as an example https://dev.twitter.com/docs/api/1.1
You would have to pass data to the server using the api, just as you would use an api to get data from the server.