Featured Post

Smart Phone – The automatic and smart settings app

Smart Phone makes your Smartphone even smarter than it already is. It automatically adjusts the settings of your Android phone based on conditions like location, time, battery and sms text. The main targets of Smart Phone are: automatically change settings to save time manage that in a very efficient...

Read More

Installing BlackBerry PlayBook simulator on Ubuntu

Posted by Bartinger | Posted in All, Tutorials | Posted on 29-02-2012

Tags: , , , , ,

0

screenshot of PlayBook simulator on UbuntuYou may heard of the extended Free PlayBook offer from BlackBerry. If not, basically if you upload an app, no matter in which language you write or have written your app, they will offer you a free PlayBook when your app gets approved. So I wanted to take the chance and grab one of these, even though it’s not an Android tablet :)
So I took an old little game I wrote a year ago and struggled myself through the progress of signing, testing and uploading. In every single step was something really annoying but I just describe the testing part.
I’m running Ubuntu and I wanted to test my little app on the simulator before I upload it to know if it actually runs. Unfortunately the didn’t provide the resources for Linux, but there is a little workaround to get them anyway.
The first thing you need is the VMWare Player. When the download is finished make it executable with the following command.
 chmod 777 /path/to/VMWare-Player-bundle-file 
After that you can execute it with
  sudo /path/to/VMWare-Player-bundle-file 
Then go through the installing progress. Shouldn’t be too hard.
The next step is a little bit harder and requires more time (and probably nerves) On the main page is just the Windows and Mac version, of the PlayBook 2.0 simulator. After searching the developer site I found the resources of the PlayBook for all platforms. http://us.blackberry.com/developers/resources/simulators.jsp Unfortunately after installing and running I noticed, that this is a old version. It’s 1.0.8 :(
But there’s a way to get the files for your favorite operating system. What you need is another pc (or if you’re lucky you installed Windows on your pc too) and download the file for this platform. So if you have access to a Windows pc download the exe from here and execute it. This will just execute a bunch of files to a directory you specified. Take this files on an usb stick, go back to your Ubuntu pc and copy them to /home/name/VMWare/BlackBerryPlayBookSimulator2 (or any other place)

Then open VMWare and press “Open a Virtual Machine” browse to the directory and open the vmx file. The last thing you have to do is to set up eclipse to run your app (Window > Preferences > BlackBerry > BlackBerry Tools SDK and click on “Add…”), but this part is documented enough here.

I hope it works for you and if not don’t hesitate to leave a comment.

Clickable widgets in ListViews

Posted by Bartinger | Posted in Tutorials | Posted on 19-10-2011

Tags: , , ,

2

Clickable widgets in ListView items - screenshotI know I lately didn’t blog as much as I should, but I’m trying to be more active again.

Some time ago, I wrote another ListView tutorial for Cre8ingApps, which is btw a great blog and community about mobile news and development. I decided to write another ListView tutorial, because I think, it’s the most used UI widget and nearly included in every application.

So what is this tutorial about?

As the title says, it’s about clickable widgets, in our case ImageViews, in list items. Take a look at the screenshot to know what I’m talking about. So if you’re interested go ahead, try it and if you have any questions || suggestions, just leave them below.

CLICK ME to get to the tutorial and the source code is available here: Widgets in ListViews tutorial (265)

Get Minecraft 1.8 pre-release

Posted by Bartinger | Posted in All, Tutorials | Posted on 10-09-2011

Tags: , , ,

0

Can’t wait for the next Minecraft update? Mojang released (not the official release) a Minecraft 1.8 pre-release update. Notch is happy for you to try it.

Final release at: 12th of September

How to get and install it:

  1. Download the new minecraft. jar  http://assets.minecraft.net/1_8-pre/minecraft.jar
  2. Go to your .minecraft/bin folder
    • Windows: %appdata%/.minecraft/bin
    • Linux: ~/.minecraft/bin
    • OS X:  ~/Library/Application Support/.minecraft
  3. remove or rename the existing minecraft.jar and copy the downloaded one in the bin folder
  4. Start Minecraft and have fun.
More after the break.

Organization tips for Android projects

Posted by Bartinger | Posted in All, Tutorials | Posted on 16-08-2011

Tags: , , , ,

0

Android worker
If you develop apps for Android you may have noticed, that you quickly lose the overview of your layouts, ids, drawables, packages, etc. I want to share my experience with you and suggest a few tips, how to organize your projects. I consider myself to these rules, because they help me (and of course others) a lot to know about the project. If you work as a team it is even more important to define rules for the naming and the organization of the project.

  • The res folder
  • Packaging
  • Separating paid & free version

Global objects with Singleton

Posted by Bartinger | Posted in All, Tutorials | Posted on 02-08-2011

Tags: , , , ,

4

Singleton is a software pattern which ensures that there is only one object of an class. Furthermore this object is globally available. I use this pattern in many of my projects for logging, because it’s really efficient, saves memory and easy to implement. You use singleton if

  • there has to be only one object of a class and need a simple access to that object or
  • the single object is specialized by subclassing.
A few practical examples:
  • for logging (maybe into a file)
  • loading data (i.e. sqlite)
I will show it using Java and then give you some worth knowing tips for Android, but the singleton pattern works with every object-oriented programming language.

ListView with Sections/Separators

Posted by Bartinger | Posted in All, Tutorials | Posted on 11-07-2011

Tags: , , , , , ,

32

Sectioning ListViews

Edit: ListView tutorial part 2 is about clickable widgets in ListView items Take a look!

If you’ve ever used ListView, and i bet you had, then you will have noticed that it is not very handy if you want to display a huge amount of data. I found a few solutions, how to categorize list items like in your phones preferences. This post won’t be about how it looks rather more about how to write it. I’ll show you 2 solutions and describe one if it more detailed. There is no perfect solution, but you can decide which one you prefer.

LG Optimus 2X – Rooting, Install Modaco’s ROM and rescue instructions!

Posted by Bartinger | Posted in All, Tutorials | Posted on 13-05-2011

Tags: , , , , , , , , , , ,

6

Dear reader,

I think this is just interesting if you own an LG Speed/Optimus 2X, so don’t try this on any other device or you will break it. Also don’t try this on the T-Mobile G2X, it’s not the same.

I’ve tried many times to flash my LGO2X but I never got into recovery mode and that was pretty annoying. Finally I done it and flashed it with the modaco’s vanilla rom. I found some other instructions, but I wanted to write a whole description ranging from rooting up to the flashing and restoring if you mess everything up.

Let’s get started.

  1. Installing Clock Work Mod
  2. Rooting your LG2X
  3. Flashing the latest Modaco Rom
  4. Restore if you did something wrong.

Tutorial: Local game scores with SQLite

Posted by Bartinger | Posted in Tutorials | Posted on 20-02-2011

Tags: , , , ,

4

Create a standard Android-Project, or include the following into your game.
At first we need a class which creates a database if it doesn’t exist and can access the database.

Make a new class and call it ScoreDatabase and extend it from SQLiteOpenHelper