android camera changing sensor orientation?

by Lukasz Mosdorf » Fri, 13 Mar 2009 01:43:12 GMT


Sponsored Links
 Hi all
I am developing an application which uses a live camera preview. At
the same activity I am using camera preview and sensors
(accelerometers). After this activity is closed and entered again the
sensors are flipped. It looks like the screen orientation changes(but
it can be seen at camera-everything is OK).
Tried changing screen orientation parameters but they doesn seem to
work on the camera preview(known issue as far as I am concerned. I
have already spent some time trying to find where the problem is and I
am stuck. I unregister the sensor listener when the activity is
closed:

mSensorManager.unregisterListener(sensorsListener);

Also, in activities where camera is not used sensor orientation
doesn't change, so the problem is not necessarily in accesing sensor
data.
Any suggestions?

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Using permissions

Hi,

I'm currently reading the specs about Android's Security system and
something is not clear on my mind... Can somebody explain me ?

About the Permissions, it is possible to set four levels (Normal,
Dangerous, Signature and SignatureOrSystem)

The documentation is here :
http://developer.android.com/reference/android/R.styleable.html#AndroidManifestPermission_protectionLevel

About the "Dangerous" level, it's written : "For example, any
dangerous permissions requested by an application may be displayed to
the user and require confirmation before proceeding, or some other
approach may be taken to avoid the user automatically allowing the use
of such facilities."

What does "Some other approach may be taken..." means ? How does that
work ? Is there any example ?

Regards.

Collet Jb

2. onSignalStrengthChanged and battery life?

I have a service that runs all the time (opened connection to a BT
device). I would like to add listener for signal strength but I'm
worrying about the battery life. Listening for battery life events
seems fine to but I'm not sure about the signal changes. From
experience with other platforms I guess it could be called several
times a minute.
Since I don't have official 2.1 I don't want to perform any real test
yet. Any suggestions? Could this drain the battery or is it just me?

3. Webview shouldOverrideUrlLoading not called for https

4. Fw: [kassmadji01] Fw: [Konsultasi-Kesehatan] Pijat Ala Chandra

5. Mobile App Socialization - We Need an API

6. question on reading from socket in android ...

7. Nx1 - It's Scratch Resistant