oryol icon indicating copy to clipboard operation
oryol copied to clipboard

development pipeline regarding android

Open neshume opened this issue 8 years ago • 4 comments

what is the development pipeline regarding android?

  • in IOS I use both CLion and XCode
  • in windows -> visual studio
  • In android I have been using sublime text + command line ? is that the optimized path ? is there a way to use androidStudio for both debugging / development? Terminal is ok but rather limiting ;-)

Cheers,

-Neshume

neshume avatar Feb 28 '17 13:02 neshume

I basically gave up on the whole Android IDE mess. I'm treating it similar as emscripten, do actual development on a native version in Visual Studio or Xcode, and only cross-compile on the command line. I never got NDK debugging to work reliably. In the not-too-distant future, Visual Studio Code might be an option (see: http://floooh.github.io/2017/02/27/fips-vscode.html)

floooh avatar Feb 28 '17 14:02 floooh

thx for the fast response ... I gave android studio another shot (after many many shots...) and I am getting to the same conclusion. I am trying to host the oryol using a different layout (not full screen but part of the UI) the same as on IOS .. so I created a small android studio sample with a different layout (sub view + buttons) .. oryol is working just fine as an external .so (after a little modifications to the main app class ;o) ) .. but how Do I use a different layout .. not full screen ??

neshume avatar Feb 28 '17 14:02 neshume

ah hmm, sorry my Android-fuu isn't good enough, I basically tried to avoid the Android Java side as much as possible and just used the NativeActivity stuff. All the interaction goes though this (which I copied over from the NDK): https://github.com/floooh/oryol/blob/master/code/Modules/Core/android/android_native_app_glue.c

I'm not sure if NativeActivity actually works with anything else then fullscreen, since as far as I know it has mainly been developed with games in mind, which usually just need a fullscreen GL canvas and nothing else.

floooh avatar Feb 28 '17 15:02 floooh

Thx F,

well ... refactoring the native_app_glue is needed .. started on that. will update ;o)

its amazing ... whenever you deviate from java in android you get Christmas ...

cheers, -n

neshume avatar Feb 28 '17 16:02 neshume