After learning from tutorials, blog posts and who knows where else, AndEngine for Android Game Development Cookbook has been finally published!
You can buy it on the publisher’s site which is [PACKT] publishing or on Amazon and a few other stores.
As the overview on publisher’s site says, this is a step-by-step instruction on how to write games using AndEngine. It explains pretty much everything starting from basic things such as what is a texture, a sprite, how you can manage these things, etc. and goes to more advanced topics such as performance optimization, physics extensions and some others. At the end you have a source code for the example game you were writing while doing exercises from this book.
Continue reading AndEngine Cookbook is finally available!
Nowadays, more and more apps have either built-in bar code & QR code scanner or represent their products via these codes. So it’s really the matter of time when the Android developer will build the app with the bar code integration.
With the though of this, I made a simple tutorial on how to integrate the most popular open-source barcode library – ZXing. In this tutorial I will describe an intent integration, which means that I will ask the system if there is a Barcode Scan app installed, if yes – the scan will be performed, if not – I will be re-directed to the Play Store where I could easily download Barcode Scan app and after the installation, – perform the scan. This way, we leave all the heavy-lifting for ZXing library.
In order to start, you need to download the ZXing-X.X.zip (where X.X is the current version of ZXing) from http://code.google.com/p/zxing/downloads/list. Unpack the .zip file and navigate to android-integration folder. There you will see a src folder and a few .jar files. Pick the one that suits you (honeycomb if you build Android 3> app or supportv4 for compatibility…) and put it into the /lib folder of your Android project.
Continue reading Tutorial: Scan barcodes with ZXing library (Intent integration)
Wow, it’s been a long time since my last post!
Today I would like to talk about the WebView – Android‘s view for displaying web pages. The first thing to know is that it has a few methods to load data and sometimes it may not be so obvious which one to use. So, we will go step by step on how to load the html page, which is located in project’s assets directory. It won’t be just a simple text: custom font, an image and some style will be applied to this page as well.
OK, so let’s begin!
First, I have created an empty Android project (I used Intellij Idea 11 as my IDE, but it really doesn’t matter which IDE to use in this tutorial). The package name for this tutorial is –com.lomza.tut.webview. Then add two new folders to the assets folder: fonts and images. The first one will contain our custom font and the second one will be used as a resource directory for images. I have used an English Essay font – it’s a beautiful calligraphy font, free for non-commercial use. You can download it from here. Copy the .ttf file into the fonts directory. Then save the butterfly_image.jpg picture, and place it into the images directory.
OK, now it’s time for the .html page! Continue reading Tutorial: Using WebView to load the html page from Assets
Happy coding 🙂