Display routes dynamically on Map Application

by SREEHARI » Thu, 22 Apr 2010 14:05:41 GMT


Sponsored Links
 Hi All,

      I developed a map application with overlays. I am able to show
current location also. I want to display dynamic routes from current
location  to different points(overlays). I have stored several
points(geo coordiantes) using array. Should I use the graph data
structure concepts using some algorithms?

Thanks in advance
SREEHARI

--



Other Threads

1. VM crash in mobile for a code good working in Emulator

I get stuck from one week to find a solution for a VM crash in a
Samsung Galaxy running a code good working with emulator. (I don't
know if this code works in any real device)

Initialy my code line crashing the VM was :
responseString = EntityUtils.toString(response.getEntity());
This code works most of time but crash arrive with a bigger answer
from the server (facebook server)

To try to locate this probleme I code the following lines without
result but with a more detailed log :

HttpEntity entity = response.getEntity();
int i = (int)entity.getContentLength();
if (i < 0) {
    i = 1024;
}
String charset = getContentCharSet(entity);
if (charset == null) {
    charset = DEFAULT_CONTENT_CHARSET;
}
Reader reader = new InputStreamReader(new
BufferedInputStream(entity.getContent()));
CharArrayBuffer buffer = new CharArrayBuffer(i);
Log.d(LOG, "executeMethodForMessage finally AFTER CharArrayBuffer");
try {
   char[] tmp = new char[256];
   int l;
   while((l = reader.read(tmp)) != -1) {
       buffer.append(tmp, 0, l);
        Log.d(LOG, "executeMethodForMessage buffer length : " + 
buffer.length());
    }
} finally {
    reader.close();
}
Log.d(LOG, "executeMethodForMessage finally AFTER close");

Log is down here :
D/UiHandler( 1488): executeMethodForMessage mFacebook.execute AFTER
I/global  ( 1488): Default buffer size used in BufferedInputStream
constructor. It would be better to be explicit if an 8k buffer is
required.
D/UiHandler( 1488): executeMethodForMessage finally AFTER CharArrayBuffer
D/UiHandler( 1488): executeMethodForMessage buffer length256
D/UiHandler( 1488): executeMethodForMessage buffer length512
D/UiHandler( 1488): executeMethodForMessage buffer length768
D/UiHandler( 1488): executeMethodForMessage buffer length1024
D/UiHandler( 1488): executeMethodForMessage buffer length1134
D/UiHandler( 1488): executeMethodForMessage buffer length1390
D/UiHandler( 1488): executeMethodForMessage buffer length1646
D/UiHandler( 1488): executeMethodForMessage buffer length1902
D/UiHandler( 1488): executeMethodForMessage buffer length2158
D/UiHandler( 1488): executeMethodForMessage buffer length2414
D/UiHandler( 1488): executeMethodForMessage buffer length2670
D/UiHandler( 1488): executeMethodForMessage buffer length2926
D/UiHandler( 1488): executeMethodForMessage buffer length3182
D/UiHandler( 1488): executeMethodForMessage buffer length3438
D/UiHandler( 1488): executeMethodForMessage buffer length3694
D/UiHandler( 1488): executeMethodForMessage buffer length3950
D/UiHandler( 1488): executeMethodForMessage buffer length4206
D/UiHandler( 1488):
D/UiHandler( 1488):
D/UiHandler( 1488): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/UiHandler( 1488):
D/UiHandler( 1488):
D/UiHandler( 1488): (
logcat read: Invalid argument

Any help welcome

Andre

--~--~---------~--~----~------------~-------~--~----~

2. Pass data between activitys

Hi,

in my app, i got a login screen and a screen, where the user
information should be displayed. So, when the button is pressed, a
login request will be made and in case of sucess, a new activity
should be displayed.
For later requests, i need the entered login data from the login
screen in my other activitys to process further requests.
So the question is, how to pass data from activity to activity.

In the Blackberry app,  which is running already, you could pass
objects to the constructor of the new Screen.
So the best for me would be, to find a possibility to pass a bean
object from screen to screen.
Sadly, i found nothing like that in the documentation. I would be
grateful for any help.

Regards,
Daniel

--~--~---------~--~----~------------~-------~--~----~

3. Work on Android Security as Projec

4. Take an action when soft keyboard is launched

5. samples from media pool never released by OMX MPEG-4 Video Decoder

6. How to manage 2 versions of the same app: a lite version and a full version?

7. How to manage 2 versions of the same app: a lite version and a full version?