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


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


Other Threads

1. Basic Questions

To install applications on android, we need the application to be in
the form of an .apk file regardless of what we use to develop it, i.e
SDK or NDK. Are there absolutely no other filetypes supported? If
there are further patches for the android oses which have been already
deployed on the phone, do we have to rebuild the image and install it
on the phone again or is it possible to install it on the phone?
Is it possible to have applications or services running on the device
which can be built along with the source code, so that it is non-
removable? I ask this because there might be some need for important
services which need to exist on the device in order to keep track of
applications or the device configuration. Is there anyway to perform a
silent installation of apps?
 And is it possible to install such applications on the phone..?

Android has already been ported to MIPS architecture as well as x86
machines. Does that mean we would still want the applications to be in
the form of an .apk file for installation?

And will all apk files no matter what it is built for (arm or mips
based) run on all android supported devices, taking into consideration
only the hardware independent functions being implemented in that

Thanks in advance.


2. android developer phone 1 firmware update issue


I want to update the firmware version of a ADP 1 handset. Currently it
version is 1.0, want to update it to 1.5. According to the HTC support
site ( I followed the
steps. I downloaded the radio image for version 1.5 from the given
link in this page, when i try to update the phone with this radio
image I found following error -

Installing from sdcard...
E:No signature (5 files)
E: Verification failed
Installation abortated.

How to solve this? While downloading there's no checksum error.


3. Bionic porting to an another OS

4. Why do all Android handsets run the same processor?

5. Invoking search by hardware key

6. How can I add genre info into artist and album list鈥

7. How to launch my app if some one clicks on email attachment?