GLBasic forum

Main forum => GLBasic - en => Topic started by: mentalthink on 2011-Sep-15

Title: For calling functions in native code on Android, what I need?¿
Post by: mentalthink on 2011-Sep-15
Hi I´ve got this question, becuase I like to know how calling native code in Android from GLBasic

It´s possible call to java?¿... or It´s better and easier make the funtions whit the JNK in C++, someone can give an little push, to show me the light?¿  :nw: :nw:

Kinds Regards,
Iván J.
Title: Re: For calling functions in native code on Android, what I need?¿
Post by: Kitty Hello on 2011-Sep-19
what are you trying to achieve?
You can inline C++ code. You can also call Java (with some overhead).
Title: Re: For calling functions in native code on Android, what I need?¿
Post by: mentalthink on 2011-Sep-19
Hi Gernnot, in this momment it´s only for curiosity I know how made it, because I like, in examample use the camera or use somo code more complex, like in iPhone, but I stay I little confuse who make this, I read something about call Java from C++, but my knowledeges aren´t enough for make this task success, and how I don´t look nothing in the forum speaking about this, if anybody can put some simple example, I think can be very usefull, like on iphone, after everyone have to do the homework.

Thanks,
Iván J,
Title: Re: For calling functions in native code on Android, what I need?¿
Post by: Moebius on 2011-Sep-22
This looks like it could be useful, if anyone can figure out how to use it:
http://code.google.com/p/android-cpp-sdk/ (http://code.google.com/p/android-cpp-sdk/)
For accessing the Android SDK through C++...
Title: Re: For calling functions in native code on Android, what I need?¿
Post by: mentalthink on 2011-Sep-22
Thanks serpetn, I will took a look.

Thanks again.
:nw: :nw: