Android :: Adding Items To Maps Overlay Does Not Immediately Show On Map

Aug 28, 2010

I can't figure out how to tell my Map to redraw its overlays once I've updated them. Currently the user has to touch the screen before the map is redrawn.

Android :: Adding items to Maps Overlay does not immediately show on map


Samsung Captivate :: Way To Have Single Folder Show Received Items / Sent Items Combined?

Jul 21, 2010

Had no problem getting my phone to play nice with our exchange server at work and emails are coming/going fine.

However, there are some configuration items I have a big issue with as it relates to the 'look' of the email (coming from a BlackBerry).

1. Is there any way to have a single folder show my received items and sent items combined? My BB had this and it was very useful.

2. How can I edit the way my folders are displayed at the top horizontal bar? The sidescrolling folder display is awkward, it puts my inbox first (good) but then all subsequent folders are listed alphabetically; it pays no attention to their order on my desktop and also shows sub-folders of other files. Any way to change this?

3. Is there a way to change the way emails show as unread? The difference b/n read and unread is only a shade of grey, and difficult to see outside.

View 1 Replies View Related

Android :: Start Activity From Overlay In Maps

Jul 22, 2010

I am trying to create a map application and I need to do something similar to what Google Maps does. I want to open show a list of locations and when user taps on them I want to show a dialog.

I was able to do it till here. But now when the user clicks on the dialog that opened I want to show another acttivity with the details of that item that they clicked on.

I tried to start a new intent but it gives me an error.

Here is what I am doing

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

Here is the stack trace E/AndroidRuntime( 4985): java.lang.RuntimeException:

Unable to start activity ComponentInfo{com.achie.test.mapssample/ com.achie.test.mapssample.ItemDetailView}:

CODE:........

Why am I getting this error and how can I resolve this and open a new activity?

Also where can I find the source code for the google maps on android?

View 4 Replies View Related

Android : How To Show Pop Up On Clicking Map Overlay

Mar 4, 2010

I want to show a custom image with some data in it while clicking map overlay that i have added to google map in android.

Can any one guide me how can i create that custom image or thing to be displayed on google map with some data on it?

some body told me to go for custom view but i have no idea about them.

View 2 Replies View Related

Android :: Detecting Clicks On A Google Maps Overlay

Jun 15, 2009

I would like to put a bunch of dots on a google map, and have the appropriate listener called when one of them gets clicked.All i seem to be able to find is to get the location at which the click occurred, and then iterate through the dots until I find one that I think matches. Is there no listener for an arbitrary shape, like a drawable? I feel like this might be a Java question more so than android, but hopefully someone can still answer it.

View 3 Replies View Related

Android :: Phone Maps Support Ground Overlay?

Jun 8, 2010

I have a weather image I would like to use as an overlay in the google maps android api. I would like to achieve the same result that I get from using GroundOverlay in KML files, such as

<GroundOverlay>
<name>myimage</name>
<Icon>
<href>myimage.png</href>
<viewBoundScale>0.75</viewBoundScale>
</Icon>
<LatLonBox>
<north>75.6088</north>
<south>5.0121</south>
<east>182.2805</east>
<west>120.6795</west>
</LatLonBox>
/GroundOverlay>

The above will ensure that the 4 corners of my image stay anchored to the 4 lat/long points listed, regardless of scrolling, zooming etc. Is there a way to accomplish this using the google api / maps provided for android?

View 1 Replies View Related

Android :: Expanding Overlay Marker On Google Maps?

Jul 20, 2010

I can draw overlay items onto google maps just fine, an image that looks like:
_____
| |
______
/

Where the "/" part is the "pin" that marks the lat/lon on the map and a picture in the middle of it. My question is, is there any way to expand this when the user clicks on it? I'll of course have to change this to some kind of dialog or layout and change it when it gets clicked.

I want to have it smaller like that with just an image when not clicked on, but when it is clicked on it expands over like a second to:

--------------------------------------
| <image> <buttons> |
| <buttons> |
| <some info here> |
| |
--------------------------------------
/

Is this possible?

View 2 Replies View Related

Android :: Threading - Custom Google Maps Tile Overlay

Nov 4, 2010

I've been stuck for ages now trying to implement threading or background image loading for a custom tile overlay class I've been working on. I'm pretty useless when it comes to Java so threading isn't something I've had any experience with. Basically I have extended an ItemizedOverlay and in the draw() method calculate the tiles I need to display over the standard google tiles then fetch those images with a URLConnection and using BitmapFactory decode them and draw them to the canvas at the correct position on the screen so that the images are on top of the google tiles with about 50% opacity (the custom tiles are cellphone network coverage png's which are used for our web app). I initially got this all working with the tiles loading in the correct places but hit issues with memory and "freezing" while panning so implemented some basic caching and memory management to only store the tiles that are displayed on the map in memory and when downloading a tile store it to SD card.

