Simple Button for Android – XML onClick + public method

Probably the simplest way to create Android Button. Create a new public method (e.g. goButtonClicked) and add it to your layout XML. Prequisites: Android Hello World Explained In Java, define a new public method that takes view as parameter. public … Continue reading

Posted in Uncategorized | Tagged , , , , , | 4 Comments

Lifecycle Code Example for Android – onCreate(), onPause(), onResume()

In Android lifecycle, methods are automatically called. This simple example toasts a message each time this happens. Create a new project SimpleStuff, package com.botbook.simplestuff. Run your program and see the states change. Press home button to stop the program. Hold … Continue reading

Posted in Uncategorized | Tagged , , , | 1 Comment

Print PDF from Command Line – cups-pdf, lpr -P PDF

After installing cups-pdf, you can print to file with ‘lpr -P PDF’. Install PDF printer $ sudo apt-get -y install cups-pdf List printer names that lpr can understand $ lpstat -p -d printer deadtree is idle.  enabled since 2011-06-22T08:09:05 EEST … Continue reading

Posted in Uncategorized | Tagged , , , , , , | 2 Comments

Fix Android Build Problem with main.out.xml and strings.out.xml

When you edit an Android XML file in Eclipse, build fails and main.out.xml is created. Fix it by disabling XSL transformation build and set to always build the last build. Eclipse: Window: Preferences: Run/Debug: Launching: Launch Operation -> Always Launch … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | Comments Off on Fix Android Build Problem with main.out.xml and strings.out.xml

Shaking Tower Panda for Android

Update: Thousands of installs in just two weeks. Great review. Save the Panda! Kimmo and Ville created a new Android game. Panda is trapped on a tower and your goal is to get him back to the ground safely. Remove … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | Comments Off on Shaking Tower Panda for Android

Virtualize Servers with KVM, Cloudmin and Ubuntu

My students Antti Ollila, Sakarias Hiltunen and Juha Salminen virtualized some servers. They set up a web interface that creates new virtual servers with a click of a button. After trying some alternatives, they ended up using KVM and Cloudmin. … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | Comments Off on Virtualize Servers with KVM, Cloudmin and Ubuntu