Hey Thanks for reply
Now it is working after adding folowing lines to menifest file <uses-permission android:name="android.permission.ACCESS_LOCATION"> </uses-permission> <uses-permission android:name="android.permission.INTERNATE"> </uses-permission> <uses-permission android:name="android.permission.ACCESS_GPS"> </uses-permission> <uses-permission android:name="android.permission.ADD_SYSTEM_SERVICE"> I didn't do any proxy changes. thnx, rani On Tue, Sep 2, 2008 at 11:34 PM, Justin (Google Employee) <[EMAIL PROTECTED]>wrote: > > The map tiles probably aren't appearing because you're behind a proxy > at your office. The emulator has some issues working behind a proxy, > for more information on this take a look at > > http://groups.google.com/group/android-developers/browse_frm/thread/3042e0626f197f95 > on the Android Developers forum. > > The problem with the zoom is probably that the map isn't ready yet to > receive that event. You probably want to wait to adjust zoom until the > map does some basic loading. Check that MapView.canCoverCenter() > returns true and that MapView.getLongitudeSpan() and > MapView.getLatitudeSpan() return non-zero values. > > Cheers, > Justin > Android Team @ Google > > On Aug 28, 11:14 pm, "Rani v" <[EMAIL PROTECTED]> wrote: > > Hi Justin, > > > > Thanks for reply !! > > > > well, When i uncomment mc.zoomIn(); , it gives an error {The application > > (process.com.Map) has stopped unexpectedely],but mc.setZoom(10); don't > > gives an error message. > > ** > > *But my problem is somthing very different, in my office Pc, it dont > display > > any thing except a blank screen i am sending you the logcat and > screenshot > > of Map Application and the following code :* > > > > @Override > > > > *public* *void* onCreate(Bundle savedInstanceState) { > > > > *super*.onCreate(savedInstanceState); > > > > mMapView = *new* MapView(*this*, map); > > > > // Latitude and Longitude > > > > GeoPoint p = *new* GeoPoint((*int*) (28.38 * 1000000), > > > > (*int*) (77.12 * 1000000)); > > > > MapController mc = mMapView.getController(); > > > > mc.animateTo(p); > > > > mc.setZoom(10); > > > > setContentView(mMapView); > > > > mMapView.isSatellite(); > > > > } > > > > @Override > > > > *protected* *boolean* isRouteDisplayed() { > > > > // *TODO* Auto-generated method stub > > > > *return* *true*; > > > > } > > > > *Why do we need to override this method in 0.9 beta version ? should it > > return false always ?* > > *[Note: i am using **android-sdk-windows-0.9_beta *and* Eclipse 3.3 ]* > > ** > > And at home i am using *android-sdk_m5-rc15_windows *and *eclipse 3.3 > > ,*here it is working fine and displaying the images too , i dont know > > ,where > > is the problem ? whether in network or in API > > > > please Suggest!!! > > > > On Thu, Aug 28, 2008 at 11:22 PM, Justin (Google Employee) > > <[EMAIL PROTECTED]>wrote: > > > > > > > > > > // mc.zoomIn(); //Not working > > > > > Define "not working". It throws an exception? It returns false? > > > > > Try adjusting the zoom level after setting the MapView to the content > > > view of the Activity. Does it work if you use setZoom instead? What is > > > the return from MapView.getZoomLevel()? > > > > > Cheers, > > > Justin > > > Android Team @ Google > > > > > On Aug 28, 1:50 am, "Rani v" <[EMAIL PROTECTED]> wrote: > > > > Hi All, > > > > > > I am writing a class to display basic Map, but it is showing only a > blank > > > > screen ,can any one suggest me how to display the map > > > > sending you the code > > > > ** > > > > > > * > > > > > > public* *class* MapExample *extends* MapActivity { > > > > > > *private* MapView mMapView; > > > > > > *private* String map = "Browse Map"; > > > > > > /** Called when the activity is first created. */ > > > > > > @Override > > > > > > *public* *void* onCreate(Bundle savedInstanceState) { > > > > > > *super*.onCreate(savedInstanceState); > > > > > > mMapView = *new* MapView(*this*, map); > > > > > > // Latitude and Longitude > > > > > > GeoPoint p = *new* GeoPoint((*int*) (28.38 * 1000000), > > > > > > (*int*) (77.12 * 1000000)); > > > > > > // MapController manages panning and zooming of a map > > > > > > MapController mc = mMapView.getController(); > > > > > > mc.setCenter(p); > > > > > > // mc.zoomIn(); //Not working > > > > > > setContentView(mMapView); > > > > > > mMapView.isSatellite(); > > > > > > } > > > > > > } > > > > I am using *android-sdk-windows-0.9_beta *and* Eclipse 3.3 * > > > > > > > > andy1.bmp > > 1422KViewDownload > > > > andy2.doc > > 39KViewDownload > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

