General :: How To Determine Android Compass Headings

Jul 25, 2012

I have seen applications like gpsstatus which have compass and determines whether the device is heading north south etc. How can i determine the heading of my device?

General :: how to determine android compass headings


Android :: Adapter With Section Headings

Nov 19, 2010

I have a custom adapter to display a list of items with section headings. I've looked at Jeff Sharkey's SeparatedListAdapter and CommonsWare's MergeAdapter as examples of how to achieve this, and I now have a solution which works by providing a separate adapter for the content of each section. This creates a big performance problem, though. In my case, there are potentially thousands of items in the list, each with an associated date, and I want to use the date as section heading for all the items with that date. So, without section headings, I'd have a single Cursor which returns the items sorted by date. Nice and easy. With section headings, I'm currently doing this: One Cursor to select all distinct dates in the dataset. For each distinct date, a separate Cursor to return the items matching that date. Pour the dates (section headings) and separate SimpleCursorAdapters for each date's items, into my custom adapter.

View 1 Replies View Related

Android :: Column Headings In TableLayout

Aug 28, 2010

I'd like to have column headings in a TableLayout and I'd like those headings to remain visible when the table is scrolled vertically. One option is to create a separate TableLayout just for the column headings but it's a little complicated keeping the column widths consistent between the two tables.

View 2 Replies View Related

Android :: Show Cursor Data In A Listview With Subsection Headings

Feb 3, 2010

I have not found an example yet with a solution to the following task.

I have a SQLite database with two tables- BOOK and AUTHOR. I execute a query on the DB that uses a join and results in a cursor that looks like this. code...

New authors and books can be added to the database at any time, and I also need the user to be able to remove books, hence the [ ] checkboxes.

So i have two row layouts, row_author.xml & row_book.xml. I detect when I need to show a row_author subheading by seeing when the current author has changed compared to the previous row. But I have realized that the rendering of an Author Row will then move the cursor forward one row and jump over their first book.

Can anyone suggest a good approach to presenting data like this? Is there a much better way to do this?

View 2 Replies View Related

General :: Any Way To Determine SoC In Unknown Android Device?

Mar 26, 2013

When I get handed a new and previously unknown Android device (typically from a minor player), is there a way to figure out which components it is made of, such as the SoC, the flash chip, the RAM type etc. (Assuming noone else has posted the info of cause)?

In other words are there any tools (other than a screwdriver) for finding this out directly from the device, preferably without rooting (as some of this info may be needed to pick a rooting method...)?

View 2 Replies View Related

General :: How To Determine Exact Version Of Faked Android OS

Oct 22, 2013

I just bought a new new Android smartphone, and electronically and mechanically, it works very well, and gives a nice appearance. It was sold as having Android 4.1.1, and About Phone -> Android version displays 4.1.2. So in this version range, we are talking about Jelly Bean, right?

Software version in the 'About Phone' begins with, '6820_2.3.5_' but whether or not this identifies the OS version, or means something else ...

I'd like to know if there's any way of telling exactly which version of Gingerbread my phone is running? This is useful in deciding which apps should or should not, be installed.

The phone has been rooted, has busybox and a terminal application installed, how to identify the OS that requires this capability.

View 2 Replies View Related

General :: How To Determine ROM / Firmware Running On Android Phone

Nov 8, 2012

what is the way to determine what ROM / firmware is running on my Android phone? And what is the best way to determine what upgrades are available for it?

I have a Samsung SIII that is parallel imported. Looking at the About Device info, it shows:

Model number = GT-I9300
Android version = 4.1.1
Baseband version = I9300XXLH1
Kernel Version =
3.0.31-41218
se.infra@SEP-71 #1
SMP PREEMPT Tue Aug 14 01:19:41 KST 2012
Build number = JR003C

View 4 Replies View Related

General :: How To Determine What Is Keeping Android From Deep Sleep

Jun 5, 2012

I have an HTC Rezound running Android 4.0.1, and I notice that it very rarely enters sleep mode, even after the screen has been off for a very long period of time.

Is there any way I can determine which apps are keeping the phone from entering sleep mode? ..or which app is waking it up constantly, whichever the case may actually be?

I have tried doing a logcat and just let it run for a while after turning the screen off, but I'm not quite sure what to look for in the results..

View 2 Replies View Related

General :: What Files Does Android Use To Determine Network Location

Nov 29, 2012

having problems with my phone not showing the right location in google maps and other apps, this only happens on the mobile network really and in new areas i goto. It always fixes to one location i have never been to,