Then I figured the freezing while panning is due to the blocking nature of downloading the images so, have been trying to implement threading. I created a class that extends AsyncTask to download the images in the background and store them to SD, in the onPostExecute method I then try to draw all the tiles. But onPostExecute never seems to fire, now I know that the AsyncTask has to be called in the main ui thread so tried to debug the execution with Thread.currentThread().getId() calls through out the code. The thread Ids through out is 1 and then 10 for the doInBackground method for the AsyncTask. Now I'm not sure if 1 is the main UI thread or not. In the extended MapActivity class I have, the onCreate method's Thread.currentThread().getId() returns 1 but I'm not sure if the MapActivity class is executed in the main ui thread? Here Romain Guy mentions that the onPostExecute method should have @Override but when I do that eclipse flags it as an error

"The method onPostExecute(Boolean...) of type TileCache.ImageLoadTask must override or implement a supertype method"
So I guess something is wrong there but the only fix eclipse offers is to remove the @Override
So I guess with out post all my source code, the question's I have are:
Is the MapActivity onCreate method called in the main ui thread?
What does the @Override error mean? or why does it show that error
Does anyone have an example of a custom tile overlay implementation with background image loading and tile caching?

View 1 Replies View Related

Android :: Not Understanding DrawAt() Method For Com.google .maps.Overlay

Jan 19, 2010

Trying to make an google maps overlay in an android program. Inside of my overlay's draw method, I have two ways of adding a pin. One of them works, and one does not. Unfortunately, the one that does not work is also the only one that has the ability to add a shadow!

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

Android :: Show Multiple Overlay Item On Droid Map?

Sep 1, 2010

I am developing one Map based application and in this application i want to draw Multiple Overlay Item(With Marker) on map.so anyone can told me the efficient way of doing it.

View 1 Replies View Related

Android :: Adding Items To ListView (Already Initialized)

May 31, 2009

After the listview is already initialized, is it possible to add items to it during runtime?

View 3 Replies View Related

Android :: Adding Items To Spinner Dynamically

Jan 29, 2010

How to add items to the spinner dynamically in android?

View 1 Replies View Related

Android :: ItemizedOverlay Adding Items And OnTap?

Feb 4, 2010

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: INFO/NotificationService(52): enqueueToast pkg=android.mapit callback=android.app.ITransientNotification$Stub $Proxy@4394c100 duration=0

If I add a second item and click ANY of the other items, the onTap method gets called twice and I get the following in LogCat:

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

If I add a third item and click ANY of the other items, the onTap method gets called three times and I get the following in LogCat:

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

Any idea why this would occur? I'm running into issues with it affecting other things like removal of items.

View 2 Replies View Related

HTC EVO 4G :: Adding Items To Calender?

Jul 21, 2010

Looking to use my Google calender to track my work places/what i did etc..

is there an easier way to ADD stuff to the calender? any cool programs/etc? been searching for a while and can't find anything that fits my liking. Lotta cool programs to display, but nothing neat to add stuff quickly.

View 2 Replies View Related

Motorola Droid :: Overlay A Route In Google Maps?

Feb 5, 2010

I am looking for a way to overlay a route in google maps.

What I want is to take this map Greenways Oak Ridge Google map and get it to my google My Maps. Then I can pull it up in Maps and use my location to see where I am in relation to where I need to be in case I want to take a different route to need to shorted the ride due to darkness.

Most rides I do I can find these maps but cant do anything with them.

View 13 Replies View Related

Android :: Adding ListView Items Dynamically - Force Close

Dec 11, 2009

I have an Absolute Layout with two buttons on top, a Text View of fixed size in the middle and List View as the rest of the Layout.

I want to use the top left button to add a list view item to the existing list and the top right button to remove the last item from the list. The List is layed out properly when the App starts, but as soon as any of the two buttons is pressed, the Activity Force Closes.

Here is the code:..................

View 7 Replies View Related

Android :: Adding Items To Data Source Doesn't Appear In ListView

Aug 29, 2010

I am adding items to my data source and would like it to appear in my ListView.

For some reason nothing is appearing:

Adapter:

CODE:.........

Adding items in onCreate:

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

Here is my layout:

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

View 2 Replies View Related

Android :: Show Dividers After Some Items In Listview

Jun 24, 2010

I'm building a list that is sorted alphabetically. The list should show a divider containing the Letter that the following icons belong to.

I'm using a Cursoradapter that contains the already sorted result from the database. I plan on adding the divider to the list item and set it to visible if the shown letter changes. How do I know that I have a new Letter? Is there a better way then going forward or backward in the cursor and check if the item I show is the end or beginning of a new group?

View 1 Replies View Related

Android :: ListView Set Number Of Items To Show

Mar 4, 2010

How can i set the number of items to show in a list without to scroll?

Example: I have a list with 10 items.

I want that only 3 items appears and that I have to scroll to see the rest of the items.

View 1 Replies View Related

Android :: Android Maps Overlay OnTap Click

May 5, 2010

Could anyone help me with my below program. I'm unable to put a transparent label containing the contents from my HelloGoogleMaps.java class (Hola, Mundo!) when i click the markers(the android icon) in the map. I would like to have the ontap event do it for different markers here so that that particular location details is popped up. It needs to be in a canvas display. Upon clicking this new canvas label, it should take me to a seperate activity displaying complete details. I'm using the sample program given in the Google Android Website http://developer.android.com/resources/tutorials/views/hello-mapview and i want to extended it to the next level. Import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google.android.maps.MapController; import com.google.android.maps.MapView; import com.google.android.maps.Overlay; import com.google.android.maps.OverlayItem; import android.app.Activity; import android.graphics.drawable.Drawable; import android.os.Bundle;

View 2 Replies View Related

Android :: Icons For Submenu Items Doesn't Show Up

Apr 20, 2010

With below code, the icon for submenu items does not get displayed.

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

First the item "Settings", its displaying but for its submenu items("Preferences"/"Profile") , it is not showing up.

View 4 Replies View Related

Android :: ListView Items Won't Show Focus When Touched

Jun 20, 2010

I've got a ListView that works just great, except for this minor annoyance. I can use the trackball/dpad to move up and down my list, and the background changes according to which row has focus. But when I touch the row (click or long click), there's no background change letting me know what's been focused. I've tried setting 'focusable' and 'focusable in touch mode' to true on the rows, but it still doesn't work.

Just in case it matters somehow:

I am setting onClickListeners for each row. The row is comprised of LinearLayouts, TextViews, and a single ImageView. Focusable/clickable is 'true' for each row. Have not specified values for these on the ListView.
Trackable does act funny. I can only move between rows after touching inside the ListView. If I scroll trackball above the first item, it's impossible for me to scroll back into the list.

View 1 Replies View Related

Android Json - Show All Items On Button Click?

Dec 11, 2013

.i try to parse json and show item to listview.but i want to show all items on button click , but when i clicked button only show last item on listview this is a my my code

[HIGH]private class LoadDataToServer extends
AsyncTask<Void, Integer, ArrayList<HashMap<String, String>>> {[code].....

View 1 Replies View Related

Android :: Show Info Related To ListActivity Items - Toast - New Page

Sep 28, 2010

I am working on learning Android programming. I am attempting to build an app that shows a list of items, and when the user clicks on an item, it will display an image of that item, as well as information about it. I'm not sure the best way to present this information. Would using the Toast widget be best? Or TextView? Or, is there another way, like creating a new activity, that makes more sense?

After the user clicks on the list item, and reads the presented info, they should be able to return to the list.

View 1 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 :: Show Spinner Before Adding Widget

Nov 9, 2009

For a widget I am creating for the Android OS, I want the user to first select a certain option from a Spinner. Just like when you add a shortcut to the homescreen.

Is that possible or do you have to start an Activity? If it is possible, can anyone explain how to do it?

View 1 Replies View Related

Android :: Adding Menu Items In WebView Context Menu

Mar 8, 2010

I'm trying to add custom menu items in a WebView Context Menu. Unfortunately, my items are shown in the menu of the first web page I load , but then if I load a second page, a long press only shows the standard context menu items. Mine are gone. I've put a Toast inside the code and it is displayed as well on the first loaded page, but not on the second. I'm using the code below:..............

View 6 Replies View Related

Android :: Maps Don't Show In App / How To Fix?

Jul 24, 2010

I'm just trying to run MapsDemo who is in 'samples' of the SDK, but consider this: http:/ i.imagehost.org/0829/mapss_don_t_show.png the Google maps is working perfectly http://j.imagehost.org/0640/google_maps.png ).

View 5 Replies View Related

Android :: Maps Only Show Grid / Why Is So?

May 5, 2010

I've doubled checked my API key is right and that is right I doubled checked that it was correct. Here is my source and XML could anyone check to see what is wrong. Also I make sure I have Internet. code...

View 1 Replies View Related







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