I have found a great tutorial to implement highscores with mySQL connection.
http://www.ikergarcia.com/en/juego-android-highscores
I have tried to use code, created my SQL database, but Java part is problematic. There aren't included the necessary package imports. I couldn't know, how to determine necessary imports and so code is useless.
I recommend using google play services if you want to implement high score. This is the link. Tutorials are included
However, if you insist in using mySQL I had found some interesting material that may answer your question. I believe that you need to download something.
libgdx-database-extention &
web Service libgdx
Related
I am using Xamarin.Android to develop my current Android app. And I plan to make the application chromecast compatible (users can stream videos). To get this done I am following the tutorial at: Google Cast Docs. However the Xamarin Cast libraries seem to be missing the ExpandedControllerActivity implementation. They should reside under Android.Gms.Cast.Framework.Media.Widget, but I can only find ControlButtonsContainer and MiniControllerFragment.
The only option I can see is to implement a custom ExpandedControllerActivity myself. However I lack the knowledge to do so (because I couldn't even find the java implementation of the ExpandedControllerActivity). Some guidance to get this done, is very much appreciated (it doesn't have to be in C#, just plain old Java will do).
NOTE :- This is my first question over at StackOverflow, so if you are down-voting the question, please state the exact reason.
The java binding for the component cast-framework at Xamarin Google Play Services Components (v10.0.1.0 or v10.0.2.0) doesn't seem to generate the ExpandedControllerActivity. I have created an issue on Github, with a suggested fix.
I'm searching for an API for bbPress.
I've searched here on SO but the posts I'm seeing are quite old.
So is there an api for bbPress. If yes, please how do I access it?
If no, is there anyway I can implement user registration and login via an Android app?
Also, check this repository: https://github.com/buddypress/BP-REST
In general, BuddyPress REST API is in development. Current focus will be on members management and their profile fields.
You can also check https://bpdevel.wordpress.com site, that's a development blog, where Boone is taking care of all the REST things (see latest posts).
User registration and log in can be implemented independently from BuddyPress, using default WordPress endpoints, that were shipped with the latest WordPress 4.7.
All BuddyPress offers for API Documentation is the Codex: https://codex.buddypress.org/
If you want to know if there is a function that does x, then just look in the respective file and that should give you the information for the hooks you need, for example if it’s something to do with activity, then look at bp-activity.php I know this isn't perfect but it should give you what you are looking for. All the function names are very descriptive, so it shouldn’t take more than a few seconds to find a function that fits your needs.
Database classes can be found in these files:
bp-{component name}/bp-{component name}-classes-php
Template functions can be found here:
bp-{component name}/bp-{component name}-templatetags-php
Once you realize how files and functions within files are organized it should be pretty easy to find what you are looking for exactly. Hope this helps!
Alternatively, you could do something like webview around the login/registration page. Not ideal I know but is an option if you don't want to go through the hassle.
There is a bbPress API, which leverages WP JSON API v1.0:
https://github.com/thenbrent/BB-API
But you should consider upgrading it to v2.0 of an API, as it's much better.
I am working on android project and have to write a logging system that will record everything happening in the app during production.
What is the best way to do this? I was thinking about writing my own simple writeToFile class but then I see some people use Logging libraries.
There are a number of libraries to log the data. One of the most popular and simple library that i came across is "Hugo" developed by Jake Wharton. Its simple easy to use and flexible.
You can find the link to the library here https://github.com/JakeWharton/hugo
What I'm looking for is some library like Perl's Data::Faker, Ruby's factory_girl. Something that allows me to generate random Strings, Dates, ... for testing.
I saw this other question. But I want something that has been used by someone with Android.
I tried java-faker, jFairy - they don't work on android.
So I find fluttercode.datafactory - it's ok for android.
Add following to your app build.gradle to use it:
compile 'org.fluttercode.datafactory:datafactory:0.8'
Usage example: http://java.dzone.com/articles/generate-test-data-datafactory
From the link that you gave, it seems that you are looking for Mock libraries that could be used in Android.
This article, written by some Google engineers, use PowerMock library to do their unit tests in Android. You might want to try it out and follow the steps in the article to have your test up and running.
I've recently developed a library that can be used for generating test data for your applications in a programatic way.
Take a look at MockNeat: https://github.com/nomemory/mockneat
There are also two detailed examples on the wiki page:
Creating CSV with test data
Populating a SQL Schema with test data
I am currently starting to create an app for a small charity company. But I'm not entirely sure how to properly learn how to code for the Android OS. I have searched online for tutorials, but most stop at the same stage and only show you how to launch the "helloWorld" app.
My question is this:
1) Will using solely XML be sufficient to code an app? Does it require working in partnership with Java?
2) Does anyone know of any books, recommended books of course, that break everything down for you step-by-step?
Android Developer site very good to give you all ideas. Start from Hello, World
1.) Not at all. XML is ONLY used for the layouts.
2.) There are a few books out there that I'm sure someone will come along and recommend, but I've found the tutorials here to be the best start.
In your case, I'd look at AppInventor which allows you to create small Apps without coding (at least that's what it says, haven't used it yet myself)
1) No, you can use XML for interface, but you can't write an Android app in XML :) You are not required to work with Java, but Android language is based on Java, so knowing Java is an advantage while learning to code.
2) Did you installed Eclipse and the plugin for Android?
The Android Training is pretty useful, and I've learnt a lot from the tutorials and the sample code provided there. (The Notepad app is way more complex than the Hello World tutorial ;)!).
Also, take a look at the answers on that question: How can I learn Android?