How to display map on emulator(our application)

by parth » Fri, 20 Jun 2008 02:46:06 GMT


Sponsored Links
 Hello friends,
My problem is that i want display map on my mobile application so that
please reply to me yuor ides
ok thaks
--~--~---------~--~----~------------~-------~--~----~



How to display map on emulator(our application)

by oegono » Tue, 24 Jun 2008 15:00:02 GMT


 Hi parth,

its really easy to display a pam on the mobile device.
The only thing you have to do, is to extend the MapActivity from the
SDK.

Int the overridden onCreate(Bundle icicle) method you add a Map View
to the Activity like this:

                // create the mapView
                map = new MapView(this);
                setContentView(map);

Running this simple Activity will show a Map on your screen.
Now you can control the map with a MapController or create Overlays
with your data.

greets
oegono




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


Sponsored Links


Other Threads

1. Every ProgressBar instance getIndeterminateDrawable returns a singleton? how to clone this Drawable?

So I have two instances of ProgressBar but applying a ColorFilter of one
will affect the other, how do I copy this Drawable object?
Any ideas?

-- 

2. VideoView playback fails on 2.0.1? MediaPlayer warnings in logcat

Hello all.

I'm testing an app on the 2.0.1 emulator and video playback is not
working correctly. The VideoView is just showing a white rectangle,
although the audio is playing fine. I tested one of the video files in
the Gallery app and it showed the same results (white rectangle with
sound). A beta tester with the 2.0.1 Droid update has also reported
that playback isn't working; although in that case the "This video
can't be played" message is seen rather than the white rectangles.
Looking at logcat I see the following when video playback starts on
the emulator:

W/MediaPlayer(  524): info/warning (1, 44)
I/MediaPlayer(  524): Info (1,44)
D/MediaPlayer(  524): getMetadata
E/SurfaceFlinger(  372): layer 0x481238, texture=4, using format 87,
which is not supported by the GL
E/SurfaceFlinger(  372): layer 0x481238, texture=4, using format 0,
which is not supported by the GL
E/SurfaceFlinger(  372): layer 0x481238, texture=4, using format 87,
which is not supported by the GL
E/SurfaceFlinger(  372): layer 0x481238, texture=4, using format 114,
which is not supported by the GL

The SurfaceFlinger messages repeat for as long as the video is
playing, with formats 0, 87, 114 and 116.

These videos worked fine on Android 2.0 devices. I presume I'm going
to have to re-encode them, but I'm not sure what parameters to use.
The current videos are H.264 176x144 at 15 fps with 32kHz mono AAC
audio.

Can anyone shed some light on what the 1,44 warning means?

Thanks.

--
Jon

-- 

3. How to install EAP TLS certificates for WiF

4. Multiple Services within a Process

5. strace

6. Mohon bantuan setting manual

7. Simple Call App