java

Project Lombok

Category: 

Mit Java hat man häufig das Problem, dass man mehr Code schreiben muss, als man eigentlich will. Project Lombok kann dazu genutzt werden diesen Boilerplate Code auf ein Minimum zu reduzieren.

Entity Component System: Ashley

Category: 

Ashley ist ein kleines Entity Component System für Java. Inspiriert wurde es von den beiden Frameworks Ash und Artemis. Ashley ist Teil der LibGDX Familie und kann daher wunderbar damit benutzt werden. Selbstverständlich kann man es aber auch (fast) ohne LibGDX nutzen.

Tipp: Logging Shortcuts

Category: 

Logging Frameworks like Log4J are very important tools, but sometimes one have to write the same code multiple times, just to give a Logger to each class. But thanks to Java 8, we can solve this problem.

Java 8: Lambda Expressions

Category: 

Lambda Ausdrücke (auch Closures genannt) sind ein neues und wichtiges Feature in Java 8. Durch sie kann man den Code übersichtlicher halten und unnötigen Boilerplate-Code vermeiden.

Carbon Controller Library

Category: 

LibGDX contains an extension for controller support, but handling different kinds of controllers isn't so easy. This is caused by the different mappings. The A-button on a Xbox 360 controller has a different code than the A-button on an Ipega controller. The Ipega also has different codes on different platforms. The arbitrary codes are also har to remember.

Java Generics

Category: 

Generics are a facility of generic programming that were added to Java within version 5. The core idea behind these parameterized types is the addition of so called Type Variables. They allow a type or method to operate on objects of various types, while providing compile-time safety.

Ipega Controller Mappings

Category: 

The Ipega Bluetooth Controller is a cheap controller for nearly every bluetooth device. With it's holder it is specifically designed for smartphones. The controller has different operating modes, with different behaviors on different platforms. In this tutorial I will show you how to use this controller and it's mapping for LibGDX.

LibGDX Controller

Category: 

Today we are going to look at the LibGDX Controller extension. I will show you how to add controller support, specifically support for the XBox 360 controller, because it seems to be a widely used gamepad.

Android Battery Monitoring

Category: 

For many applications, it might be interesting to know the current charging state of our battery. If it is almost empty, you should consider to change into a mode with lower energy consumption. Or you could do it the other way around. If your device is in charging mode, you could consume more resources and power as in normal mode.

Communication between Wearable and Smartphone

Category: 


In the last tutorial we've learned how to add a configuration activity for a watchface. Now we want to learn how to send settings from a mobile app to the watchface.

Pages

Subscribe to RSS - java