ADT causing CDT to build all C projects on Android app launch??

by Robert Green » Sat, 28 Aug 2010 10:30:00 GMT

Sponsored Links
 Hey guys,

I doubt there are too many people who run CDT in eclipse for native
apps also with ADT installed for Android, but in the off-chance that
someone here knows anything about this, my problem is that any time I
run any android app, my C builder kicks in for projects totally
unrelated.  I have no idea why and have been digging through settings
on everything, unable to find out why.  All I can think is that the
ADT pre-launch process triggers it via a refresh or some kind of catch-
all type call in eclipse API land that I'm unaware of.

Does anyone know anything about this?  It's very annoying to have a C
builder run for a different project than the one you're working on
every time you launch the app.


ADT causing CDT to build all C projects on Android app launch??

by Jason » Sat, 28 Aug 2010 18:33:35 GMT


I am one of the elusive few running this exact setup, and I too have
been a bit annoyed by this "feature".

I did just find this:


There is a checkbox option entitled:

"Build configurations only when there are Eclipse resource changes
within the project and its references"

I tried checking this at it seemed to eliminate these extra builds.

I also tried making a small change to a C++ source file in my project
and it picked up the change when I ran the app.. so seems to work.


Sponsored Links

ADT causing CDT to build all C projects on Android app launch??

by Robert Green » Sun, 29 Aug 2010 03:36:10 GMT


Perfect!  I don't know how I missed that.  I'm glad a configurable
option was able to fix it.  I just tested and things seem to be
working correctly again.

Thanks for figuring it out!


ADT causing CDT to build all C projects on Android app launch??

by Xavier Ducrohet » Mon, 30 Aug 2010 14:21:03 GMT

 I'm glad there's an option to fix it.

build before launch. I think at the time we expected that it would
only build the launching project, not the whole workspace. We should
probably change it to not require a full workspace build. I'll have to
check if the launching project is rebuilt no matter what.



Other Threads

1. Camera Exceptions on User Phones

Basic camera app - works on most phones but some users are getting one
or other of these two exceptions :

Exception Details: takePicture failed
at android.hardware.Camera.native_takePicture(Native Method)
at android.hardware.Camera.takePicture(

Exception Details: startPreview failed
at android.hardware.Camera.startPreview(Native Method)

I am using all standard camera code in terms of when to open camera,
startpreview, stoppreview, takepicture, etc :

    public void surfaceCreated(SurfaceHolder holder) {
        mCamera =;

    public void surfaceDestroyed(SurfaceHolder holder) {
        mCamera = null;

    public void surfaceChanged(SurfaceHolder holder, int format, int
w, int h) {
        Camera.Parameters parameters = mCamera.getParameters();
        parameters.setPreviewSize(w, h);

    public boolean onKeyDown(int keyCode, KeyEvent event)


2. Setting the text color of inactive tabs


I have a view that is defined like (shortened by removing the layout

<TabHost xmlns:android=""
                <!-- Content of Tab 1 -->
                <!-- Content of Tab 2 -->

The tabs are created in the code using


How do I set the text color of inactive (not currently chosen) tabs to
a color different from the default white using an XML view definition?
I didn't find any matching property and am not sure whether to set
this property on the TabHost or the TabWidet.

Is there any way?

Thank you in advance!


3. Recognizer not present - Voice Recognition failed

4. RIL and HTC Dream

5. Build android1.5 project by ant

6. Class derived from IntentService must have default constructor

7. Application gets killed due to a timeout