NDK all from within Eclipse

by Robert Green » Wed, 16 Dec 2009 07:02:13 GMT

Sponsored Links
 I was going to post this to the group but figured I'd write up a how-
to on my website instead.  Basically, here's how you configure Eclipse
to do nice C/C++ editing and automatically build your native code for
you on-save.  It also automatically refreshes your lib directory and
consequently ADT puts it straight into your APK.


I'll post this to the NDK dev group as well.  I can't believe I didn't
set that up sooner.  It cut my native development time in half.  Let
me know if you have problems/questions with it.


NDK all from within Eclipse

by HeHe » Wed, 16 Dec 2009 10:56:57 GMT

 thanks! thanks! thanks!


Sponsored Links

NDK all from within Eclipse

by Paul Turchenko » Wed, 16 Dec 2009 16:11:33 GMT

 Really cool! Thanks a lot!


NDK all from within Eclipse

by datoudatou » Thu, 17 Dec 2009 02:18:24 GMT

 hi Robert Green,

great thanks.

i have tried your method, it really worked for me
(slackware 12.1, android sdk-2.1 + ndk1.6 + eclipse galileo + cdt 6.0.1).

now, i can declare that the method workes under win32 and linux dev env.

yours waynechen


NDK all from within Eclipse

by Nightwolf » Fri, 18 Dec 2009 01:45:35 GMT

 There is also useful video

Using CDT for Android Native

It would be great to know how to debug native code.


Other Threads

1. What's the official way to take a picture using the camera?


I know that the Android's sample api has a CameraPreview code, but it
is completely useless. It shows the camera on screen, but has no ways
to actually take a picture.

Is there a complete sample or a code to take a picture? What's the
official way for doing that?

Currently i use this code that worked fine until Froyo appeared:

   private void captureCamera(String s)
      targetPhotoName = s;
      Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
      intent.setType(s.endsWith(".3gp") ? "video/*" : "image/*");
      startActivityForResult(intent, TAKE_PHOTO);

Does not work in Froyo at all.




2. Uploading a zip file to localhost from android

Hi everyone,
Can any one please tel how can i upload the zip file stored in /data/
data/pckg_name/files/zip_file.zip to my local host(xampp web server)


3. need feedback on some alternative app stores

4. Are Amazon serious with the app store?

5. app2sd di froyo

6. Dynamic for generation in android and Multiple screen isse

7. Document for init.rc and android services