I want to create a simple leaderboard for a game I'm working on.
It should connect to a database and get the top 5 or so scores, as well as update the leaderboard when someone gets a new top 5 score. Any suggestions on the best way to implement this? I would use Google Play, but that has a registration fee and this is just for a school project. I'm thinking about using Firebase database to store the data, but I hear that libGDX and Firebase don't mix very well.
Any suggestions?
Thanks
Since it's a school project, you could just go with the Preferences and store it in there. This is local and easy to cheat but it does accomplish a "simple leaderboard" to give that finishing touch. Another way is to just write it to file and encrypt it for some added security.
Otherwise, if you have a website hosted somewhere, it will likely have a MYSQL server too. You can sent web/http requests to a php script and store and retrieve it from there in a mysql DB. I did this once and worded like a charm, without the hassle of hosting some random db somewhere.
Sugestion: Connect to Database, MAKE REST API CALLS using JSON AND USE RecyclerView use data from Database.
Cumps
Related
I have a question that I would appreciate any on to answer.
my question is:
Is there any way to update some data like adding some videos, sales, values...etc in a recycle view after publishing the app in a google play without updating the app it self in the play store?
I actually don't have a clue on how to do this..
if there's any samples or websites on answering this question please share it with us.
thanks in advance
I can see a possibility but it's dirty, you can have one endpoint (/recycler), this endpoint can send you different type of data (movies, book and such), your application calls this endpoint and upon the result you parse it into one of your class that will populate your recyclerview.
I don't think you'll find any samples about it as it's not what people tends to do.
Well, if the data you want to update is writen in you code, I believe you can't update this without update the app itself.
It seems like you need a space on you app where you want to update it easily.
You should provide a backend to your app and consume the API to get all the info you need (with this, you will not need update the app itself on the store)
If you, like me, have no skills at backend development, give a chance to firebase:
https://firebase.google.com/
It will make easy to create a backend to your app. You'll need to update your app only once ( to make it work with firebase). After this, all you'll need to do is update you firebase, the app will get all new info from there
I am considering using a FireBase database to store app data. What I would like to achieve is to have the data available to my app only.
Is this just a matter of creating a single account for my data and hard-coding the credentials into my app (similar to what I am doing now with my MySQL solution)? Or is there a better way to achieve this?
Looking forward to your input.
EDIT:
Let me just explain what I would like to do. I am developing a level based game. A players score is dependent on how fast he/she completes a level, compared to all other players. What I want is the following: I want to store the level data in a SQLite database on the device and to update this from a FireBase database. I do not want users to create an account. So, basically, I want my FireBase database to "act" more or less like my SQLite database: no login needed and only accessible to my app. Hope this makes sense.
About me
I am a quite a starter but I have worked with Android Studio before; creating simple data scraping apps and more. Bu I was bashed on here once for just asking for answers without trying, that is why I am giving much as effort to make clean as possible. I am not looking for just answers, I was hoping to learn something building this app. Sorry for my terrible English and also thanks in advance!
Infinite Campus
If you haven't heard of Infinite Campus, it is a grading website which students and teachers use. The website is generally great; it gives a lots of informations and it is clean. Besides the website, they also have an app. But the app is terrible. Reason is:
It is Slow: refreshing the data takes too much time.
Less information: for some reason it has less information; like GPA and more.
On Android it just looks terrible
And I decided to create my own app, and hoping to learn new things in the process.
My App
I want my personal App same as Infinite Campus App.
The app is fairly simple, it is only does two things:
Log in
Scrape Data and Display.
The site is: Here
Problem/Question
I do not know where to start.
Do you guys have any good tutorials?
What do I need to learn?
Is the site good for such a thing?
Yes, you can create an Application like that but first, you need to understand your requirements and what are the technologies you are going to use like.
1.) In your Campus App you want to enable the login functionality for that you must have some database where you can store the user information like email and password for this Firebase comes handy with Real-time Database.
2.) you want to store the student's score or test mark for this Again you need to design a database where you can store it so Real-time database from firebase again helps in easy to use integrate.
3.) Next process involves making the UI in android which can be referenced in java where you can implement your business logic.
Useful links you may want to get started
firebase login
realtime database
Using recyclerview for list type things
for displaying drawer menus
Total beginner here.... :(
I am using Eclipse with ADT and Google App Engine plug in.
I have built my "awesome" android app, but now I want to save some of the data the app produces onto a cloud service so I can share it between my users.
So I am trying to do this with google services. I have incorporated in my project both Cloud Storage API and Google Cloud Datastore API, both using the GDT plug in, but that's as far as I can get :((((
I know I am asking a lot, but I don't even know if it is a lot, it might be a few lines of code, at least that's what I think.
So now I need a way, through some Google API to connect to a database that "belongs" to me, and store 5 numbers there from each of my users, and share other user's numbers with each other...
Can someone take me by the hand and tell me what I need to import and what not...?
I have spend hours reading all documentation about these APIs I could find and I ended up going in circles :( either trying commands that cannot be resolved, like DataStoreService(), or simply not even finding where do I put my info to get to "my" database....
Thank you all.
I have basic knowledge of Java but have never developed for Android.
A friend asked me for an app that seems easy enough to develop but I would need some help for Android.
All the app needs to do is send a text field (for example license plate number) to a predetermined SQL Server database.
Is this easy in Android as it sounds?
Thanks in advance. Cheers.
Darko.
That should be easy, but does it need to be a full-blown Android application for that?
Sounds like a simple webpage with an input-field and a submit button would do the job as well.
If you're familiar with using databases from Java the task is very simple. Just write the code that sends a string to a database. The exact same code you would use on a desktop Java application will do.
The rest is a matter of defining your user interface and obtaining the string. There is a good basic tutorial you can use on the Android developers web site: http://developer.android.com/guide/tutorials/notepad/index.html.
The number of code lines in the whole application will be in the range of a couple of dozens.
It sounds like you want the license plate information stored in a separate server, but if you also wanted to store some information on the device itself there is a simple Notepad tutorial provided by the Android Developers site that explains how to setup and utilize an SQLite database on the device. This by no means would replace the functionality of a server, but is another Android feature that is at your disposal.