How To Get Camera Direction Of GPS Enabled Phone
Nov 21, 2011
How to get Camera direction of GPS enabled phone?
All i found about GPS is that it just tells the location of the device, how do one get the direction where camera is pointing with GPS enabled phone?
For example, I need to see the camera api and work out which direction the camera is pointing. So that I can see the direction I'm viewing. In the other word, it is work like a compass.
View 3 Replies
Jul 12, 2010
I'm a bit new to Android but after searching on the Market, the web and this forum, I can't seem to find anything like this but I feel like it has to exist (or hopefully will soon). I'm looking for a camera application that can place the current compass direction on the image (and stamp the saved image with the direction). The tilt of the phone would be cool to have, too, but just the compass would be great. I did find an application that shows the compass direction on over top of a feed from the camera ("Reality + Compass" by Udell Enterprises).
I want something just like this, but with the ability to save the image. In case you're wondering, I'd like to use this for bettering the storm spotting community. A problem when people send in images of clouds/storms/tornadoes/etc is that you never know (1) where the picture was taken and (2) in what direction. Ideally GPS location could be added, too, but for now I just want the compass. (Other image services can handle the location part fine, like Twitter for Android/Twitpic.)
(I'm on the HTC Aria, but I can sideload apps now thanks to the new version of HTC Sync.)
View 5 Replies
View Related
Nov 20, 2009
I wanna set the ADB_ENABLED and USB_MASS_STORAGE_ENABLED option automatically in my App.
so i add below statement in my App(Activity).
---------------------- Settings.Secure.putInt(getContentResolver(), Settings.Secure.ADB_ENABLED, 0);
or
Settings.Secure.putInt(getContentResolver(), Settings.Secure.ADB_ENABLED, 1); ----------------------
and add below statement in my App(manifest).
---------------------- .... </application> <uses-permission android:name="android.permission.WRITE_SETTINGS" /> <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" /> .... ----------------------
but some exception are occured in runtime like below.
---------------------- Uncaught hander: thread main exiting due to uncaught exception. java.lang.SecurityException: Permission denial: writing to secure settings requires android.permission.WRITE_SECURE_SETTINGS ... ----------------------
How i can use ADB_ENABLED and USB_MASS_STORAGE_ENABLED in my App?
View 3 Replies
View Related
Sep 22, 2010
I want to show the direction on the screen that phone is facing.
For example:
0
|- []
|_
South --- North
In the above diagram the phone would display "North". Since the user (the stick with 0 for his head) is holding out the phone (the [] in the diagram) pointing north.
I found this example. I understand what it's doing except it seems to calculate yaw, pitch, roll, and inclination. What are those and how would I use them to simply find which way the phone is pointing?
Also this android documentation mentions X, Y, and Z axises but I don't see anywhere that says how those axises correspond to the phone? Is Z going from the bottom of the phone to the top?
View 1 Replies
View Related
Apr 27, 2010
I've decided to keep my droid and not get the incredible. I'm still within my 30 day return, but i feel the droid is and can be a better phone overall. My droid has 2.1 and basically stock. I'm looking to gain a little more speed out of my droid for right now. I'm not looking for some crazy root just one that speeds it up nicely. Can anyone point this newb in the right direction?
View 7 Replies
View Related
Oct 17, 2010
I want to check if GPS is enabled, but I dont know how to do it. i mean with a function, in android
View 2 Replies
View Related
Sep 24, 2010
I installed the driver and device manager see my phone but when I /adb devices/ it doesn't see my phone. Debugging on and mass storage enabled with card not mounted. Win7.
View 3 Replies
View Related
Jun 29, 2010
i am running captjager 1.6.2 and everything has been running swimmingly up til now. it is set to auto syn every two hours, when it starts to sync and the little loop icon appears in the notification bar it just hangs there....forever or until i cancel sync and resync manually then it will finish the sync. is there a fix for this that anyone knows of? if not i will be switching back to stock, this has become annoying and probably is killing my battery.
View 2 Replies
View Related
Nov 22, 2010
I just created a picasa account, and now when i try to upload photos on my EVO it tells me to either log in with a google account or make a new one. It will not recognize that my current google account not has picasa enabled. How in the world can I get it to recognize this? I don't want to do a hard reboot because I'm rooted and have been having alot of problems getting a ROM installed.
View 3 Replies
View Related
Aug 20, 2012
Having an issue where anytime I try to add a new contact manually for a new phone number or create it using the "create new contact" feature via an old text message by that phone number's owner, my phone automatically deletes it within seconds. This happens only when the sync settings under settings-->accounts & sync-->background information are enabled. The new contact gets deleted regardless whether I add the new contact BEFORE enabling sync or whether I add it WHILE sync is enabled.
Phone's flashed on Gingerbread.
View 5 Replies
View Related
Jun 30, 2010
I want to capture the finger movement direction on Android touch phone. If a user slides his finger in up/down/left/right direction, I want to capture this direction.
View 2 Replies
View Related
May 28, 2009
Has anyone else noticed this? It's slightly annoying. I downloaded my version of 1.5 from
https://android.clients.google.com/updates/partner/signed-kila-ota-14...
View 3 Replies
View Related
Nov 28, 2010
Every one can any body explain to me how I can get direction in Htc desire ,cause when I ask about any direction or end point always the answer is no route.
View 6 Replies
View Related
Dec 6, 2009
My camera stopped working. When I click my camera application I get the message "The application camera (process com.android.camera) has stopped unexpectedly. Please try again". It's just a blank screen?
View 3 Replies
View Related
Apr 8, 2010
I've been playing with the data given by the accelerometer,trying to work out how I can gauge a shake from front to back or side to side. This all seems straightforward enough.But I'd love to know the direction of the shake. So, if the user is shaking backwards and forwards, I want to know if the device is moving away from the user, or back towards him/her. I can't find any way of telling this.
View 6 Replies
View Related
Aug 16, 2010
I want to show the direction information in my app.Direction from one address to the another using Google maps and also wanted to set overlays at the starting address and the destination address.Is there any classes in android too do that.
View 5 Replies
View Related
Sep 13, 2010
I am creating a class extending mylocationoverlay. then, i override the draw method. is this the correct method? because after i rewrote the draw method, the map tile cannot render.
View 4 Replies
View Related
Dec 7, 2009
Scrolling on an Android phone makes sense because it's like you're physically sliding the page upwards. However, now that I'm used to doing that, when I get on my laptop and start to scroll with my touchpad, sometimes I find myself scrolling the wrong direction. On a touchpad you drag downwards to go down on the page, or to slide the page upwards. So it's backwards from the motion you would make on your phone.
View 17 Replies
View Related
Sep 17, 2010
I'm trying to create a compass for my application BUT the difference is that, instead of having a line always pointing to north, I want this line to point for a specific point. I've been trying dozens of algorithms and nothing works. I've finally found one that points me exactlly to the point I want. But it doesn't move if I change the position of the device which is my objective. Basically, what I want is that no matter the direction I'm using my device. The line always point me to the point (picLatitude,picLongitude). I understood that for the line to move, I can't use static variables. I need to use the values offered by the onSensorChanged(SensorEvent event). This are the data I have available:
event.values[0]: azimuth, rotation around the Z axis (device in relation to north, 0º) event.values[1]: pitch, rotation around the X axis event.values[2]: roll, rotation around the Y axis mLatitude: device current latitude got from GPS (variable) mLongitude: device current longitude got from GPS (variable) picLatitude: static picture latitude established previously picLongitude: static picture longitude established previously distance: distance in Km from device to the picture calculated previously
And this the formula that works correct, and gives me the correct angle. (But it doesn't use any of the Sensor Data so the line Compass doesn't move):
double dLong = picLongitude - mLongitude; double y = (Math.sin(dLong) *
Math.cos(picLatitude)); double x = (Math.cos(mLatitude) * Math.sin(picLatitude) - Math.sin(mLatitude)*Math.cos(picLatitude)*Math.cos(dLong)); double angleDegreesWrongRange = Math.abs(Math.toDegrees(Math.atan2(y, x))); float angleDegrees = (float) ((angleDegreesWrongRange+360) % 360);
myCompass.updateDirection(angleDegrees);
I got this "bearing" formula from this website: http://www.movable-type.co.uk/scripts/latlong.html. I've try adding, subtracting, the azimuth.. I've tried with the others, seriously at this point I'm just demoralized.
View 13 Replies
View Related
Jul 8, 2010
Is there an easy to know the direction of scroll (up or down for a vertical list) and the scroll velocity for ListView's?
View 2 Replies
View Related
Aug 2, 2010
Is there any way to find the direction between two locations in Android?
View 3 Replies
View Related
Oct 1, 2010
Can anyone point me in the direction of the 51920 PRL file? I recently updated the PRL to 52011, and my 3G service has been awful since then. I would like to downgrade back to the previous PRL.
View 2 Replies
View Related
Nov 3, 2010
I am wondering whether it is possible to detect voice direction in android or not? For example on nexus one using the actual mic and the noise cancellation mic or using any other method?
View 4 Replies
View Related
May 28, 2010
How do you change the direction of the optical track pad on the Desire and Legend? Has anyone else noticed that it functions the exact opposite to the touch screen? I find this annoying and would like to reverse it. Anyone know how?
View 7 Replies
View Related
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
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
Nov 18, 2009
My current app flies in a sub activity when you flick-up. Problem is, it flies in horizontally from the right. I want it to fly in vertically from the bottom to match the flick direction. I'm sure this must be an xml property somewhere, but I can't find it. Does someone have a pointer as to how to set this?
View 10 Replies
View Related
Jun 1, 2009
I am using Tablet skin for running emulator output. All the menu and list items are displayed properly e.g. Horizontally whereas Videos are being played vertically. How can I change the direction of video? Kindly reply as soon as possible.
View 2 Replies
View Related
Mar 14, 2013
i am about to travel. I would need a working offline maps with GPS/navigation service. I have tried Google offline maps but it doesn't work with "direction" so I find it kinda useless. Any offline maps/GPS service with walking direction? Navigon is the closest thing to what I want but I can't download the south america maps from play store (they say it's not available for my country). I am thinking to buy NDrive considering they use the same database (navteq).
Does NDrive have walking GPS direction (and available offline) like Navigon? If NDrive doesnt do it for me
View 1 Replies
View Related
Oct 12, 2009
How to play video in a time reversed direction? The requirement is to loop playing forward and backward repeatedly.
View 7 Replies
View Related