Hello, I believe all that you would need to do is compile your (i'm assuming that you are using c) code against the android Boost library or static compile the regular c or c++ code with it. Also to access this c code you will need to use a JNI like you are. Essentially this should only be done if you really need the extra efficiency that c provides as you will not be able to distribute this app to any phone that use a different architecture to the one that you compile it for. For example if another phone happens to use an intel specific architecture you will need to recompile the native code for this and distribute a lot of different versions for each phone etc.
I have not tried this yet but some pointers i have picked up about compiling native code for android. http://android-dls.com/wiki/index.php?title=Compiling_for_Android http://benno.id.au/blog/2007/11/13/android-native-apps http://groups.google.com/group/android-developers/browse_thread/thread/6960fe8703b1edb9/3d68334a74a9bab2 http://wiki.gnashdev.org/Building_for_Android On Jun 18, 11:21 am, arun choudhary <[email protected]> wrote: > Hi > > As per my understanding and googling > > I created a sample function and wrote jni wrapper for that > now I need a way to wmbeded that in Android source any pointers on the same > > Arun > > > > On Wed, Jun 17, 2009 at 1:39 PM, Ne0 <[email protected]> wrote: > > > I am new to Android development, but i think you will have to build an > > SDK of your NEW android code, and develop your app against that, then > > build android and install it on the device you wish to have it on. > > There may be an easier way, though that is how i would/will approach > > it. > > > I am also looking into doing a similar thing, if you are planning on > > having this on more then one device, you may run into problems. As far > > as i can tell you can only load custom builds of android onto the Dev > > phone. To load them onto another device E.G. T-Mobile G1 you will have > > to get the carrier to sign your version of Android else the bootloader > > will not except it. > > > This is my understanding of the situation, if you know differently, > > then please advise. > > > Liam > > > On Jun 17, 6:08 am, arun choudhary <[email protected]> wrote: > > > Yes I want to Edit/Add Android source code, build the > > > android library with my custom API and use it to feed my app > > > > Please guide me on the same > > > > Arun > > > > On Tue, Jun 16, 2009 at 8:28 PM, Ne0 <[email protected]> > > wrote: > > > > > Do you mean you want to Edit/Add Android source code, build the > > > > android library with your custom API and use it to feed your app? > > > > > On Jun 16, 12:21 pm, Desu Vinod Kumar <[email protected]> wrote: > > > > > HI > > > > > add a folder name lib > > > > > and keep the jar file into it > > > > > > and got to [project setting > > > > > add that jar file in libraries > > > > > > On Tue, Jun 16, 2009 at 4:46 PM, Sujay Krishna Suresh < > > > > > > [email protected]> wrote: > > > > > > to add a new library u jus need to go to the project properties & > > add d > > > > > > jars... > > > > > > > On Tue, Jun 16, 2009 at 4:21 PM, Arun <[email protected]> > > > > wrote: > > > > > > >> Hi All, > > > > > > >> I have an specific requirement to write a new library in android > > > > > >> source and an simple client application on top of that. which uses > > > > > >> some of functions exposed by that library > > > > > >> Can any one provide me step by step process for the same > > > > > > >> Arun > > > > > >> [email protected] > > > > > > > -- > > > > > > Regards, > > > > > > Sujay > > > > > > Mitch Hedberg< > > > >http://www.brainyquote.com/quotes/authors/m/mitch_hedberg.html> - "I > > drank > > > > some boiling water because I wanted to whistle." > > > > > > -- > > > > > Regards > > > > > ------------------- > > > > > Desu Vinod Kumar > > > > > [email protected] > > > > > 09916009493 > > > > -- > > > For pics Please visit > > > >http://picasaweb.google.com/achoudhary2980 > > > > wish u all the best > > -- > For pics Please visit > > http://picasaweb.google.com/achoudhary2980 > > wish u all the best --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