What files can i change or check for errors ? i have replaced the network location apk in the system/app directory with one that worked on my old phone, should i run and install this apk ?

View 3 Replies View Related

General :: Determine Why All Of Sudden Battery Is Losing?

Nov 14, 2012

What's the best way to determine why all of a sudden my battery is losing it's charge more quickly than normal? I checked battery usage in settings and everything seems reasonable. I can't think of a newly installed app that might be causing it. (HTC Rezound, ICS) ADR6425LVW

View 2 Replies View Related

General :: Can Tasker Determine If Media Is Playing?

Dec 17, 2012

I'd like to have Tasker read incoming texts to me while in the car but pause and playing media first. I have a profile setup to trigger the task and everything work, except the part about pausing the media. As it is now it just read the text over the top of the media and neither are understandable.

I've searched and I can't seem to find a reliable way to determine if media is playing, pause it, then play it again after the text is read. I'm familiar with %MTRACK, but that only works with some players (none of which I use). I typically use PlayerPro and BeyondPod.

View 2 Replies View Related

General :: How Do Apps Determine If Device Is Rooted / Modified

Dec 18, 2012

I'm asking this because HBO Nordic which recently became available in Scandinavia won't allow me to use my rooted ASUS TF101 for streaming. The HBO Nordic app says "Service is not available on this device because it has been modified."

I'm thinking one of two options might work:

1. Revoke one or more permissions
2. Modify build.prop

Permissions list can be seen here: [URL] .....

I should add that HBO Nordic works on my Galaxy Nexus which is currently unrooted but has an unlocked bootloader.

View 6 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

Android :: Google Skymap Reversed Compass?

Nov 2, 2009

I just installed google sky map and started it up all excited and I just don't get it. I have searched this forum and done google searches and no-one seems to have my issue so I think its something I am not getting but I cant see what it is. I fire up the app and it looks good.. but... the map on the screen goes in the opposite direction. As I rotate left the stars on the screen move left and as I rotate right the move right. up and down movements are fine.

When I point north or south it is correct but as I rotate the horizon says east when I point it west and west when I point it east.? I have recalibrated my compass.. When I run the compass app it works correctly.. even google maps in street view works correctly. It is only google sky map that seems to have reversed east and west. Has anyone else seen this? Is it just me being dumb?

View 4 Replies View Related

Android :: Create Aircraft Mounted Liked Compass?

Oct 31, 2010

I want to create a non-generic compass that uses rotating directions instead of a rotating needle as in the conventional compass. The drawing is like the illustration below..................

View 14 Replies View Related

Android :: Implement The Compass Function To Application

Jun 5, 2009

How can I implement the Compass function having 2 geopoints (start and destination)?

View 10 Replies View Related

Android :: Way To Get Bearing To Update Using Hardware Compass / Not?

Jun 4, 2010

I can't find much information out there on Android's hardware compass. I keep trying to setup my criteria to force Android to use the hardware compass. Basically my problem is I want the bearing to update even while the device is stationary. From my understanding the GPS will only update your bearing when your moving. I'd like bearing to update regardless if your moving or not. I've tried tricking the device in to thinking it's moving by setting the speed at a constant 10 but the bearing returns 0.0 always. My device for testing (currently) is a HTC tattoo. It has a compass so that's not the problem. So my question is, is there a way to get the bearing to update using hardware compass or not? regardless if your moving or not?

View 1 Replies View Related

Android :: Finding Direction Using Compass Interface

Jan 11, 2010

I need to know if there is an interface to access the direction in which the phone is pointing.

View 2 Replies View Related

Android :: Compass Pointing Direction Other Than North

Sep 16, 2010

I'm trying to implement something that I don't even know if it's possible. So I have this class which implements a SensorEventListener like this:
private SensorEventListener mySensorEventListener = new SensorEventListener(){
@Override public void onAccuracyChanged(Sensor sensor, int accuracy) {
} @Override public void onSensorChanged(SensorEvent event) {
myCompass.updateDirection((float)event.values[0]); } };

