[android-developers] Crop and Scale into Square

2010-04-08 Thread aspekt9
I'm trying to take any image and scale and crop it into a set dimension square (100px X 100px). What's the easiest way to do this? I want to maintain the aspect ratio and it seems that I can't do that and have it in a square ImageView either. What's the trick? -- You received this message

[android-developers] Basic Chat Application

2010-04-06 Thread aspekt9
I'm starting to get into networking on android and I was wondering what the requirements are to setup a simple messaging application. Do I need to host a central server somewhere to have two people connect to in order to receive messages? Are there any examples on how to go about doing this? --

[android-developers] Re: Drawing to MapView Incredibly Slow

2010-02-11 Thread aspekt9
If I'm both drawing lines and utilizing items, would it be wise to implement both a MapOverlay and a MapItemizedOverlay? Or do I just need one? On Feb 10, 4:55 pm, TreKing treking...@gmail.com wrote: On Wed, Feb 10, 2010 at 3:43 PM, aspekt9 aspe...@gmail.com wrote: What exactly is the span

[android-developers] Re: Drawing to MapView Incredibly Slow

2010-02-11 Thread aspekt9
); //itemizedOverlay.addOverlay(overlayitem); } } mapOverlays.add(itemizedOverlay); } On Feb 11, 3:50 am, aspekt9 aspe...@gmail.com wrote: Also, another issue I'm having, I can detect which points should be drawn in the view, but when I go to draw those

[android-developers] Re: Drawing to MapView Incredibly Slow

2010-02-10 Thread aspekt9
How would I do this? On Feb 10, 1:02 am, TreKing treking...@gmail.com wrote: On Tue, Feb 9, 2010 at 9:26 PM, aspekt9 aspe...@gmail.com wrote:  There must be faster way, how does google deal with it when they display driving directions and they have all those path lines and points

[android-developers] Re: Drawing to MapView Incredibly Slow

2010-02-10 Thread aspekt9
I'm having an issue converting getLongitudeSpan() and getLatitudeSpan() to microdegrees, how do I do that? On Feb 10, 10:54 am, TreKing treking...@gmail.com wrote: On Wed, Feb 10, 2010 at 2:35 AM, aspekt9 aspe...@gmail.com wrote: How would I do this? With a simple bounds check against

[android-developers] Re: Drawing to MapView Incredibly Slow

2010-02-10 Thread aspekt9
What exactly is the span though, how would I calculate if a given coordinate or geopoint lies in between the span? On Feb 10, 3:59 pm, TreKing treking...@gmail.com wrote: On Wed, Feb 10, 2010 at 2:47 PM, aspekt9 aspe...@gmail.com wrote: I'm having an issue converting getLongitudeSpan

[android-developers] Drawing to MapView Incredibly Slow

2010-02-09 Thread aspekt9
In my app I am drawing bus routes on top of a MapView. The routes have anywhere between a dozen and a few hundred GPS coordinates that describe the route that the bus takes. The problem I'm having is that once I draw out all these lines using drawLines panning/zooming the MapView is incredibly

[android-developers] Re: Drawing to MapView Incredibly Slow

2010-02-09 Thread aspekt9
points??? 2010/2/9 aspekt9 aspe...@gmail.com In my app I am drawing bus routes on top of a MapView. The routes have anywhere between a dozen and a few hundred GPS coordinates that describe the route that the bus takes. The problem I'm having is that once I draw out all these lines

[android-developers] GeoPoint Path Issue?

2010-02-08 Thread aspekt9
I have a path connecting 11 GeoPoints with a line, I use path.moveTo() and path.lineTo() to draw the line and it seems that as soon as I hate 10 Points in the path, it draws the line to Columnbia in South America.. And yes, my GeoPoint locations are correct, I don't understand why this is

[android-developers] Re: GeoPoint Path Issue?

2010-02-08 Thread aspekt9
 pm, aspekt9 aspe...@gmail.com wrote: I have a path connecting 11 GeoPoints with a line, I use path.moveTo() and path.lineTo() to draw the line and it seems that as soon as I hate 10 Points in the path, it draws the line to Columnbia in South America.. And yes, my GeoPoint locations are correct

[android-developers] ItemizedOverlay Adding Items and onTap Issue

2010-02-04 Thread aspekt9
When I add a new item to my ItemizedOverlay the onTap display I have set appears X times, where X is equal to the number of items that I added. So for example, if I add one item and tap it, it the onTap method gets called once, and in the LogCat I get: 02-04 23:28:56.188:

[android-developers] ItemizedOverlays Complications

2009-07-09 Thread aspekt9
I have a MapView which utilizes and ItemizedOverlay to draw map markers to the map. The application stores the markers for later use in a database and in the mOverlays OverlayItem ArrayList. This works fine for adding new items, but removing items from the ArrayList shrinks the arraylist and

[android-developers] Retrieving Data From a Dialog

2009-07-06 Thread aspekt9
I have a program that uses a Map View and when they click a menu item it prompts them (in a Dialog box) to enter a name and then press enter. Once they press enter I want to take what was received in the Text Edit in the dialog box and display it in a toast. However, it seems that I just get a

[android-developers] Dialog Update Issues

2009-07-06 Thread aspekt9
I have an onTouch method that creates a new GeoPoint where the user touches the screen. It then opens a dialog box and asks them for a name for this GeoPoint. This method is shown below: @Override public boolean onTouchEvent(MotionEvent event, MapView mapView) {

[android-developers] Re: Multiple points on a map

2009-07-06 Thread aspekt9
I'm having an issue with overlays it seems when I use a dialog to add a new overlay, the new marker isn't updated until I again click on the screen. Any idea why this is? On Jul 4, 9:24 am, Piwaï py.ri...@gmail.com wrote: Hello, Have you read the MapView tutorial ? It shows how to display

[android-developers] Dialog Information Retrieval

2009-07-06 Thread aspekt9
I have a program that uses a Map View and when they click a menu item it prompts them (in a Dialog box) to enter a name and then press enter. Once they press enter I want to take what was received in the Text Edit in the dialog box and display it in a toast. However, it seems that I just get a