Using Pre-Processors/Macros in Eclipse and ADT plugin

by sriram » Sat, 05 Dec 2009 02:44:33 GMT

Sponsored Links
 Hi All,

Trying to build an application using eclipse with ADT plugin on
Android. I have quite a few areas which need customization. In C++ we
used to the do the macro/pre-processor way. Using ant scripts I am
able to achieve this nicely. However for debugging purposes and to
leverage the IDE during development, am interested to know if this is
possible to do it using eclipse for android.

Is this possible at all??


Other Threads

1. Testing Licensing Service


I just implemented the Android Market Licensing Service. I did every
thing as documented and used the StrictPolicy from the samples. I
already published it and it works. People who buyed the app can use
it. But here is my problem. None of my test accounts gets the static
answer i configured from the server. Only my puplisher account works.
According to the logs no error occurs with test accounts. Has anybody
an idea what I could have missed?


2. Problem with OnGlobalLayout

In my code i m trying to find the height the textview occupies..
I used OnGlobalLayout for that ..
here is my code

public void onCreate(Bundle savedInstanceState)
t = new TextView(this);
ViewTreeObserver vto = t.getViewTreeObserver();
t.setText("This is to test the text\n Some Text \n Another ..");
t.append("\nafter something");
Toast.makeText(this, " The value at num =

public void onGlobalLayout() {    num=t.getHeight();
Toast.makeText(this, "Hellooo !! height is "+num,


3. Android Unconference before Google IO?

4. ListView with dynamic row view

5. getiing network provider coverage status Android

6. SimpleAdapter with a custom ViewBinder

7. Problem Loading Images on Android Emulator. Please Help!!!!