As has been posted many times, Java does not have a preprocessor...  I see
no reason why Android would include one.

Would it be useful in certain situations? Yes, I think it would be... For me
I found that it would have been very useful when I decided to expand my apps
to be on both the Android Market and the Amazon Appstore.

But I got around that by essentially creating my own mini "preprocessor"
class.  I had a flag in that class that determined whether I was doing an
Amazon build or an Android Market build.  Anything that changed based on
that flag I put into a method on the preprocessor class.  That way all of my
if statements and logic for the different builds were all in one place and
the rest of my code didn't have to change.

Granted, it is not truly the same as a preprocessor but the effect is
more-or-less the same.

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Wed, Oct 19, 2011 at 11:39 AM, sblantipodi
<[email protected]>wrote:

> hey kris relax no one would be aggressive with you but
> if you are so good in answering in this thread please post something
> useful.
>
>
> On Oct 19, 7:21 pm, Kristopher Micinski <[email protected]>
> wrote:
> > On Wed, Oct 19, 2011 at 1:06 PM, sblantipodi
> >
> > <[email protected]> wrote:
> > > the eclipse plugin is written by google team, so they should implement
> > > a preprocessor instead of leaving the job to an external plugin.
> >
> > > preprocessor is necessary to big apps that needs to run on every kind
> > > of device,
> > > for every kind of market and for blackberry android.
> > > if you don't use preprocessor means that you don't need it since your
> > > apps
> > > don't run on many market and on many device :)
> >
> > I assume that your ":)"s are a passive aggressive insult about people
> > who don't use preprocessors in their apps...  But I can think of a
> > number of apps that don't use a preprocessor.
> >
> > A preprocessor is a separate program, how would this fit into the
> > eclipse plugin? Along with this, the development tools are completely
> > separate from the Android platform, so why would Ice Cream Sandwich
> > have anything to do this?
> >
> > If you want to use a preprocessor, you can use a java preprocessor and
> > include it as an ant task.  If you have one you would like to see in
> > the development tools, why aren't you working on integrating an open
> > source one with the Android development tools?
> >
> > Kris
>
> --
> 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
>

-- 
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

Reply via email to