last day (15 days later) » 

3:11 PM
@scarletAmaranth happily discuss vcproj / sln -> apk conversion without annoying the neighbours
No pubby, not you :)
 
:(
 
Sorry
got caught up on something for a min
thx sehe :)
 
Do you use c++11 in your project ?
 
Mm...let me see, it's just one of my peers got a package with source files and all and already compiled it on VS but I'm not so sure...
 
Well, you will need either an official or unofficial android NDK.
Official one does not support any of the C++11 features ...
 
3:22 PM
ouch :/ ok
 
You will basically make yourself a Java file that will contain "native" function declarations (declarations only) and generate a JNI C++ file with javah for them.
Then you will be able to define those functions in C++ normally.
You will compile all the C++ code with the NDK.
And create Java wrappers for the native functions so that you can create a link between GUI and your code.
 
Ok, wait, nop, no Java files
 
Well, here's a thing.
First of all, in order to create an Activity fully in C++, you'd have to target 2.3+ platforms only.
 
@PaulinaD cheers. Dunno whether @ScarletAmaranth had enough rep to create a room yet.
I think this is interesting stuff I might be back to read later. Now, to do some cooking
 
ok :) thx @sehe
 
3:28 PM
Second of all, control elements of android and graphical interface are java exclusive.
Third of all, working around all that would be either impossible or ridiculously difficult and would probably involve hand-crafting stuff for every single release of android OS.
 
yups O_o
 
There's a google I/O 2011 talk called Bringing c and c++ games to android.
Take a look at it.
They will explain basic stuff.
 
for native code
 
You ought to have an Activity in order to create the APK, right?
 
3:31 PM
Yes, you do need an activity. There's a "native activity" for 2.3+ platforms though.
But that would cut off like third of the market straight away.
I ported a game on Android, i wrote very little java for it, just lightweight wrappers basically.
 
ok...well, let me check out the Bringing C & C++ to Android talk
 
Enjoy.
 
that and I gotta ask for the files :P
 
woops, gotta reboot :/
 
4:13 PM
I scared him/her off
 
Well, his idea was to take sln, click a button that would auto magically convert it to Android app.
 
that's awesome!
unfortunately android uses Java
 
Yeah that's kinda what i said, after which he said :
Ok, wait, nop, no Java files
 
4:43 PM
and that is the summary of the room
 

last day (15 days later) »