Android: How to post live commentary and match updates - android

I'm sorry but I'm really bad at this. So do bear with me.
A few questions:
1.) How do live score apps provide line-ups, live commentary etc. ?
Do they use RSS feeds and have the mobile app retrieve data from the feed?
2.) Is there any way, where I send updates from my mobile and every one using the app receives these updates?
3.) Is there any documentation that I can read up about live score update apps?
Thank you.

The detailed functionality really depends on the app and the sports. Usually there is an API involved which can be consumed to retrieve all kinds of data. http://www.programmableweb.com/apis/directory/1?apicat=sports should be a good starting point for sports related API's.
In order to send implement the functionality of sending updates from your device to other user's, you would require some kind of server to help you communicate.

Related

Best way to detect changes in an API response

Hey so basically I have a school API that provides me some informations about current courses, homeworks, etc, and so they differs depending on the current time. I would like to build an Android application around that API that would send me a notification when there is a different course happening, or when i get a new homework or anything else.
So what is the best way to achieve this? I tought about making a loop that will send a request to the API every x secondes/minutes and if it retrieves different informations than the current informations I already have, it sends a notification or anything else. But I'm not sure if it's the best way to make it.
I also heard about the observer pattern but I'm not sure if it's applicable there since I have no control on the state changement at the API level.
Thanks for you answers, I hope I'm clear about what I'm trying to achieve, feel free to ask if you want more informations.
You will have a hard with that if you want to implement the querying within the app. I'd suggest you to build a server application that constantly queries the API and sends out a push notification (for example via Firebase Cloud Messaging) to all users that are subscribed to your server application.

Android - Sending and receiving location updates of other users

I have already an location based app which functionality i want to expand:
A user can login to this App via Facebook and also other users are logged on their own Mobilephone. Both can see the location of the other.
So basically an location aware meet people APP :-)
How can I do this? Backend with PHP and mysql database?
Are there already existing solutions I can use?
Tutorials available describing this?!
the infrastructure you need is achievable in many many programming languages and many types of databases.
In the end what you need is a server running that can store the location data sent from the users. Ideally i would tell you to use webservices in order to achieve this.
Next, you will need to implement a location service app that works on the user smartphone and uses the web services to send information and get information to and from the server.
Programming languagens you can achieve this are so many. For example, in the back end you can use a mysql database with a tomcat server. if u need a front-end for the server you can use java server pages, php, whatever u feel more confortable with.
for the mobile phone there are hybrid application for different OSs. for android specifically you will use java. if u want to save some info in the phones you can use a SQLite database. this is important if you want to send data only when internet connections are available.
Those are the kind of things you have to deal with. Hope i helped you.
Good luck.

Feedback from user to developer without involving Google Play

I want users to send textual feedback to myself(the developer) directly(without involving Google Play).
Hence, I can get the suggestions to improve my app directly to myself, instead of users writing negative reviews on Google Play.
I do not own a website nor have access to any server.
I do not want to use ACTION_SEND, as that opens an email app.
I'm an android beginner and this is my first app.
Maybe that data can be stored in a database(on cloud, common to all users) that I can access at any time I want?
After researching, I think GCM is supposed to be used, but I no idea how to go about it.
Please tell me the easiest way to implement this.
Thank You.
That is not what exactly what GCM is for. GCM is primarily for sending data from the cloud to the the devices.
You are correct in thinking that one option is to store the data in a database in the cloud. You could use http://pythonanywhere.com free account and build a web app that provides you endpoints which will save and retrieve data to a SQLite db pretty easily (if you have knowledge of python and server side web concepts).
Another perhaps simpler option is to use a pre-existing cloud database solution http://www.parse.com is a cloud backend that also has a free-to-use option that you can use to store arbitrary data. It is pretty easy to get up and running if you follow their many nice Android tutorials.
One last option I will present is to use a Google Spreadsheet with a Form associated to it. Once you create a form if you know the right url and parameters you can send a post request to insert arbitrary data into your spreadsheet. I've created a library that simplifies the process of uploading. GoogleFormUploader. If you need help getting your form set up you can watch the relevant portion of my video tutorial covering this topic

android share app data between the users

I am developing an app in which, in a particular activity there are some articles on which users are supposed to discuss, i.e. post their comments.
So, if anybody comments on a particular article, that comment should be visible to all the users on their cell,who are subscribed to that article.
Now, I am not able to figure out how to carry out this.
I have referred to the developer's site http://developer.android.com/guide/topics/data/index.html and some SO's questions also but still no ans.
Please help..
You'll need to store that kind of information in a server somewhere, and access it from the app for each user. Since this is a broad question, it's hard to give you advice specifically on what technologies to use and where to host your server solution. There are many ways you can accomplish this. I would create a web service to store your data about posts and comments in a database of your choice using one of the many web service hosting providers out there:
Amazon Web Services
Heroku
Google App Engine
Here's a post I found describing simple backends for a mobile app: Backends for a mobile app
After reading that, I realized that there are some solutions that you can pay for that will take most of the work out of creating a backend for you. I've heard that Parse is great, but I've never used it myself: Parse.

Dynamic Android and iPhone Application Festival Event Application

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.

Categories

Resources