I am trying to fetch some data from my website, my website is a hotel booking website where I can book/reserve rooms, then the app will be as a reporting app, all the data that comes from the website will be directly go to the app, all the number of bookings, number of reservations, free rooms, will be directly go to the reporting app
Any tip on how to do it? I am using Android Studio.
if you needed other information just comment and I will answer them at the comment section or update the question, thank you.
There are 2 options, make your site mobile friendly and don't bother creating an app or learn about Webservices, I'd go for a Rest Webservice, create one and, only then, learn how to integrate it with your app.
If you already have a Webservice, I don't know from your question, learning Retrofit or OkHttp is a good starting point.
Related
I developed an Android application for my company to measure the satisfaction of our clients in our stores. I developed the front end with all the screens and the design in Android studio, and I generate the APK for the approval of the directors board. Now I want to develop a dashboard to see results of the application.
Each store has one tablet and the app is already installed. I want to link the answers (Happy - Moderate - Not happy) to a dashboard to show the daily/monthly results.
Honestly I know a little in coding but I'm fast learner if you can show me tutos or books to read quickly .. I heard about something like Back end as service.. is it the right way to begin searching ?
I assume that you want connect your app with the dashboard database. So i am gonna share to you 2 approach.
Approach 1
You can share a database between dashboard and app. If you see the picture you can see that the dashboard presents the data in the screen and the android app Send the anwswer to the database.
Approach 2
If you already has the dashboard with a database, you also can create a table for daily/monthly results and create a service to push the data from the Android app.
For the approach number 1 you can take a look to Firebase Database, and then connect the Dashboard and App to the database.
For the approach number 2 you need to take a look how to create a web service and then update the database with the data received.
I hope it helps you.
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.
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 a fantasy football mobile application on Android. One of the apps activities should be a page that has the most up to date fantasy football relevant news stories or NFL news in general. I've looked into things like RSS Readers but I'm not sure that's what I want. I basically want to display what you would see if you went to Google and typed "Fantasy Football" in the news section of the search. I really am just looking for answers on where to start on how to do something like this?
Well, You can implement it somehow in your app but It's not recommended way. For this, you have to develop an app and a back-end server as well. Your app just calls a web service from the server and shows the data to use and user. Your back-end is responsible for providing the data. Now if you updated the back-end to let's say support more information sources the data in the app is updated automatically without users have to install a new version.
For getting data on the server, You can use public webservices, RSS and also a tool like jsoup to download and parse other people website easily.
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.