Categories

Archives

Using Handler in Android

If you come from a Javascript/Actionscript 1 or 2, you probably know setInterval coz you need to use it a lot, in Android there are several ways in making your setInterval, one of which is using a Handler with Thread or using Timer, on this article would focus on using Handler. The reference of where [...]

Code to show your XML Visual in Android

After posting some layout related xml examples in Android, i realized that there is no example on how to set your xml as your view/presentation layer. Here is the code:
package <yourPackage, example: com.almondmendoza.firstDemo>;
import android.app.Activity;
import android.os.Bundle;

public class Main extends Activity {
/** Called when the activity is first created. */
[...]

Sdcard on google android in Mac

Back when i was still posting my tech post on monmonja, i created a post which talks about sdcard on android, that post was done on ubuntu, and currently i shifted to mac coz i feel 8.10 has no big changes (im using it on my ps3). Anyways based on my old post, this is [...]

How to fixed ‘caurina.transitions.Equations’ could not be loaded on Tweener

When you encounter the bug, ‘caurina.transitions.Equations’ could not be loaded, just go to Equations file, located at caurina/transitions/Equations and delete the last line or the empty space at the bottom until the last letter is the }, then save the file.
Hope it works.

Factorial in ActionScript 3

Here is factorial function in Actionscipt 3,
package{
public class MyMath{
public static function factorial(index:uint) : uint {
var total:uint = index;
if(index > 0){
total += MyMath.factorial(index – 1);
}
return total;
}
}
}
To use it
trace(MyMath.factorial(3));
Hope it helps