Native code is being called successfully but not executed properly

by Dianne Hackborn » Thu, 10 Sep 2009 14:04:23 GMT


Sponsored Links
 Hi, you are more likely to get help on android-ndk.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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



Other Threads

1. Inertial Sensor on HTC Hero

Hello,

I am trying to develop an indoor inertial navigation system on the HTC
hero with the built-in accelerometer and digital compass.

As far as I know about hardware, the accelerometer chip is the Bosch
Sensortec's 3-axis BMA150 and the digital compass is Asahi Kasei's
AK8973 (similar to iPhone). I am not sure about the accuracy of each
sensor but the digital compass seems to function fairly well in the
iPhone.

What I am doing is getting accelerometer samples and magnetic field
samples at the SENSOR_DELAY_FASTEST (seems to me around 10 - 20 ms per
sample)

Then I creates a threshold of 1 m/s^2 for every output of
accelerometer to filter out which sample is gravity (9.807f). The same
is applied for output from the digital compass (with threshold of  5
microtesla). I intended to use this filter to provide the correct
gravity and geomagnetic field for the SensorManager.getRotationMatrix
to work correctly (I am not sure if this method would actual provide
better result).

get the heading (north) and convert the output from the accelerometer
from the device coordination system to the Earth's coordination system
by multiplying to the rotation matrix.

****** My question ******
The result I am getting is completely not usable. It seems that the
heading is very inaccurate thus making the rotation matrix
inaccurate.
Even when I applied kalman filter, the result is still far from being
usable.
I wonder if anyone has approached this problem before and if there is
some better way to do it.

Thanks,
lvmh

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

2. API responsable to make transfert dwonlaod ,upload with ftp ou 3G protocol

hi,
please someone know wich APIs it's are responsable to transfer data on
ftp ,download or upload.
I want use this APIs to create application .
any suggestions are welcome.
thank you for your help.

Best regards,


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

3. Trajectory Calculator

4. EditText`s hint disappeared when "Input Type" is set.

5. does Android support displaying HTML, javascript, etc. within an application?

6. Download manager & Multi Tasking

7. Android Wiki