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.
Related
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.
I own a news site and wanted to make an app for it without having to write two different posts on both platforms, i wanted to be able to write on wordpress and having send it to a server then i will be able to retrieve it and update my app, could someone please help?
It's required from me to make an android app that must
1\Displays the cheapest prizes for some goods eg car by parsing them from some commercial web sites ascending .
2\Alerts users with the updates in those web sites
I saw some android apps doing like this tasks (they enable users to be the first to know by sending them push notifications of breaking news events and so on)
for example Pulse app.
How they do this ? that is my problem
Perhaps you will advice me using rss feed but not all web sites have rss feed
for just an example this website
please can anyone help
If it were me, I'd probably use python's BeautifulSoup to scour the websites for the data you need, and then I'd store that on my webserver in some easily Java-digestible form like JSON. (BeautifulSoup is a quite powerful screen scraper and there are a lot of examples on web as to how to use it.) Auto update it every 24 hours, or more frequently, depending on your requirements. Your Android app can then regularly query this data, and then generate the required notifications, etc. Alternatively, you can use the Android compatible library here that's supposedly similar to BeautifulSoup.
There are various websites (say LinkedIn) which have a corresponding mobile app.My question is - "How they feed data to their mobile apps?". Obviously they are not doing HTML scraping of their webpages, otherwise it would be really inefficient.
I am asking this because I have a website, and I am also going to develop an android app for that.So, do I have to design my website (like database) in a specific way to support mobile apps. (I mean, what are the preconditions do I take care of , while designing my website, in relation to the mobile apps)
What you need is a web service. It sounds little complicated but actually its not! in normal websites when you visit a website you get HTML data. but in web service when you request for a data you get the data in xml or json. Then on client side you parse this data and show it as you like.
The most used method for sending data between web services and clients is called RESTful web service and it usually uses json. So after a request you get a .json file. I highly recommend you to use RESTful web service especially since you are a beginner.
As i said RESTful web services are famous so most frameworks support that! So if you are creating you website with this frameworks you don't have to code anything! they build the web service for you. If not there are plenty of code for any given language.
Another thing is since xml (and json) file are platform independent you only need one web service to handle all of the client (android, ios, windows, etc.). And there are sufficient tools and libraries in each platform to work with xml (json) files. Sending data to server is also the same, you send the data in xml format, service receive it and do what ever need to be done (for example stores the data in database)
Lastly the world of web services are a lot bigger. What i said was a highly simplified version to give you a whole idea! If you interested to learn more there are plenty of books you can read. Many people (including myself) think web services are the future of internet. Where different services each developed by different company work together to provide user with something great.
Is there a way to build and Android and iPhone application that automatically updates its content.
For Example: the user has download the application and we have all of our data on there and what not but then we get another entertainer that is coming to the festival and we want to list them in the app. Do I have to "Publish" an update for the users to download of can all that information be dynamic and automatically retrieved from a server every time the person has internet.
Does that makes sense to anyone, I hope it does.
The short answer is yes.
How you achieve it is to broad a topic without some more information about your specific situation. In general what you'll be looking to do is host your content online somewhere and have your application pull the most recent version when it begins.
There are many possible ways you could store your data online XML, JSON, RSS are a few that are pretty common. Which you'd want to use depends on exactly what the data you are sharing is.