[android-developers] Re: Problem with MapView
hi , MapView was working for me ,After using the geocommand ,i also have the same problem.can u please tell me what is the solution for this.i have uninstalled my eclipse editor also and changed the eclipse location also. On Oct 17, 7:33 pm, Matthias [EMAIL PROTECTED] wrote: oh boy... I have figured out what went wrong... I used the geo command to send location fixes, but this thing takes GPS coordinates as lon/lat pairs, not as lat/lon (like any GEO-related API that I have ever seen does), so the map dropped me in some uncharted lands (which were gray...). Great, one more wasted day thanks to terrible user interface design. :-/ On Oct 17, 4:08 pm, Matthias [EMAIL PROTECTED] wrote: darn, nevermind... the Maps demo in ApiDemos is also missing that file, produces the same error, but it does show a map. this is getting more obscure with every minute. On Oct 17, 3:56 pm, Matthias [EMAIL PROTECTED] wrote: Yes, I do have a location set. I think I know where the problem originates from though. As has appeared in the log traces before, the gray map thing seems to happen when the error Couldn't find file /data/data/your-app-package/ DATA_Tiles occurs; from my understanding, this file holds the map tile data from which a map is constructed. If that file is missing, well, then no map will be rendered of course. I don't know why my application package is missing that file. This should be handled by the runtime of course. I will now try to manually copy that file over from another (working) package to my package and check if that'll fix it. On Oct 17, 3:10 pm, Ludwig [EMAIL PROTECTED] wrote: Do you actually have a location set? I vaguely remember that I once had the grey screen, where it was not the permission to get the data off the net, but the fact that the view did not know what/where to view. Ludwig 2008/10/17 Matthias [EMAIL PROTECTED] That didn't work for me. I am still getting a grey plane where the map should be. :-/ Any other ideas? On Aug 20, 9:32 pm, Megha Joshi [EMAIL PROTECTED] wrote: Move the uses-permission tags above the application tag: uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/icon android:label=@string/app_name uses-library android:name=com.google.android.maps / On Wed, Aug 20, 2008 at 3:44 AM, dapper [EMAIL PROTECTED] wrote: Hi there, I am just starting out with android and for my first app after the tutorial I would like to display a Map. I have basically taken the Sample code and put it into my own project. However I only seem to get the grey grid and no map. Can anyone help (banging my head here). I am using 0.9. I know it is something stupid but can't see it. Thanks This is my main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/map android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true android:clickable=true android:apiKey=mymapkey / /LinearLayout My code public class HotelCompanion extends MapActivity { MapView mMapView; [EMAIL PROTECTED] public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MapView map = (MapView) findViewById(R.id.map); MapController mc = map.getController(); mc.setZoom(9); } [EMAIL PROTECTED] protected boolean isRouteDisplayed() { return false; } } and my manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=dharmesh.android.hotel application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / activity android:name=.HotelCompanion android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER /
[android-developers] Re: Problem with MapView
I'm also having the same problem as sudha has. it was working fine yesterday and suddenly stopped working. I dint make any changes to it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem with MapView
MapView was working fine until yesterday. Since yesterday i run into problems too. Please have a look at this: http://code.google.com/android/reference/com/google/android/maps/MapView.html and this: http://code.google.com/android/toolbox/apis/mapkey.html Nageshwar schrieb: I'm also having the same problem as sudha has. it was working fine yesterday and suddenly stopped working. I dint make any changes to it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem with MapView
hi all I was using the Mapview and was getting the map and the application was working fine till to 3 pm today.. then after it started to show the grey grid... no map those who are having the map application plz chek that agian.. is it the problem with the google server ? On Oct 17, 7:33 pm, Matthias [EMAIL PROTECTED] wrote: oh boy... I have figured out what went wrong... I used the geo command to send location fixes, but this thing takes GPS coordinates as lon/lat pairs, not as lat/lon (like any GEO-related API that I have ever seen does), so the map dropped me in some uncharted lands (which were gray...). Great, one more wasted day thanks to terrible user interface design. :-/ On Oct 17, 4:08 pm, Matthias [EMAIL PROTECTED] wrote: darn, nevermind... the Maps demo in ApiDemos is also missing that file, produces the same error, but it does show a map. this is getting more obscure with every minute. On Oct 17, 3:56 pm, Matthias [EMAIL PROTECTED] wrote: Yes, I do have a location set. I think I know where the problem originates from though. As has appeared in the log traces before, the gray map thing seems to happen when the error Couldn't find file /data/data/your-app-package/ DATA_Tiles occurs; from my understanding, this file holds the map tile data from which a map is constructed. If that file is missing, well, then no map will be rendered of course. I don't know why my application package is missing that file. This should be handled by the runtime of course. I will now try to manually copy that file over from another (working) package to my package and check if that'll fix it. On Oct 17, 3:10 pm, Ludwig [EMAIL PROTECTED] wrote: Do you actually have a location set? I vaguely remember that I once had the grey screen, where it was not the permission to get the data off the net, but the fact that the view did not know what/where to view. Ludwig 2008/10/17 Matthias [EMAIL PROTECTED] That didn't work for me. I am still getting a grey plane where the map should be. :-/ Any other ideas? On Aug 20, 9:32 pm, Megha Joshi [EMAIL PROTECTED] wrote: Move the uses-permission tags above the application tag: uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/icon android:label=@string/app_name uses-library android:name=com.google.android.maps / On Wed, Aug 20, 2008 at 3:44 AM, dapper [EMAIL PROTECTED] wrote: Hi there, I am just starting out with android and for my first app after the tutorial I would like to display a Map. I have basically taken the Sample code and put it into my own project. However I only seem to get the grey grid and no map. Can anyone help (banging my head here). I am using 0.9. I know it is something stupid but can't see it. Thanks This is my main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/map android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true android:clickable=true android:apiKey=mymapkey / /LinearLayout My code public class HotelCompanion extends MapActivity { MapView mMapView; [EMAIL PROTECTED] public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MapView map = (MapView) findViewById(R.id.map); MapController mc = map.getController(); mc.setZoom(9); } [EMAIL PROTECTED] protected boolean isRouteDisplayed() { return false; } } and my manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=dharmesh.android.hotel application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / activity android:name=.HotelCompanion android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category
[android-developers] Re: Problem with MapView
you need a valid Google Maps API key for your app as of today. Look for the official announcement on the Android Developers blog. On Oct 22, 4:32 pm, Sudha [EMAIL PROTECTED] wrote: hi all I was using the Mapview and was getting the map and the application was working fine till to 3 pm today.. then after it started to show the grey grid... no map those who are having the map application plz chek that agian.. is it the problem with the google server ? On Oct 17, 7:33 pm, Matthias [EMAIL PROTECTED] wrote: oh boy... I have figured out what went wrong... I used the geo command to send location fixes, but this thing takes GPS coordinates as lon/lat pairs, not as lat/lon (like any GEO-related API that I have ever seen does), so the map dropped me in some uncharted lands (which were gray...). Great, one more wasted day thanks to terrible user interface design. :-/ On Oct 17, 4:08 pm, Matthias [EMAIL PROTECTED] wrote: darn, nevermind... the Maps demo in ApiDemos is also missing that file, produces the same error, but it does show a map. this is getting more obscure with every minute. On Oct 17, 3:56 pm, Matthias [EMAIL PROTECTED] wrote: Yes, I do have a location set. I think I know where the problem originates from though. As has appeared in the log traces before, the gray map thing seems to happen when the error Couldn't find file /data/data/your-app-package/ DATA_Tiles occurs; from my understanding, this file holds the map tile data from which a map is constructed. If that file is missing, well, then no map will be rendered of course. I don't know why my application package is missing that file. This should be handled by the runtime of course. I will now try to manually copy that file over from another (working) package to my package and check if that'll fix it. On Oct 17, 3:10 pm, Ludwig [EMAIL PROTECTED] wrote: Do you actually have a location set? I vaguely remember that I once had the grey screen, where it was not the permission to get the data off the net, but the fact that the view did not know what/where to view. Ludwig 2008/10/17 Matthias [EMAIL PROTECTED] That didn't work for me. I am still getting a grey plane where the map should be. :-/ Any other ideas? On Aug 20, 9:32 pm, Megha Joshi [EMAIL PROTECTED] wrote: Move the uses-permission tags above the application tag: uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/icon android:label=@string/app_name uses-library android:name=com.google.android.maps / On Wed, Aug 20, 2008 at 3:44 AM, dapper [EMAIL PROTECTED] wrote: Hi there, I am just starting out with android and for my first app after the tutorial I would like to display a Map. I have basically taken the Sample code and put it into my own project. However I only seem to get the grey grid and no map. Can anyone help (banging my head here). I am using 0.9. I know it is something stupid but can't see it. Thanks This is my main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/map android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true android:clickable=true android:apiKey=mymapkey / /LinearLayout My code public class HotelCompanion extends MapActivity { MapView mMapView; [EMAIL PROTECTED] public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MapView map = (MapView) findViewById(R.id.map); MapController mc = map.getController(); mc.setZoom(9); } [EMAIL PROTECTED] protected boolean isRouteDisplayed() { return false; } } and my manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=dharmesh.android.hotel application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission
[android-developers] Re: Problem with MapView
Do you actually have a location set? I vaguely remember that I once had the grey screen, where it was not the permission to get the data off the net, but the fact that the view did not know what/where to view. Ludwig 2008/10/17 Matthias [EMAIL PROTECTED] That didn't work for me. I am still getting a grey plane where the map should be. :-/ Any other ideas? On Aug 20, 9:32 pm, Megha Joshi [EMAIL PROTECTED] wrote: Move the uses-permission tags above the application tag: uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/icon android:label=@string/app_name uses-library android:name=com.google.android.maps / On Wed, Aug 20, 2008 at 3:44 AM, dapper [EMAIL PROTECTED] wrote: Hi there, I am just starting out with android and for my first app after the tutorial I would like to display a Map. I have basically taken the Sample code and put it into my own project. However I only seem to get the grey grid and no map. Can anyone help (banging my head here). I am using 0.9. I know it is something stupid but can't see it. Thanks This is my main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/map android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true android:clickable=true android:apiKey=mymapkey / /LinearLayout My code public class HotelCompanion extends MapActivity { MapView mMapView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MapView map = (MapView) findViewById(R.id.map); MapController mc = map.getController(); mc.setZoom(9); } @Override protected boolean isRouteDisplayed() { return false; } } and my manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=dharmesh.android.hotel application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / activity android:name=.HotelCompanion android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem with MapView
darn, nevermind... the Maps demo in ApiDemos is also missing that file, produces the same error, but it does show a map. this is getting more obscure with every minute. On Oct 17, 3:56 pm, Matthias [EMAIL PROTECTED] wrote: Yes, I do have a location set. I think I know where the problem originates from though. As has appeared in the log traces before, the gray map thing seems to happen when the error Couldn't find file /data/data/your-app-package/ DATA_Tiles occurs; from my understanding, this file holds the map tile data from which a map is constructed. If that file is missing, well, then no map will be rendered of course. I don't know why my application package is missing that file. This should be handled by the runtime of course. I will now try to manually copy that file over from another (working) package to my package and check if that'll fix it. On Oct 17, 3:10 pm, Ludwig [EMAIL PROTECTED] wrote: Do you actually have a location set? I vaguely remember that I once had the grey screen, where it was not the permission to get the data off the net, but the fact that the view did not know what/where to view. Ludwig 2008/10/17 Matthias [EMAIL PROTECTED] That didn't work for me. I am still getting a grey plane where the map should be. :-/ Any other ideas? On Aug 20, 9:32 pm, Megha Joshi [EMAIL PROTECTED] wrote: Move the uses-permission tags above the application tag: uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/icon android:label=@string/app_name uses-library android:name=com.google.android.maps / On Wed, Aug 20, 2008 at 3:44 AM, dapper [EMAIL PROTECTED] wrote: Hi there, I am just starting out with android and for my first app after the tutorial I would like to display a Map. I have basically taken the Sample code and put it into my own project. However I only seem to get the grey grid and no map. Can anyone help (banging my head here). I am using 0.9. I know it is something stupid but can't see it. Thanks This is my main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/map android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true android:clickable=true android:apiKey=mymapkey / /LinearLayout My code public class HotelCompanion extends MapActivity { MapView mMapView; [EMAIL PROTECTED] public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MapView map = (MapView) findViewById(R.id.map); MapController mc = map.getController(); mc.setZoom(9); } [EMAIL PROTECTED] protected boolean isRouteDisplayed() { return false; } } and my manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=dharmesh.android.hotel application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / activity android:name=.HotelCompanion android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem with MapView
oh boy... I have figured out what went wrong... I used the geo command to send location fixes, but this thing takes GPS coordinates as lon/lat pairs, not as lat/lon (like any GEO-related API that I have ever seen does), so the map dropped me in some uncharted lands (which were gray...). Great, one more wasted day thanks to terrible user interface design. :-/ On Oct 17, 4:08 pm, Matthias [EMAIL PROTECTED] wrote: darn, nevermind... the Maps demo in ApiDemos is also missing that file, produces the same error, but it does show a map. this is getting more obscure with every minute. On Oct 17, 3:56 pm, Matthias [EMAIL PROTECTED] wrote: Yes, I do have a location set. I think I know where the problem originates from though. As has appeared in the log traces before, the gray map thing seems to happen when the error Couldn't find file /data/data/your-app-package/ DATA_Tiles occurs; from my understanding, this file holds the map tile data from which a map is constructed. If that file is missing, well, then no map will be rendered of course. I don't know why my application package is missing that file. This should be handled by the runtime of course. I will now try to manually copy that file over from another (working) package to my package and check if that'll fix it. On Oct 17, 3:10 pm, Ludwig [EMAIL PROTECTED] wrote: Do you actually have a location set? I vaguely remember that I once had the grey screen, where it was not the permission to get the data off the net, but the fact that the view did not know what/where to view. Ludwig 2008/10/17 Matthias [EMAIL PROTECTED] That didn't work for me. I am still getting a grey plane where the map should be. :-/ Any other ideas? On Aug 20, 9:32 pm, Megha Joshi [EMAIL PROTECTED] wrote: Move the uses-permission tags above the application tag: uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/icon android:label=@string/app_name uses-library android:name=com.google.android.maps / On Wed, Aug 20, 2008 at 3:44 AM, dapper [EMAIL PROTECTED] wrote: Hi there, I am just starting out with android and for my first app after the tutorial I would like to display a Map. I have basically taken the Sample code and put it into my own project. However I only seem to get the grey grid and no map. Can anyone help (banging my head here). I am using 0.9. I know it is something stupid but can't see it. Thanks This is my main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/map android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true android:clickable=true android:apiKey=mymapkey / /LinearLayout My code public class HotelCompanion extends MapActivity { MapView mMapView; [EMAIL PROTECTED] public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MapView map = (MapView) findViewById(R.id.map); MapController mc = map.getController(); mc.setZoom(9); } [EMAIL PROTECTED] protected boolean isRouteDisplayed() { return false; } } and my manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=dharmesh.android.hotel application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / activity android:name=.HotelCompanion android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at
[android-developers] Re: Problem with MapView
Peter Wrote Hi I clean up the code Look at your Variables name public class HotelCompanion extends MapActivity{ MapView map; MapController mc; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); map = (MapView) findViewById(R.id.map); mc = map.getController(); mc.setZoom(9); } @Override protected boolean isRouteDisplayed() { return false; } } Ricardo wrote: Hi all, I´m also having this problem, with the MapView in SDK 1.0 .. my AndroidManifest also has the ACCESS_COARSE_LOCATION and INTERNET permissions, and the uses- library tag too. Sometimes it works, but in 90% of times LogCat logs this message ERROR/MapActivity(9520): Couldn't get connection factory client anybody can help me with this? thank you On 22 set, 06:59, sudheer [EMAIL PROTECTED] wrote: Hello All I still face the problem of a grid being shown instead of a map. my manifest file is copied below ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=BuddyProj.BuddyPack uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.ACCESS_MOCK_LOCATION / application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / activity android:name=.BuddyApp android:label=@string/ app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest Can some one tell me what should I do to get a map displayed instead of the grid view. Best Regards, Sudheer On Aug 21, 12:37 am, David Foelber [EMAIL PROTECTED] wrote: Worked for me, thanks! On Aug 20, 3:32 pm, Megha Joshi [EMAIL PROTECTED] wrote: Move the uses-permission tags above the application tag: uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/icon android:label=@string/app_name uses-library android:name=com.google.android.maps / On Wed, Aug 20, 2008 at 3:44 AM, dapper [EMAIL PROTECTED] wrote: Hi there, I am just starting out with android and for my first app after the tutorial I would like to display a Map. I have basically taken the Sample code and put it into my own project. However I only seem to get the grey grid and no map. Can anyone help (banging my head here). I am using 0.9. I know it is something stupid but can't see it. Thanks This is my main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/map android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true android:clickable=true android:apiKey=mymapkey / /LinearLayout My code public class HotelCompanion extendsMapActivity{ MapView mMapView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MapView map = (MapView) findViewById(R.id.map); MapController mc = map.getController(); mc.setZoom(9); } @Override protected boolean isRouteDisplayed() { return false; } } and my manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=dharmesh.android.hotel application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / activity android:name=.HotelCompanion android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest- Hide quoted text - - Show quoted text -
[android-developers] Re: Problem with MapView
Check this out: http://nader.shalabi.googlepages.com/androidapplications On Mon, Sep 22, 2008 at 12:59 PM, sudheer [EMAIL PROTECTED] wrote: Hello All I still face the problem of a grid being shown instead of a map. my manifest file is copied below ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=BuddyProj.BuddyPack uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.ACCESS_MOCK_LOCATION / application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / activity android:name=.BuddyApp android:label=@string/ app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest Can some one tell me what should I do to get a map displayed instead of the grid view. Best Regards, Sudheer On Aug 21, 12:37 am, David Foelber [EMAIL PROTECTED] wrote: Worked for me, thanks! On Aug 20, 3:32 pm, Megha Joshi [EMAIL PROTECTED] wrote: Move the uses-permission tags above the application tag: uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/icon android:label=@string/app_name uses-library android:name=com.google.android.maps / On Wed, Aug 20, 2008 at 3:44 AM, dapper [EMAIL PROTECTED] wrote: Hi there, I am just starting out with android and for my first app after the tutorial I would like to display a Map. I have basically taken the Sample code and put it into my own project. However I only seem to get the grey grid and no map. Can anyone help (banging my head here). I am using 0.9. I know it is something stupid but can't see it. Thanks This is my main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/map android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true android:clickable=true android:apiKey=mymapkey / /LinearLayout My code public class HotelCompanion extendsMapActivity{ MapView mMapView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MapView map = (MapView) findViewById(R.id.map); MapController mc = map.getController(); mc.setZoom(9); } @Override protected boolean isRouteDisplayed() { return false; } } and my manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=dharmesh.android.hotel application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / activity android:name=.HotelCompanion android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem with MapView
Hello All I still face the problem of a grid being shown instead of a map. my manifest file is copied below ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=BuddyProj.BuddyPack uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.ACCESS_MOCK_LOCATION / application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / activity android:name=.BuddyApp android:label=@string/ app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest Can some one tell me what should I do to get a map displayed instead of the grid view. Best Regards, Sudheer On Aug 21, 12:37 am, David Foelber [EMAIL PROTECTED] wrote: Worked for me, thanks! On Aug 20, 3:32 pm, Megha Joshi [EMAIL PROTECTED] wrote: Move the uses-permission tags above the application tag: uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/icon android:label=@string/app_name uses-library android:name=com.google.android.maps / On Wed, Aug 20, 2008 at 3:44 AM, dapper [EMAIL PROTECTED] wrote: Hi there, I am just starting out with android and for my first app after the tutorial I would like to display a Map. I have basically taken the Sample code and put it into my own project. However I only seem to get the grey grid and no map. Can anyone help (banging my head here). I am using 0.9. I know it is something stupid but can't see it. Thanks This is my main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/map android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true android:clickable=true android:apiKey=mymapkey / /LinearLayout My code public class HotelCompanion extendsMapActivity{ MapView mMapView; [EMAIL PROTECTED] public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MapView map = (MapView) findViewById(R.id.map); MapController mc = map.getController(); mc.setZoom(9); } [EMAIL PROTECTED] protected boolean isRouteDisplayed() { return false; } } and my manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=dharmesh.android.hotel application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / activity android:name=.HotelCompanion android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem with MapView
I'm running into this issue as well. From the logs, I get the line: I/MapActivity( 1106): Handling network change notification:CONNECTED E/MapActivity( 1106): Couldn't get connection factory client I/ActivityManager( 53): Displayed activity com.aws.android/.Typhoon: 1591 ms E/OSNetworkSystem( 1106): unknown socket error -1 I'm guessing that has something to do with it? dapper wrote: Hi there, I am just starting out with android and for my first app after the tutorial I would like to display a Map. I have basically taken the Sample code and put it into my own project. However I only seem to get the grey grid and no map. Can anyone help (banging my head here). I am using 0.9. I know it is something stupid but can't see it. Thanks This is my main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/map android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true android:clickable=true android:apiKey=mymapkey / /LinearLayout My code public class HotelCompanion extends MapActivity { MapView mMapView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MapView map = (MapView) findViewById(R.id.map); MapController mc = map.getController(); mc.setZoom(9); } @Override protected boolean isRouteDisplayed() { return false; } } and my manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=dharmesh.android.hotel application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / activity android:name=.HotelCompanion android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem with MapView
Move the uses-permission tags above the application tag: uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/icon android:label=@string/app_name uses-library android:name=com.google.android.maps / On Wed, Aug 20, 2008 at 3:44 AM, dapper [EMAIL PROTECTED] wrote: Hi there, I am just starting out with android and for my first app after the tutorial I would like to display a Map. I have basically taken the Sample code and put it into my own project. However I only seem to get the grey grid and no map. Can anyone help (banging my head here). I am using 0.9. I know it is something stupid but can't see it. Thanks This is my main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/map android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true android:clickable=true android:apiKey=mymapkey / /LinearLayout My code public class HotelCompanion extends MapActivity { MapView mMapView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MapView map = (MapView) findViewById(R.id.map); MapController mc = map.getController(); mc.setZoom(9); } @Override protected boolean isRouteDisplayed() { return false; } } and my manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=dharmesh.android.hotel application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / activity android:name=.HotelCompanion android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem with MapView
Worked for me, thanks! On Aug 20, 3:32 pm, Megha Joshi [EMAIL PROTECTED] wrote: Move the uses-permission tags above the application tag: uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / application android:icon=@drawable/icon android:label=@string/app_name uses-library android:name=com.google.android.maps / On Wed, Aug 20, 2008 at 3:44 AM, dapper [EMAIL PROTECTED] wrote: Hi there, I am just starting out with android and for my first app after the tutorial I would like to display a Map. I have basically taken the Sample code and put it into my own project. However I only seem to get the grey grid and no map. Can anyone help (banging my head here). I am using 0.9. I know it is something stupid but can't see it. Thanks This is my main.xml ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent com.google.android.maps.MapView android:id=@+id/map android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true android:clickable=true android:apiKey=mymapkey / /LinearLayout My code public class HotelCompanion extends MapActivity { MapView mMapView; [EMAIL PROTECTED] public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); MapView map = (MapView) findViewById(R.id.map); MapController mc = map.getController(); mc.setZoom(9); } [EMAIL PROTECTED] protected boolean isRouteDisplayed() { return false; } } and my manifest ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=dharmesh.android.hotel application android:icon=@drawable/icon android:label=@string/ app_name uses-library android:name=com.google.android.maps / uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.INTERNET / activity android:name=.HotelCompanion android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity /application /manifest --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---