Android :: My Location Overlay - Customizing Compass Position On Screen?

Nov 3, 2010

I am using these three lines to add a compass on the MapView: mMyLocationOverlay = new MyLocationOverlay (this,mapView);mMyLocationOverlay. enableCompass(); mapView.getOverlays() .add(mMyLocation Overlay) ; However the default position of the compass showing on the screen is not too good for my apps, and I want to move it to somewhere else. Anyone knows how I can achieve that?

Android :: My Location Overlay - customizing compass position on screen?


Android :: How Can I Replace Compass Image Of Location Overlay?

Aug 24, 2010

I want to use my image to replace the Compass image of MyLocationOverlay, how can i implement?

View 1 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 :: Camera Application With Compass Direction Overlay?

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

Android :: Override Enable Location In My Location Overlay

Mar 4, 2010

I want to override the method enableMyLocation() in MyLocationOverlay class, in order to implement my own positioning algorithm to get latitude/longitude, and then plot them onto a MapView. I figured out how to do that, but now I'm stuck because I dont know what Canvas to pass when I call the method drawMyLocation().
Here is the MyLocationOverlay class

View 4 Replies View Related

Sprint HTC Hero :: Corrupt Compass Driver - Stays Locked In One Position?

Dec 5, 2009

I'm pretty sure this is not a hardware issue...

If I hard-reset my phone, the compass will work flawlessly for about 3-5 days. After that it fails to function. It stays locked in one position and if it does move it is VERY sparatic.

This has been tested with multiple compass apps as well as any of the "augmented" reality apps (sky maps, Layer, etc)

This has happened with both COMPLETELY factory un-rooted phone as well as now that I'm rooted running Madoco Unofficial 1.2c.

If I do a hard reset it works fine. Its not any particular app doing it either. I've tested that theory.

View 1 Replies View Related

Android :: Map Overlay Labels - Display Name Of Location

Mar 15, 2010

I am building a MapView and I want my custom overlay items to display the name of the location they are marking when the user taps them, like the Android Maps app. I setup the onTap listener and the floating TextView to hold the location name. I still need to set it up so that it redraws the label when the user moves the map, etc. Anyway, I am wondering if I am reinventing the wheel here. Is there a built-in method I am unaware of? I would think that most implementations of MapView have labels. For reference, my implementation so far: in map xml:

<LinearLayout android:id="@+id/mapBubbleWrap" android:layout_width="wrap_content"
andoid:layout_height="wrap_content" android:layout_alignParentTop="true">
<TextView android:id="@+id/mapBubble" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:visibility="gone"
android:background="#ffffff" android:textColor="#ff0000"/>
</LinearLayout>

in my extended ItemizedOverlay:
public boolean onTap(int index) { this.setFocus( mOverlays.get(index) ); return true; }
in my Activity onFocus:
public void onFocusChanged( ItemizedOverlay overlay, OverlayItem item ) {
if( item != null) { mapBubble.setText(item.getTitle());
Point newPoint = mapView.getProjection().toPixels(item.getPoint(), null);
mapBubbleWrap.setPadding(newPoint.x, newPoint.y-10, 0, 0);
mapBubble.setVisibility(View.VISIBLE); } }

View 1 Replies View Related

Android :: Change Update Time Of Location Overlay

Aug 18, 2010

