Android :: Sensor Data Poll Mechanism
Jun 3, 2010
Per the current implementation in Sensor Manager, the SensorThread is polling data per below code, final int sensor = sensors_data_poll(values, status, timestamp); it then checks the sensor type if it is registered and processes the data further. For an application which has registered for only one sensor, still to get that particular sensor data, SensorThread has to execute for atleast N-1 loop most of the time. Can anybody provide the insight as to, why SensorThread is waiting to check the sensor type to be returned by the HAL instead of sending sensor information which is currently registered by that application. Wouldn't that increase the performance?
View 2 Replies
Sep 14, 2010
since map overlay is not activity, how do i get the sensor data so that i can draw on the map overlay? like the direction arrow.
View 7 Replies
View Related
Jul 22, 2009
Am researching a problem with compass and sensor values returned by the phone. I found this thread: http://groups.google.com/group/android-developers/browse_thread/threa. Which seems related, but it's old so I'm starting a new one. I'm getting stuck values from both the compass and orientation sensors. It was fine yesterday, but today, I'm only getting values in a limited range (e.g. compass headings from 240 - 290), no matter how I orient the device. What's even more odd is that the radians returned from the call to Sensor Manager.get Orientation(), which returns radians, is giving consistently out of range values. Anyone see this same behavior, and if so, any fixes? Here's some sample sensor data. Format is heading, pitch, roll. The first set contains raw values, the second set contains values after I've applied the orientation matrix generated by the Sensor Manager. The third set contains values after I've smoothed the data with my own algorithm.
View 4 Replies
View Related
Aug 2, 2010
Just joined the Android group. I'm having problems with the acceleration and orientation sensors.I would like to obtain sensor data (acceleration and orientation values) at regular intervals (10 milliseconds). However, the SensorEventListener doesn't allow you to do that. Does anyone have an idea of how to work around this issue? This is important as I need it to collect data for an app I'm working on.
View 2 Replies
View Related
Mar 9, 2010
I am working on a project using HTC magic which requires the data from the electronic compass, including both the accelerometer and magnetic sensor. But I find that there is a significant latency between the move of the phone and the trigger of the sensorChanged event. In other word, the acceleration and magnetic data obtained from sensor are updated about half of a second after my motion. And I have several questions about the problem as follow. Are the orientation data computed by the acceleration and magnetic data? Or are there a physical sensor for orientation? Does the latency result from the android API (using the event) or the physical limitation of the electronic compass? It is said that the model of the electronic compass is AK8976A from Asahi Kasei. Does anybody have the datasheet or know the frequency of the sampling? Any idea to improve the real-time experience?
View 1 Replies
View Related
Feb 16, 2010
I would like to continuously send/stream sensor data (GPS, acceleration, etc.) from a device to a server. What would be the best technology to do this? Is it possible to use RTSP? What else would you recommend me to use?
View 3 Replies
View Related
Nov 9, 2010
I am developing an application that read data from sensors and write those data to an XML file when you press a key. i have 2 activity one for button and another is an Activity who implements sensorEventListener. the problem is my main activity is button and couldn't get data from event listener activity. i think the listener activity is not active but when i create an intent and start activity with that intent the program stop working. the button is able to create XML file solely.so how could i read sensor data from sensors,and how to send them to XML file when the button got clicks.
View 1 Replies
View Related
Jun 7, 2010
I'm using Android 2.1 on a HTC Nexus One. I want to collect sensor data while the device is turned off.
By using android.app.Service this works well while the app is in the background but stops working when the display is turned off by the hardware button.
Is there a possibility to collect sensor data while the display is turned off?
View 3 Replies
View Related
Nov 24, 2010
I have written a TestSuite to find out how to calculate the rotation angles from the data you get in SensorEventListener.onSensorChanged(). I really hope you can complete my solution to help people who will have the same problems like me. Here is the code, i think you will understand it after reading it. Feel free to change it, the main idea was to implement several methods to send the orientation angles to the opengl view or any other target which would need it. method 1 to 4 are working, they are directly sending the rotationMatrix to the OpenGl view. method 6 works now too, but i have no explanation why the rotation has to be done y x z.. all other methods are not working or buggy and i hope someone knows to get them working. i think the best method would be method 5 if it would work, because it would be the easiest to understand but i'm not sure how efficient it is. the complete code isn't optimized so i recommend to not use it as it is in your project. Code...
View 1 Replies
View Related
Feb 8, 2010
I have a HTC Hero here, and when I tried to get the list of available sensors on the device by calling ((SensorManager) getSystemService (Context.SENSOR_SERVICE)) .getSensorList(Sensor.TYPE_ALL); I get only the following sensors: D/SensorManager( 6302): found sensor: BMA150 3-axis Accelerometer, handle=0 D/SensorManager( 6302): found sensor: AK8973 3-axis Magnetic field sensor, handle=1 D/SensorManager( 6302): found sensor: AK8973 Orientation sensor, handle=2 D/SensorManager( 6302): found sensor: AK8973 Temperature sensor, handle=3 According to the specs, there should be a light and a proximity sensor on the Hero, and I've seen it in action (the automatic screen brightness adjustment) - so at least the ambient light sensor is definitely there. My question is then, why doesn't the getSensorList return for me the light and the proximity sensors?
View 8 Replies
View Related
Nov 2, 2010
Does anyone know the difference between the orientation sensor and magnetic field sensor on Android?Since I've read that magnetometer is synonymous with digital compass I'm a little bit confused. What are they really?
View 1 Replies
View Related
Oct 30, 2009
Or it's just some virtual sensor the uses the data provided by the accelerometer and the magnetic field sensor to calculate the orientation?
View 7 Replies
View Related
Nov 18, 2009
Can some one point towards any documentation/resources/ threads that can explain how a new sensor support can be added in android sensor framework?
View 2 Replies
View Related
Feb 18, 2010
My home icon is way less responsive than the back icon which seems to be perfectly normal. Sometimes I have to "press" the home icon twice to get the "buzz" and have it move the screen. However the back icon works 99% of the time on the first press. IS there any adjustment I can make or should I bring the phone back. I have had it now for 2 weeks.
View 9 Replies
View Related
Sep 17, 2010
If I have my app fetching content from my server, what mechanism should I use on my server to ensure that its my app making the request? Is there any way that I can sign the request to using my app's signature to show its come from my app and not from a stolen version or copycat?
View 4 Replies
View Related
Oct 12, 2010
I would like to know about the 'service discovery' mechanisms supported by android - particularly, Printer Discovery. Does android provide such a discovery option? example: support for snmp broadcast? I tried out an application "PrinterShare" link:
http://www.printeranywhere.com/mobile.sdf where Printer Discovery is achieved through ipp.
View 2 Replies
View Related
Jun 3, 2010
I'm wondering how vector drawing in Android with the Shape class may resemble another vector drawing standard. Since Shape is a Drawable, and Drawables are usually defined as XML, it sounds a lot like the vector drawing commands in SVG. My question is this: Has anybody created an XSLT transformation, or other mechanism, for converting an SVG drawing description into Android Shapes?
View 3 Replies
View Related
Nov 9, 2010
What I need is to perform some network operations in background inside a service. I want them to run in a service because, as pointed out in the "developing rest client application" talk from google io, I don't want to loose the result if the activity is brought in background. What sounds quite obvious is to use an Intent Service, and get the result as a broadcast. In this way I am sure the service will die and no consume any other resources when its done, but I need to convert the actions I want to perform to intents and back. Well, I was now wondering if it makes sense to bind to the service instead, at least for getting the result. And a more general question: is the bind mechanism suitable for one shot services, or it just make sense for persistent services? What happens if I call the startService method but the service is already active? Will it start another service, or will it call the onStartCommand of the same service? I am asking this because if I use "regular" non sticky service, it could happen that I need it to perform some action and I don't know if it is already active (and I don't want to have a queue of action waiting for onServiceConnected to be called.
View 7 Replies
View Related
Oct 9, 2010
Is there any article/paper that describes the transaction mechanism, why it is needed and how it works? eg: the ActivityManagerService class..
View 2 Replies
View Related
Jul 4, 2010
I want to use SMPP for sms sending rather then standard mechanism. Can I programmatically replace mechanism of SMS sending to my own?
View 1 Replies
View Related
Sep 1, 2010
Just curious, how does every feel about the build quality of their D2? I remember with the D1 a lot of people had problems with the keyboard coming up and also a problem with the slide mechanism feeling loose when the phone was closed. Any similar problems with the D2 out there?
View 8 Replies
View Related
Oct 18, 2010
Soon enough I will be switching from Sprint to Verizon. From Samsung Moment to ??? I work at Bestbuy and VZW finally got good phones on their concession line. I get to choose between the HTC Incredible and the Motorola Droid 2. I think both are great phone manufactures.
My Pro's about the Incredible: Not bulky
LED indicator
1ghz processor
Cons:
No keyboard
Droid 2 Pros: Better looking then the Droid
Qwerty keyboard
possibly overclock-able to 1ghz
Cons:
Flat keyboard
800mhz processor
No LED indicator
View 12 Replies
View Related
Aug 11, 2010
Just out of curiosity how many people use Swype vs. Voice to Text vs. other means for text input. If I forgot a method just say it out loud.
View 4 Replies
View Related
Oct 14, 2009
Is there any options to get push mail and not poll mail. Does the application can get "imap idle" or any sms that push the message instead to poll the imap4 server each X time.
View 2 Replies
View Related
Jan 27, 2010
I need to know the signal strength of a Bluetooth connection to a remote device that I make with my Android 2.1 phone. From the SDK, I can see that I can determine the RSSI at the time I discover the remote device. But I can't see how to update that RSSI value over time.
Can someone give me a hand?
View 3 Replies
View Related
Sep 26, 2008
Does anyone know to what resolution the accelerometer in the G1 is? I read about the Google Guys and an app that recorded the phone being tossed in the air, so I figured it it might have a high degree of resolution. Have a back ground app watch for sudden massive deceleration. (i.e. the sudden massive deceleration that comes when your car hits a light poll). Now assuming that the phone survives the crash, the app would then open up and try to get a GPS fix. It could also send those GPS coordinates to someone via email or sms. In addition, the application could try and "alert you", if you cannot respond because you are uncontentious, the phone could then "call" some one, and play a prerecorded message.
"This is McKiney's phone, there may have been an antecedent, the phone is located near (reads address), I am turning on the speaker phone so you can try and talk with McKinley" The phone would then active the speaker phone so the caller could try and communicate with the phone owner. The app would also read back the address at various intervals. Of course you would not want the phone calling mom to tell her that her son was dead in a car wreak because your phone was in your gym bag when you threw it on the floor in a lost-racket-ball-game rage. So the overall concept might be flawed, but it's worth a thought.
View 2 Replies
View Related
Jun 15, 2010
are there any apps that can notify me but dont need me to set a polling interval to check for new fb posts/twitter messages? bloo seems a bit too random as it doesnt always notify me on every notification and it seems a bit too slow compared to the official app which i like.
View 2 Replies
View Related
Jul 6, 2010
I rooted my OTA updated phone last night and its running the eng rooted ROM (very downgraded). When I get home tonight I'm going to put a new ROM up.
What do you think is the best? I'm looking for something for a beginner that has a lot of functionality (I'd like 4G, cameras, etc).
View 9 Replies
View Related
Jul 12, 2010
I thought it would be fun to see what people think will happen first.
View 1 Replies
View Related
Mar 20, 2009
We are workin on a project, in which we need to provide the facility of chatting betwn users, for that i need to poll the server countiniously to recieve/send the chat msgs.Does anybody know how to do it.
View 2 Replies
View Related