I was wondering how can you link the fields of a website with an app. Like I have a college attendance website where we all check our attendance and then a student made an app on android where we login by entering the student id and password. So how was the person able to send info from the app to the website and get the information?? Thanks in advance! The website is www.websismit.Manipal.edu.
See you there are some ways as follows:-
you can make an android app having single activity with webview and
open your site inside the webview. you can also use html 5 and jquery mobile for that.
you can make an native application and using web-services you can
get/set the parameter result.
In thin client mobile applications, we generally deal with lot of data exchange between server and mobile app. Mobile app is nothing but a client. So in order to get/post data from server you have to write APIs.
Now writing restful API is your choice you can use any on the available language.
I believe your website is up already so just search and you can easily get ways to expose RESTful APIs.
There are different ways to identify client request, for that you should use Access Token to identify the clientID/UserID or whatever id you are maintaining.
For consuming API from android, you can refer to this tutorial.
Related
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.
Say I have a rails webapp and I want to make a mobile app version of it; how would I get information from the webapp active record database and implement it in the Android app? And how would I post information to the web server so that I be added to the database.
Let me know if I am not clear enough.
Thank you.
I am sure there are different ways to do it but it is common for mobile apps to consume apis through json.
I'm using an Android device to display an ASP.NET MVC web application and I was wondering if it's possible to send account information to the android device?
My main goal is to use the users account log-in details to set up a specific save path on the android. If I was able to send the users log-in username to the android device this would be possible.
I'm posting one of the links which deals with this topic extensively (a well written article) http://www.codeproject.com/Articles/304302/Calling-Asp-Net-Webservice-ASMX-From-an-Android-Ap. [NOTE: This solution utilizes the KSOAP library jar for android platform. ]
Basically you would want to have one of the web service methods return the logged-in user, this method can be invoked by Android's native java class.
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.
I have been asked to write a mobile android app to interface with a website. When pulling content from the site, I don't think scraping the site would be very efficient. I would like to interface with the database. Think of the scenario as facebook mobile app interfacing with the facebook databases that fuel facebook.com (so there's a mobile app, a web app, and a database in this equation). Would I just create a db account for the mobile app and then every phone using that app would use the same database account (This sounds like a terrible idea imo)? The user will be asked to authenticate in the app before they can start getting information from the it.
In general you don't want to be accessing the database directly via the phone (if that is even possible). The more standard way with mobile clients is to build a set of RESTful APIs that you can invoke via normal HTTP GETs and POSTs. These will present the data in a more lightweight (JSON, XML) way to the app, so that the "decoding" effort is reduced. Authentication is done via standard HTTP AUTH. That's the short version.