I am trying to see if anyone knows if it is possible to change the update time of MyLocationOverlay (http://bit .ly /dBIVdj). I have tried subclassing MyLocationOverlay and implementing my own location manager but when that happens I do not see the overlay on the map. I would try overriding the drawMyLocation method however I don't know which canvas to provide the method (since I would be drawing onLocationChange). To summarize, I am looking to do three things in MyLocationOverlay subclass:

1. Change the location update times to whatever I want.

2. Draw the "my location" dot with the radius when the onLocationChanged() method is called.
I've thought about making my own special class with special overlay -- but I feel like there has to be a better method to get what I want out of this class.

View 13 Replies View Related

Android :: Customize My Location Overlay Update Times

Aug 11, 2010

I am trying to implement the MyLocationOverlay class from google maps. However, when I try and use my own locationManager -- I cannot get the overlay to acutally draw on the map. I am wondering if I am doing something wrong.

I don't want to call the super method(enbaleMyLocation) of the MyLocationOverlay class because that request updates from the locationManager way too quickly and will eat my battery alive.

Here is my code...

View 2 Replies View Related

Android : Location/maps - Speed - Delete Overlay Without Deleting All The Others

Oct 26, 2010

I'm messing around with maps and gps and i have some questions. Hope any of you point me in the right direction:

- I´m loading about 400 overlays in a mapview, but it takes 2-3 minutes. Is there any way to speed things up?

- On the other hand, I use another overlay to point device gps position, but when location point change i need to delete this overlay to put it again in it's new position. How can i delete this overlay without deleting all the others?

View 15 Replies View Related

HTC EVO 4G :: Screen Rotation - Delay When Switch From Horizontal Position To Vertical Position

Sep 29, 2010

On my htc i was looking through display, i see g sensor calibration and i perform this calibration and after i do so the screen seems to have a delay when switch from the horizontal position to the vertical position. its weird because when i switch to the phone horizontally it switch normally and responds fast. but when i switch back to vertically it takes almost 7 seconds to actually switch back, sometimes it switch within 2 or 3 secs but never as quick as switching horizontally.

MQuote:

Originally Posted by Rigmaster

Make sure you have the latest updates, which impact speed on the device in some unpredictable and unexpected ways. During system updates, your Evo may reboot and will take the g-sensor changes as last calibrated.

If you're already updated, shut down and repower (soft reboot) should do the trick. I actually updated my phone and after it started to do this. I restarted the phone plenty of times i even took the battery out for 30 seconds. It only does it when im texting on the browser, basically everything but the camera. He camera screen rotation is perfect. I even rooted the phone but i havent figured out how to use the root to fix the problem. Should i do a firmware update? Because i just did the htc software update.

View 1 Replies View Related

Samsung Vibrant :: Compass - Needle Is In Completely Different Location

Jul 30, 2010

Is anybody else's compass completely useless? finds north(ish)... rotate the phone 90 degrees and it points in the opposite direction. move phone back where it was and the needle is in a completely different location. It makes apps like layer or skymap useless.

View 6 Replies View Related

Android :: How To Return Location Pressed To MapActivity From An Overlay OnTap Method

Aug 30, 2010

I have an activity that has a button which opens a new MapActivity to select a location by tapping on the map.

The map has an overlay that overrides the onTap method to get the location but I want to return that location to the previous activity but, I don't know how to return the geopoint to the mapactivity in order to call the setResult() and finish() methods, because I can't call them from the Overlay.onTap method.

View 2 Replies View Related

Android :: Position Views At Specific Location?

Jul 4, 2010

Is there a way to place widgets / views on the screen at any specific position required?

Something like a calendar with daily events that could overlap.
e.g. if every hour in a day is represented by 1 hour and there are 2 appointments that overlap partially (say 12:00 - 12:30 and 12:20 - 01:00) this would be drawn in the same row but the 12:20 one positioned slightly below the first.

Also there may be views (Image/TextView) that need to span 2 rows (i.e. 12:30 - 1:30).

I think a SurfaceView is one option (is this efficient?) but am not sure if there is some better layout that could be used.

We could use a TableLayout for the hour rows but not sure if there is a way to place overlapping widgets on this?

View 1 Replies View Related

Android :: Customizing In Coming -Out Going Call Screen

Mar 9, 2010

I'm having a HTC Tatto which runs on 1.6 platform. i'm trying to build an application which will customize incoming/out going call screen. i want to display a full image (animated one or sort of) rather than the default picture or the picture of the contact person. and is it possible to hide the call details (like calling number, contact name) from the screen. i'hv heard that this is not possible in 1.0 platform. and have seen so many threads regarding this topic but no one is giving a proper answer on this.

View 2 Replies View Related

HTC Hero :: App To Customizing Lock Screen

Nov 19, 2009

Is there an app to customize the lock screen properly,I am using backgrounds but it does not let me resize a picture properly as i want it on the lock screen.

View 5 Replies View Related

Android :: Map Open Overlay When Pin Is Clicked - Overlay Contains Description / Button

Aug 18, 2010

I like tu use the MapActivity to display some pins. When a pin is pressed i like to open a description. This can I obtain following the tutorial: http://developer.android.com /resources /tutorials/views/hello-mapview. But now I like to put a button on the overlay window. That button should open a detail activity. How can I make this? How is possible to personalize the overlay "info window"?

View 2 Replies View Related

Android :: Map Overlay Not Updating Unless I Tap Screen

Sep 26, 2010

I have built a simple app that uses a Google MapActivity. On top of the Map, I have 2 overlays, a Marathon Course and the position of a runner. The latter position overlay simply shows an updated blue dot.I update the location of the dot every second but the screen does not refresh. If I tap the scrren then the dot updates. Am I missing some hard refresh call somewhere? My Overlay code is small and shown below. Note that it does go into the draw routine every second and the point is changed.

View 3 Replies View Related

Android : How To Know Screen Position Where User Touched Screen?

Sep 7, 2010

In my app I draw an image covering the entire screen. I want to now how can I know where the user touched the screen?

View 2 Replies View Related

Android : Can I Get Absolute Screen Position?

Nov 4, 2009

View.getLeft() and View.getTop() give the position of the view relative to the parent.

Is there a way to get the absolute screen position of that view?

Either a way to translate those coordinates into screen coordinates to make a call to get the position in screen coordinates.

View 2 Replies View Related

Android :: Screen Rotation - Keep Notification Bar Etc In Same Position

Aug 22, 2009

I have an activity which I have defined to keep in portrait position.

However I would still like to change things (slightly) when the screen is rotated, what is the best way of doing this? I notice onConfigurationChanged is still called, but this still reports portrait mode.

I want to keep the notification bar etc in the same position if possible.

View 4 Replies View Related

Android :: Change Position Of A Bitmap Where Ever I Touch On Screen?

Oct 28, 2010

I have a large image on the screen and I want to display a small image on that image where I touch the screen. but I do not know how to change the position of the image when I touch on the screen and the small image must display where ever I touch on screen.

View 3 Replies View Related

Android :: Setupe Position Of A AlertDialog Off Screen At Top In Droid?

Jul 1, 2010

I want to set the AlertDialog position behind the status bar, when the content in my Dialog will increase, How to do that? I am creating a custom AlertDialog using my own layout.

View 1 Replies View Related

Android :: Draw Custom View On Specific Position Of Screen?

Apr 5, 2010

I have a custom component which consists of 2 text view and 4 toggle buttons. I want to draw this view at some specific position on the screen. How is that possible?

View 1 Replies View Related

HTC Incredible :: Way To Change Home Screen Position?

Sep 18, 2010

So I have had the Incredible for a while now and I absolutely love the phone. The only thing that has really bugged me from day one is the positioning of the home screen. The phone is suppose to be fully customizable but it seems that the one thing I have yet to figure out is how to change where my home screen is located. I would much rather have my home screen set as the left most screen instead of having it directly in the middle of my seven available screens. You know, sort of like how the iphone is and what not. Does anyone know if something like this is possible?

View 1 Replies View Related

HTC EVO 4G :: Move Screen With Extra Apps To That Position?

Jun 6, 2010

When i slide to the right i get my contact screen. I want to move the screen with my extra apps to that position. how do I do that?

View 6 Replies View Related

HTC EVO 4G : Landscape Position Line Divided Screen Left Right

Jun 16, 2010

I was sitting at my local Dunn Bros surfing the web on my EVO when I noticed a line that divided the screen in half. If held in the landscape postion the line divided the screen left right and if in portrait upper and lower. As time went on I noticed a lot of off color streaks that ran the length of the screen. Now about an hour later the whole screen is very washed out looking, and no my brightness is not on high either. Text is almost unreadable. It almost looks like when you take a magnet to a CRT screen. And no my EVO has never gotten wet, dropped, or abused in anyway.

Anyone out there experienced this. It really sucks because I don't have the screen separation issue or any other issues that people are experiencing but now my screen is completely dying.

View 16 Replies View Related

HTC Droid Eris :: Camera Screen Dims In The Horizontal Position

Jun 25, 2010

After the OTA and a factory reset my screen dims when I tilt the the phone in camera mode. It's fine when the phone is vertical but when I go to take a horizontal landscape shot it dims the screen to black. It will do the dimming proportionally to the angle the phone is rotated off the vertical axis and front to back (freaky) It will still take the shot but I have no idea how centered I am on the shot. I changed auto dimming to "off " but it still blanks it.

View 7 Replies View Related

HTC Hero :: Touchscreen - Screen Takes Right Horizontal Position Of My Finger - Not The Vertical

Feb 8, 2010

I have got one big problem with the touch input of my Hero. The screen is too sensitive. I can navigate on the screen while my finger is about 5 cm away from it. I can choose what I want, but the screen takes the right horizontal position of my finger, but not the vertical. Anything I want to take, the screen takes the one on the bottom of the screen. The same when I want to write a message or something like this. I choose the "W" or "E", but the screen takes the "X" or "C". If the display goes on Standby and I wake it again, everything is good for a few seconds, but than the same mistake comes again. I already tried to wipe and install a new MCR, but nothing helps. I think, but I am not sure, that I have that problem after I have installed the htc keyboard on android 2.1, as I tried it for a few hours.

View 5 Replies View Related

General :: Customizing Android With No ROM

Apr 25, 2014

I have a phone running stock android 4.1.1 and I want it to look like any other (xperia, touchwiz, sense etc.) but I can't find what's needed I really want the status bar to look the same aswell as the launcher and stock apps, I can't use a rom.

View 1 Replies View Related







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