Android :: Best Phone Orientation For Compass Readings?

Dec 26, 2009

I've noticed that I get a slightly different reading from the compass depending on how I hold the phone. If I hold it vertically, its different than when I hold it horizontal (ie parallel to a table or floor). Does anyone know the most accurate way to hold the phone for the compass?

Android :: Best phone orientation for compass readings?


Android :: Permission Do I Have To Add To Manifest To Get Gps Sensor Readings On Phone?

Mar 11, 2010

Which permission needs my application to get access to the location of the user on Android?

View 1 Replies View Related

Android :: Removing G Factor From Accelerometer Readings?

Jul 31, 2010

removing the g factor from accelerometer readings. I am using SensorEventListener with onSensorChanged() method for getting Sensor.TYPE_ACCELEROMETER data. I need only pure acceleration values in all directions. So at any state if the device is stable (or in constant speed), it should give (0.0,0.0,0.0) roughly.
Currently, depending on its pitch and roll, it gives me variable output depending on the g forces acting on each axis. I hope there is some formula to remove this, as I also get orientation values (pitch and roll) from Sensor.TYPE_ORIENTATION listener. I had used some but didn't work.

View 1 Replies View Related

Android :: Converting Accelerometer Readings To Degrees

Apr 20, 2009

Does anyone know how to convert the accelerometer readings from g's to degrees?For example, if I want to use the x-axis readings and measure the tilt of the phone, flat would be 0g = 0 degrees and a 90 degree tilt to the right would be 1g (9.80665 m/sec^2).I can't come up with a formula for say 20 degrees or 45 degrees. Any help would be greatly appreciated.

View 2 Replies View Related

Android :: Calibration With The Environment May Improve The Readings?

Jun 9, 2009