And a class that handles the way the compass looks like this:
public static class compassLook extends View {
private Paint paintPointer = new Paint(Paint.ANTI_ALIAS_FLAG);
private Paint paintCircle = new Paint(Paint.ANTI_ALIAS_FLAG);
private Paint paintLeters = new Paint(Paint.ANTI_ALIAS_FLAG);
private boolean firstDraw; private float direction = 0 ;
public compassLook(Context context) { super(context); init();
} public compassLook(Context context, AttributeSet attrs) { super(context, attrs); init();
} public compassLook(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle); init(); } private void init(){
paintPointer.setStyle(Paint.Style.STROKE); paintPointer.setStrokeWidth(3);
paintPointer.setColor(Color.argb(255, 209, 114, 2)); paintCircle.setStyle(Paint.Style.STROKE);
paintCircle.setStrokeWidth(2); paintCircle.setColor(Color.argb(150, 255, 255, 255));
paintLeters.setStyle(Paint.Style.STROKE); paintLeters.setStrokeWidth(1);
paintLeters.setColor(Color.argb(230, 255, 255, 255)); paintLeters.setTextSize(12);
firstDraw = true; } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { setMeasuredDimension(MeasureSpec.getSize(widthMeasureSpec),
MeasureSpec.getSize(heightMeasureSpec)); } @Override protected void onDraw(Canvas canvas) {
int cxCompass = (getMeasuredWidth()/2); int cyCompass = (getMeasuredHeight()/2);
float radiusCompass; if(cxCompass > cyCompass){ radiusCompass = (float) (cyCompass * 0.9);
} else{ radiusCompass = (float) (cxCompass * 0.9);}
canvas.drawCircle(cxCompass-50, cyCompass, radiusCompass, paintCircle);
if(!firstDraw){ // Desenho da linha que aponta canvas.drawLine(cxCompass-50, cyCompass,
(float)(cxCompass-50 + radiusCompass * Math.sin((double)(- direction) * 3.14/180)),
(float)(cyCompass - radiusCompass * Math.cos((double)(-direction) * 3.14/180)),
paintPointer); double mLatitude = (mLocation.getLatitude() / 1E6);
// I get this value from a LM request double mLongitude = (mLocation.getLongitude() / 1E6);
// I get this value from a LM request double picLatitude= Double.parseDouble(picLatitudeString);
// I get this value from a bundle double picLongitude = Double.parseDouble(picLongitudeString);
// I get this value from a bundle float direction = (float)
Math.toDegrees(Math.atan2(picLongitude- mLongitude, picLatitude-mLatitude));
float distancia = (float) (Math.sqrt(Math.pow(mLatitude- picLatitude,
2) + Math.pow(mLongitude-picLongitude,2)))/2;
//Desenho do texto que indica a distancia
canvas.drawText(String.valueOf(distancia) + "Km", cxCompass-30,
cyCompass+20, paintLeters); } } public void updateDirection(float dir)
{ firstDraw = false; direction = dir; invalidate(); } }

View 5 Replies View Related

Android :: Not Accurate - Build Compass For My Application

May 4, 2010

I need to build compass for my application.

From reading the documentation it seems there are two reasonable ways of doing this:

Sensor.TYPE_ORIENTATION method: This is the easy way of doing it. The problem with this is it is not accurate. When I compare my reading with Snaptic Compass it is about 10-15 degress off which for my purposes is unacceptable.

Sensor.TYPE_ACCELEROMETER, Sensor.TYPE_MAGNETIC_FIELD and getRotationMatrix() in conjunction with remapCoordinateSystem() and getOrientation() method: The documentation says this "is usually more accurate". The problem is regardless of the delay I register with listener the compass goes crazy even when the device is stationary on flat surface.

View 2 Replies View Related

Android :: Accuracy Of Sensors Such As Electronic Compass

Mar 19, 2009

I am now beginning an app which will use the compass and tilt sensors to determine a persons heading and line of sight. Can I assume the sensors on devices such as the G1 are fairly accurate or can I expect to run into problems such as the compass being 5-10 degress off etc?

View 4 Replies View Related

Android :: Market Filtering For Accelerometer Or Compass?

Sep 4, 2010

I just read the developer blog post about non-phone Android devices such as tablets and GoogleTV - http://android-developers.blogspot.com/2010/09/brace-for-future.html.

I'm writing an accelerometer-based game and would like to filter for devices that have an accelerometer (or orientation sensor). Is there a way to do that? It would also be useful to filter for devices with a compass or GPS receiver.

View 2 Replies View Related

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?

View 5 Replies View Related

Android :: Tutorial To Create A Compass In Droid App?

Nov 18, 2009

I cannot find any tutorial on the web. How can I do it in a simple way?

View 1 Replies View Related

Android :: Practice For Obtaining Compass Reading?

Aug 18, 2010

Now that SENSOR_ORIENTATION is deprecated, what's the best practice for obtaining compass reading? The old way was so simple.

View 1 Replies View Related







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