Hi blindfold,

> How can I have a simple switch (in Eclipse) during
> the development cycle such that I can easily build with and without
> the OpenIntents Sensor simulator?

By default, the SensorManagerSimulator transparently passes requests
to Android's internal sensor, so if you remove the line
requiresOpenIntents() and deactivate the menus for Settings and
Connect, you have your original functionality back. (even though OI
code remains that increases your apk file size).

If you completely want to get rid of OI code, I guess there is no way
other than manually removing the lib from your project and commenting
out the two additional OI code sections in your code - which is
quickly done.

Maybe you can set up two projects in Eclipse: One is your original
project, and the second one is your test project that depends on the
first project, but additionally contains the lib. I haven't actually
tried this, and I don't know if it is worth the effort, given that one
can easily add lib + code section in a few minutes and remove them
(remove lib and comment out code) before distribution in a few seconds
without leaving any traces.

Let me know if you have further questions.

Peli

On 7 Sep., 08:31, blindfold <[EMAIL PROTECTED]> wrote:
> Thanks Peli! I may check it out if I do not fully trust my
> compass. :-)
>
> From your readme.txt:
>
> > To use this JAR file in another project:
>
> > 1) Create a "lib" folder in your project and
> >    copy openintents-lib.jar there.
>
> > 2) In the package explorer, right-click on your project, select
> >    "Properties", then "Java Build Path"/"Libraries".
>
> > 3) "Add JARs...". Select "lib/openintents-lib.jar"
>
> In view of step 1) How can I have a simple switch (in Eclipse) during
> the development cycle such that I can easily build with and without
> the OpenIntents Sensor simulator? I have to make absolutely sure that
> my release builds will not accidentally contain some trace of
> OpenIntents as used for testing.
>
> Regards
>
> The vOICe Android for Android Phoneshttp://www.seeingwithsound.com/android.htm
>
> On Sep 7, 12:52 am, Peli <[EMAIL PROTECTED]> wrote:
>
>
>
> > Just to let you know, we have updated the OpenIntents Sensor simulator
> > to work with the SDK 
> > 0.9.http://www.openintents.org/en/http://www.openintents.org/en/download
>
> > We have also modified the API demos slightly to work with the sensor
> > simulator:http://www.openintents.org/en/node/32
>
> > Sensor values that are provided by the simulator agree with the
> > conventions outlined in the documentation.
> > blindfold, this should give you the tools to test your talking
> > compass :-)
>
> > Peliwww.openintents.org- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to