Reading the sensor API (http://developer.android.com/reference/android/ hardware/SensorManager.html) The section about ACCURACY speak about calibration:

"calibration with the environment is needed"

How do it calibrate?! Is this software calibration? Phone specific calibration??

I don't see any methods to calibrate.

Using the HTC Magic the compass often give me crazy values like if I was on the magnetic pole. I feel pretty scared and hide under a tinfoil hat just in case...

So any url, doc or explanation!

View 9 Replies View Related

HTC Droid Eris :: Compass - Always Points To The Right Of Phone

Apr 6, 2010

I noticed when i first installed the app on my eris, it worked great. since then, I have to calibrate it every time, and it always points to the right of the phone until it does whatever it does.....

View 10 Replies View Related

Motorola Droid :: DGT Compass - Need Phone Tester

Dec 27, 2009

I've recently published a new release of my compass "DGT Compass" but unfortunately. I'm receiving some negative feedback from Droid owners. Not very useful those feedbacks just saying "it doesn't work on Droid!". I would appreciate more details from some Droid tester.

View 7 Replies View Related

Sprint HTC Hero :: Phone Giving Compass Out Of Calibration?

Nov 1, 2009

I have been searching everywhere (except the right place maybe ) for some notes on the proper method of CALIBRATING the Hero compass. I have found much commentary about the compass, but no specific talk about how to actually calibrate it. I am trying to use the GPS Status application (recently updated), and it keeps giving me "Compass out of calibration - see FAQs" message. I have looked at every FAQ I can find and searched the forums and no joy. Could anyone please point me where I can find some instructions about calibrating the compass?

View 16 Replies View Related

Motorola Droid X :: Calibrating Compass Jacked My Phone

Nov 5, 2010

I've never been able to calibrate my compass since day one for some reason, but the easily rotating screens were driving me nuts and getting annoying. I was messing around yesterday, and tried hitting the Calibrate button like 50 times FAST AS HELL and I got the compass to appear! Doing it the normal way didn't do anything, as the phone would just repaint the screen with the fake phone showing you how to rotate it.After a few rotations, it turned green. I was like, wow, that was easy...until I tested it. My phone now refused to go to landscape at all!! So I tried it again. After another 50 taps, I went throught the same motions, got the red compass folks were complaining about in another thread and tried the solution that worked for some by deleting the market Compass app I got months ago. I went back to settings and...nope, still needs 50 taps and still got a red compass. I did a reboot and a battery pull, and same result. I can no longer get into landscape mode, EVER!!! The only way to get into landscape is if I am playing a game or something, but rotating the phone for web surfing or texting just doesn't work.

View 9 Replies View Related

Sony Ericsson Xperia X10 :: Download Compass On Phone?

Oct 8, 2010

Can any one please tell me how do I download compass on my xperia mini?

View 1 Replies View Related

Motorola Droid :: Compass In Phone Is Not Only Off / But Virtually Broken

Jan 13, 2010

i've been a (mostly) happy user of the milestone, as it is called over here, but in the past few days i noticed a problem.the compass in the phone is not only off, but virtually broken. it detects a constant reading "to the upper left", which simply overrides the earth's magnetic field. so, no matter how i turn the phone, north is always between one and two o'clock. by using the amazin tricorder app, i was able to find out that the magnitude of the reading differs significantly depending on the orientation of the phone, reaching almost "100" in the max, and about "65" when the phone is 18o turned. so i cleverly deduced that the magnetic flux sensors are still somehow active; but still, they turn out to be useless to me if they show a constant reading no matter.

View 6 Replies View Related

Android :: Orientation Change - Dialog Above Activity With Fixed Orientation

May 14, 2009

I have created an activity for my game which handles all orientation changes by itself and has a fixed "portrait" layout. Actually it uses the accelerometer and is rendered using 2D canvas methods. If the level has been completed I show up a highscore dialog in which the user can enter his name. The dialog is floating above the underlying level screen which gets blurred out nicely. This generally works.

Problem is that the dialog does not get rotated if the orientation of the phone changes. So even if the keyboard is exposed the dialog is shown in portrait mode instead of landscape. I have tried to use an activity with dialog theme instead but the behavior didn't change. After several tries it seems that I have found the reason for this: Once there's an activity with fixed orientation in the activity stack then all subsequent activities keep this orientation, too. They will not react on orientation changes anymore (e.g. if the keyboard gets exposed).

After upgrading to 1.5 SDK the described behavior changed a little bit. Now at subactivities indead react on orientation changes like expected. However, the need to have an opaque background! That means that neither dialogs nor activities with dialog theme will work. Those will stick with the orientation of the underlaying activity. So my workaround is to first start a sub-activity with an opaque black background. This activity then shows my highscore dialog on top. It looks quite okay but I wonder if there's a better solution? Is it possible to show a dialog above a fixed portrait or landscape activity which automatically adapts to orientation changes?

View 3 Replies View Related

Android :: Can Force A Specific Layout Orientation - But Have An Opposite Keyboard Orientation Android

Aug 19, 2010

I understand how to force a specific orientation per activity in the android manifest. I would like to know if it is possible to allow the keyboard to change orientation even though the activity(the layout really) must remain unchanged.

View 1 Replies View Related

Android :: Using Orientation Sensor To Get 360° Orientation

Jul 17, 2009

I have a problem with working with the ORIENTATION values of the SensorManager. I would like to have some kind of 360°-value which directly shows me if the phone is in normal portrait (0°), landscape, portrait turned around (180°) or anything in between. So I could have, for example, an arrow that points to the floor (like gravity would do with a plummet) all the time, no matter how I tilt (sidewards) the phone. I thought this would be easy, but I'm pretty confused at the moment.

First of all, the X value of the orientation-array seems to correspondent with how I turn the phone, BUT: if it's completely uprightly standing, this value is about 60° ... why not 0° (or 90°, 180°, 270°), as I would expect?

Second: The value resets if I turn the phone and Android automatically changes screen orientation. So both in Portrait and in Landscape mode it will be sth. like 60° when the phone is in a 0° angel in real world. I set "android:screenOrientation" to "landscape" but this doesn't help anything :/

I want the app NOT to change orientation when I turn the phone, but I want it to get a continuous orientation value when I tilt the phone.

View 4 Replies View Related

Android :: Google Sky Map A Little Off / Orientation Detection Of Phone?

Jul 1, 2010

I've been trying out Google Sky Map and it seems a bit off. I hold my phone in landscape mode and point it at the moon as if I were going to take a picture of it. The application shows the moon about 5-10 degrees off from where it actually is. Is this just the accuracy of the compass and orientation detection of the phone?

View 9 Replies View Related

Android :: How To Draw Canvas In Respect Of Phone Orientation?

Oct 11, 2010

There is no problem with portrait mode but when i try my app on landscape mode it doesn't look how it should.What is general approach to solve this problem.My first idea is replacing X and Y places.If i am on the right track how should i do this ? Should i use an if statement at the beginning of the onDraw() function and write entire same code twice (one for x,y and other is for y,x) ?

View 2 Replies View Related

Android :: Check Orientation On Droid Phone In Landscape / Portrait?

May 8, 2010

How can I check if the Android phone is in Landscape or Portrait?

View 3 Replies View Related

Android :: Void Activity Destruction (orientation Or During Incoming Phone Call)

Aug 3, 2009

I have a requirement where I have to read/parse some data from the server(using HTTPConnection) and then display it on to the screen. To avoid ANR issue I used AsyncTask to perform the above. Now in order to avoid application crash in case the activity gets destroyed(either by OS or if orientation changes or say on any incoming call-->where user stays on the phone for long and for some reason OS destroys/recreates the activity). Currently, I hols the reference of AsyncTask in my activity and then provide a callback(the activity itself) to AsyncTask so that I can pos back message to activity(like closing progress dialog box).In order to avoid memory leaks on onPause I nullify this activity reference in AsyncTask.Before onPause I save the AsyncTask instance using onSaveInstanceState method but I have to use putSerializable for that. I have read on the forums that serialization method is slow, so my question is should I use parcelable approach(and whether the converting AsyncTask to parcelable will be same as creating any other object parcelable). or both these approaches are totally wrong i.e...............

View 10 Replies View Related

Android :: Change Screen Orientation When Call Is Ongoing / Phone Process Will Crash

Jun 15, 2009

I found if change screen orientation continouously when a call is ongoing, that is, portrait -> landscape -> portrait- >landscape.

View 3 Replies View Related

HTC Desire :: Change Orientation On Phone

Jul 11, 2010

I have seen online screenshots where applications like contacts etc either appear on full screen, or on a line like this.

At the moment I can only have them on full screen as they come from the people widget...

View 1 Replies View Related

HTC Hero :: Manually Switch Orientation Of Phone

Feb 5, 2010

I like to read on my phone at night in my bed, so even though I am holding the phone sideways I do not want the orientation to change. In phones I had in the past you can assign a button to change the orientation. Is this possible on the hero?

View 2 Replies View Related

HTC Droid Eris :: Why Does Phone Change Orientation In Certain Apps?

Dec 18, 2009

So why does my phone change orientation in certain apps (email particularly) even though I don't rotate the phone? Is there a setting for this I just cannot find?

View 7 Replies View Related

Android :: Lock Phone Orientation In Android To Prevent Landscape Mode

Sep 4, 2010

Is this possible to do? Landscape mode distorts the background image, and therefore I would like to lock orientation to vertical on phones with accelerometers.

View 2 Replies View Related

Android :: Download - Compass App

Jan 7, 2010

I have the HTC hero right now with the Android 1.5 and was wondering if there is a compass app that i can download which is similar to the iPhone 3GS?

View 4 Replies View Related

Android :: Compass Still Crashing

Aug 12, 2009

I've modified the code a bit since the last time, and now it crashes at runtime. I've got the log-cat and code below. how to go about debugging.

CODE:..................

View 2 Replies View Related

Android :: Map With Compass Like Indicator

Aug 21, 2009

I'm trying to make a map with showing my location with an arrow that point to the way we are facing. the arraw image is something like this:

^ 0

Always pointing north, so i rotate it with sensor orientation event ( image.rotate(values[0]) )

I would like to ask if google map's north is always on 12 o'clock? because i try sometimes the arrow point to wrong direction. how to accurately make this thing works?

View 2 Replies View Related

Android :: Getting Compass Values And Use It On Map Overlay

Sep 13, 2010

I have a marker on the map using an Overlay. I also have access to the compass sensor which I'm able to show a textView with the orientation values (0 to 359). How can I apply this values to the marker? (which is a drawable). I already have a MAtrix created but when I insert the orientation value gives me an error, here it is:

GeoPoint geopoint = new GeoPoint((int) (newLocation.getLatitude() * 1E6),
(int) (newLocation.getLongitude() * 1E6)); Paint paint = new Paint();
Point pt = new Point(); mapView.getProjection().toPixels(geopoint, pt);
Bitmap bmp = BitmapFactory.decodeResource(getResources(),R.drawable.user2);
Matrix matrix = new Matrix(); matrix.postTranslate(-25, -25);
matrix.postRotate(direction); matrix.postTranslate(pt.x, pt.y);
paint.setAntiAlias(true); paint.setFilterBitmap(true);
int width = bmp.getWidth(); int height = bmp.getHeight();
Bitmap changedBitmap = Bitmap.createBitmap(bmp, 0, 0, width, height, matrix, true);
BitmapDrawable icon = new BitmapDrawable(changedBitmap);
icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight());
userOverlay useroverlay = new userOverlay(icon); useroverlay.addItem(item);
mapView.getOverlays().add(useroverlay);

I used the value retrieved from the sensor on "direction" but it doesn't work.

View 5 Replies View Related

Android :: Bad Compass And Sensor Data

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

Android :: Want To Test Compass App On Emulator

Mar 4, 2010

I want to test a compass app on the emulator. Is this possible or do i have to use a real device. Also I do not want to use gps.

View 2 Replies View Related

Samsung Fascinate :: Phone Dims - Dialer Apps Menu Landscape Orientation?

Nov 23, 2010

When using Google Maps the phone dims out, how can I stop this? and one other question, can the dialer and apps menu go to the landscape orientation?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved