Android :: Add Markers On Map?

Jan 18, 2010

I wanted to know how to add marker on a map? right now, i am trying to build an application that shows the persons current location, and i can follow it. but the problem is i don't have a pointer, so the changing is vague. what i want is to show the persons location with a marker(e.g some kind of bubble) and follow it.=

Android :: Add markers on Map?


Android :: Show Different Markers On A Map?

Nov 15, 2010

I am displaying markers on a map. I am not sure how I can specify a different drawable resource for different markers?

I would like to show a green pin if locations distance < 50, etc. etc.code...

View 2 Replies View Related

Android :: Remove Shadow On Markers On My Map?

Nov 17, 2010

I am displaying a custom marker on my Google Map. They are placed fine, but they have this funny shadow. How can I remove the shadow? code...

View 1 Replies View Related

Android :: Add Markers To A Google Map On Droid?

Aug 4, 2010

I've got a place I want to add on my map at a particular lat / lng. I'd like to display that on my map when the activity starts. How would I do this?

View 1 Replies View Related

Android : How To Draw Dynamic Markers On A Map?

Jul 26, 2010

How would dynamically draw markers on a Mapview? I've got the following code which will hardcode one point in. I'm looking to pull values from a database..

View 1 Replies View Related

Android :: Clear All Map Overlays Or Markers From Google Map?

Mar 31, 2010

I want to clear all map overlays or markers from google map and using following code

if(!mapOverlays.isEmpty())
{
mapOverlays.clear();
}

which is giving me exception can any one guide me? am i right or wrong if i am wrong then kindly provide me the solution to my problem. i want map clean if there is any marker on it.

View 2 Replies View Related

Android :: Move Markers With Maps API To A New Position?

Sep 21, 2009

I'm wondering if it is possible to move markers when using a MapView. I use a fullscreen MapView which has a few (not more than 5) markers which I would like to move and update by just moving the markers to a new position.

View 2 Replies View Related

Android :: OverlayItem Not Displaying Markers / What To Show It?

Jul 5, 2010

I have the following code and the markers are not appearing on the map at all! code...

View 1 Replies View Related

Android :: Auto Zoom To Fit Markers On An Overlay?

Jun 2, 2010

I have done my fair share of google searches for this and have come up empty.

I have a set of marker(25) that are being displayed on a MapView. I would love to be able to have it zoom to a reasonable level to make the markers readable.

View 2 Replies View Related

Android :: Scale Map Markers By Zoom Factor?

Aug 19, 2010

I have lot of markers on my map. Zooming in each marker shows me a position. but zooming out the markers are overlapping each other and it is more difficult do determine the position of a marker.

Is there a way to scale the marker image depending on the zoom factor?

View 1 Replies View Related

Android : Reading From XML / Need To Create Overlay Markers On Map

Jun 27, 2010

On my app I will be reading in from an XML file thats formatted something like this

<database> <db1>
<db> <name>name here</name> <street>street here</street> <long> longitude here</long> <lat> latitude here </lat> </db>
<db> <name> new name here </name> <street> new street here </street> <long> new longitude here </long> <lat> new latitude here </latitude> </db>
</db1> </database>

With this information I need to create Overlay Markers on the map (using latitude and longitude) and when they're clicked on I need it to display the name with the address. Depending on the conditions of where the map is, the number of markers will be different so I need a dynamic model for reading in these markers.

If I were to use Document methods like getElementById(String name) then I couldn't call getElementById("name") because it would likely try to call just the first <name></name> or give an unintended result.

View 4 Replies View Related

Android :: Load Only Markers That Would Be Displayed On Current Screen?

Aug 5, 2010

Using Google Maps on Android does anyone have any ideas on how to load only markers that would be displayed on the current screen? I'm thinking about sending a request to a web service that returns the lat/lng for the relevant markers. But what would the parameters be that I could use to calculate if a given lat/lng is within the screen?

View 1 Replies View Related

Android :: How To Scale Markers And Set Shadow And OnTap Correctly

Nov 17, 2009

I'm scaling markers on a MapView with the following code

CODE:.........

And:

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

Which works, but the shadow below the marker has wrong offset when scaled. Also; i override the public boolean onTap(int index) in ItemizedOverlay to detect taps on the markers, but it seems inaccurate. I can click some range outside the marker and still trigger onTap...

View 1 Replies View Related

Android :: Limit For Numebr Of Markers To Show On A MapView?

Nov 3, 2010

As the object of this topic. is there a limit for the numebr of markers to show on a MapView at the same time with the Google API?

View 3 Replies View Related

Android : How To Compute Zoom Level Against Returned Markers?

Aug 5, 2009

I'd like to know if there is already a way to know from a given set of markers, the zoom I should apply to the map or do I have to do it my self? (this depends on the resolution so i expected to find it in MapView because it knows its boundaries.

View 4 Replies View Related

Drawing Lots Of Markers On A Map

Oct 28, 2011

I'm trying to draw on a map using markers. The problem I'm having is when I try to add lots of them, then I can't get it to run. To illustrate my problem, let's say I want to draw a square made of 900 smaller squares (30x30).I'm trying to add the markers to an itemizedoverlay, then drawing it.

Code:
public class MyItemizedOverlay extends ItemizedOverlay{
private ArrayList<OverlayItem> mOverlays = new ArrayList<OverlayItem>();
private Context mContext;
[code]....

View 7 Replies View Related

Android :: Load Markers Dynamically For Current Position In Android Google Maps?

Aug 5, 2010

I'm currently developing an app for Android which uses google map service. Because users will be able to see thousands of markers I would like to load only those which are currently within the map bounds (i.e. when user look at specific map tile). I know how to do it with javascript/html. However, Android doesn't seem to provide any similar methods such as containsLatLng(latlng) or getBounds (I only found getLatitudeSpan and getLongitudeSpan, but don't know how can I use them in order to achieve the similar effect). Can anyone give me some hint on that?

View 4 Replies View Related

General :: Video Player - Track Seekbar Scrub Past Markers?

May 11, 2012

I am currently working on a video player using the VideoView and I am controlling it with the MediaController.

The first thing I would like to do is to be able to place markers along the seekbar, such as 25% of the clip. I want to fire an event when this mark is hit or scrubbed past. Throwing an event when this marker is hit with the video playing regularly will be easy because I should be able to just use getCurrentPosition and checking to see if it is 25% of the total clip. The issue I am having is how to fire the event if the user scrubs past the 25% point.

The second thing I am trying to do is just show a visual marker along the seekbar that I can display a marker, lets say at the 25% point, 50% point, etc.

View 1 Replies View Related

Android :: Custom Map Markers And Custom Backgrounds

Mar 1, 2010

I am trying to get the images to have transparent backgrounds so the map is not blocked by a square marker with an image in it. What image editor and what settings should I use to get this to work?

I am trying to do some custom backgrounds for buttons and the same problem comes up: I get square corners and a background that does not scale with the buttons.

I think this all part of the same problem: I am not using the right tool with the right settings to create the images. I must be misinterpreting the documentation and examples that talk about a white border around the image and a black line along the top and left side for the expandable button background.

Here's a quick way to reproduce the problem:

Follow the directions to create the MapView program as described on:
http://developer.android.com/resources/tutorials/views/hello-mapview.html

For the icon I first used the image copied from the page:

Next I edited the picture in Microsoft Paint, and cut off the little guy's antennae. I'm not cruel and no real androids were harmed in that experiment. I surrounded the new picture with a pixel thick border of white, copied from the border that was around the rest of the image, and then copied the black that was there as well in the void areas of the image, outside the border.

I saved the image as myandroid.png and copied the file to the layout folder. Pointed the activity to the new pic and ran the program.

The image was displayed with a full square background and shadow, not the android shaped image and shadow that was there when the original image was used.

Custom Button background:
Follow the directions for the Relative Layout example at:
[url]

Next, I created an image to expand as a background for the button called backbutton.png. It too is surrounded by a white border and black filled on the corners, the top and one side per documentation I found in "Android Programming Tutorials" on page 298.

The background does not expand, nor do the corners round.

I wish I could show you screenies of what I have.

How do you create the images for the custom backgrounds and the images for the custom map markers and buttons? I need to know what image editor to use and the file attributes to set, so the images expand and display with the proper void spaces in them.

View 2 Replies View Related

Android :: Android How To Send Data From Server To Android With No Request From Android?

Oct 19, 2010

today i meet the problem.i need technic can control the android machine from server.then i want send data from server to android with no request from android.

View 2 Replies View Related

Android :: Android 1.6 - Android - View - WindowManager$BadTokenException - Unable To Add Window - Token Null Is Not For An Application

Apr 14, 2010

I'm trying to open a dialog window, but every time I try to open it it throws this exception:

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

I'm creating it by calling showDialog with the display's id. The onCreateDialog handler logs fine and I can step through it without an issue, but I've attached it since it seems like I'm missing something:

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

Is there something missing from this? Some questions have talked about having this problem when creating a dialog from onCreate, which happen because the activity isn't created yet, but this is coming from a call from a menu object, and the appContext variable seems like it is correctly populated in the debugger.

View 3 Replies View Related

Android :: Android WebView Not Loading A JavaScript File But Android Browser Loads It Fine

Jun 3, 2010

I'm writing an application which connects to a back office site. The backoffice site contains a whole slew of JavaScript functions, at least 100 times the average site. Unfortunately it does not load them, and causes much of the functionality to not work properly. So I am running a test. I put a page out on my server which loads the FireBugLite javascript text. Its a lot of javascript and perfect to test and see if the Android WebView will load it. The WebView loads nothing, but the browser loads the Firebug Icon. What on earth would make the difference, why can it run in the browser and not in my WebView? Any suggestions.
More background information, in order to get the stinking backoffice application available on a Droid (or any other platform except windows) I needed to trick the bakcoffice application to believe what's accessing the website is Internet Explorer. I do this by modifying the WebView User Agent.Also for this application I've slimmed my landing page, so I could give you the source to offer me aid. package ksc.myKMB;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.Window;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebSettings;
import android.webkit.WebViewClient;
import android.widget.Toast;
public class myKMB extends Activity {
I already have JavaScript on the web browser on, the problem is the web view is acting to different from the web browser.

View 1 Replies View Related

Android :: Resolve The Error - Com.android Internal R Cannot Be Resolved - Using Android File MultiAutoCompleteTextView.java

Aug 15, 2010

I want to implement my own Tokenizer base on the file
"MultiAutoCompleteTextView.java",

but I encounter an error "com.android.internal.R cannot be resolved" when I try to

import "MultiAutoCompleteTextView.java" to my project.

code:.................

I haven't research any solutions to resolve this problem.How to correct "com.android.internal.R.attr.autoCompleteTextViewStyle" my own attr?

View 1 Replies View Related

Android :: Does Android Eclair Code Base Support Plugins In Android Browser?

Jan 11, 2010

1- Does Android Browser (Éclair code base) support the "plug-in" or not?

2- Why "Google Gears" support is removed from the clair code base?

I searched the forum and came to know that earlier version of the Android does not support it at all? Here is the link for that, but this query asked in Dec'2008.

View 2 Replies View Related

Android :: Android How To Edit Specific Record From Database In Android Programming

Jan 5, 2010

At first,I have a database created by using Ruby on rails.I just already implement insert function(HTTPPost) in my Android Application and it's work.But I don't know how to retrieve specific record from my databases and insert it back to specific record in Android (Like edit function in RoR)This is my insert code :
private void insertComment() {DefaultHttpClient client = new DefaultHttpClient();HttpPost post = new HttpPost("http://10.10.3.87:3000/comments");
// Configure the form parameters
List<NameValuePair> nvps = new ArrayList<NameValuePair>();
nvps.add(new BasicNameValuePair("comment[content]", t_comment.getText().toString();
nvps.add(new BasicNameValuePair("comment[id_account]", "1"));
nvps.add(new BasicNameValuePair("comment[id_place]", Integer.toString(position)I really try many ways out but it doesn't work and it takes very long time to fight with this piece of code. Actually, I really don't know how to specify RowID to HTTPPost.

View 2 Replies View Related

Android :: Android.. How To Upload Data From Android Phone To Remote Database?

Sep 17, 2010

I am doing some android development, and now I need to send some android application generated data onto a remote server (a database)?How can I do that? can I use direct JDBC connection and sql?

View 1 Replies View Related

Android :: Sending Info From Android Phone To An Computer IP With Android Emulator

Oct 9, 2010

So i am making a android app, and i want it to be so if i call lets say 911 it sends my GPS coordinents to a certain IP, i know everything but how i make it so if i call 911 it sends the info and how i can make it send the info to the IP via 3g,

View 3 Replies View Related

Android :: Android Market Hiding Apps With Bluetooth Permissions From Android 1.5 And 1.6

Jul 10, 2010

I released updates of my apps yesterday and they are being hidden from android 1.5 and 1.6 phones.

This is due to a Market bug which hides apps with bluetooth permissions from android 1.5 and 1.6.

Come on Google fix the market. We spend countless hours making are apps work on ALL android versions and now you do this...

This issue has been raised since June, but has only affected me since i made an update to the market yesterday.

View 1 Replies View Related

Android :: Mock And Performance Tests Available In Android For Testing Android Application

Dec 23, 2009

What exactly are mock tests... I need to know the mock and performance tests available in android for testing android apps..what is the best tool for testing android apps and how..

View 1 Replies View Related

Android :: Android - Add Menu Item To Android's Built-in Apps

Aug 17, 2009

I'd like to add a menu option to the Android camera app. Is this possible to do using the current SDK? I know I need to add an intent-filter tag in my activity. But I don't know what I should put in the mime type. I want to be able to process the live camera previews if the user selects the menu option. So what do I put into the type tag of the intent-filter? Also I suppose I won't be using ALTERNATIVE or SELECTED-ALTERNATIVE for the category as I want to deal with the whole intent?

View 3 Replies View Related







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