On Thu, 24 Jan 2013 07:20:57 +0100 Jim Hart wrote:
JH> In my opinion very first steps would be:
JH>
JH> - create a NativeActivity (
JH>
http://developer.android.com/reference/android/app/NativeActivity.html
JH> ) as entry point for Android that itself calls into the native code
JH> and hands over the graphics context to it
This is one way of doing it and if it works, probably the best one.
Another alternative would be to write a Java stub for wx on Android that
would call into C++ code.
JH> - create a wxStaticText (just for testing to see if that Activity works)
I think we'd need to implement wxControl as a bridge between wx and native
GUI widgets. I.e. to implement wxStaticText you'd tell wxControl to create
a native android.text view and delegate to it; to implement wxCheckBox
you'd create android.widget.CheckBox and so on.
JH> Things like wxFrame or wxWindow should not be necessary or created
JH> implictely since there can only be one window at the same time? Means
JH> overlapping windows are not possible in Android!?
This is not the worst limitation. Clearly the structure of an application
wouldn't be the same on the desktop and on the phone so UI would need to be
changed anyhow and providing a way to navigate between windows would be
just one of many things to do and, again, not the most difficult one. But
before thinking about the higher level abstractions that would make
developing the applications for both desktop and mobile easier, we really
need to have the low level stuff like wxWindow, wxControl &c done.