Sunday, April 24, 2011

Android Activity

I succeeded to have a simple Activity working with pointer and keyboard events:

public class HelloAndroidActivity extends Activity {

    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
        TextView tv = new EditText(this);
        tv.setText("This is an EditText view in an AWT Window: \n");

I can't go further without the Binder IPC system. It's an important piece of software in Android because almost all the public application framework relies on it to find and use services (window manager, audio, input methods, ...)

There is a temporary hack to replace the IPC system (for the graphical part only):

The current start process is:

Monday, April 18, 2011

Android Canvas in an AWT Window

A new small step: I got the Android Canvas working (only 2D rendering for now) :