¡@

Home 

2014/10/16 ¤W¤È 08:18:33

android Programming Glossary: mapfragment

Google Maps Android API v2 Authorization failure

http://stackoverflow.com/questions/13696620/google-maps-android-api-v2-authorization-failure

Unknown Source at com.google.android.gms.maps.MapFragment.onInflate Unknown Source at android.app.Activity.onCreateView.. manager.beginTransaction transaction.add R.id.map MapFragment.newInstance transaction.commit As result the application was..

Using ActionBarSherlock With the New SupportMapFragment

http://stackoverflow.com/questions/13721929/using-actionbarsherlock-with-the-new-supportmapfragment

ActionBarSherlock With the New SupportMapFragment I am looking at using ActionbarSherlock but have one query.. in my application and to do that I need to use the SupportMapFragment class. My Question Is it possible to use the SupportMapFragment.. class. My Question Is it possible to use the SupportMapFragment class alongside ActionBarSherlock Thanks in advance EDIT I have..

Initialize MapFragment programmatically with Maps API v2

http://stackoverflow.com/questions/13733299/initialize-mapfragment-programmatically-with-maps-api-v2

MapFragment programmatically with Maps API v2 I'm trying to add a MapFragment.. programmatically with Maps API v2 I'm trying to add a MapFragment to my current Fragment. The use of nested fragments is restricted.. when the user presses a button. So I'm creating the MapFragment programmatically with getInstance when the user presses that..

Duplicate ID, tag null, or parent id with another fragment for com.google.android.gms.maps.MapFragment

http://stackoverflow.com/questions/14083950/duplicate-id-tag-null-or-parent-id-with-another-fragment-for-com-google-androi

id with another fragment for com.google.android.gms.maps.MapFragment I have an application with three tabs. Each tab has its own.. .newTab .setText Map .setTabListener new TabListener MapFragment this map MapFragment.class bar.addTab bar .newTab .setText.. .setTabListener new TabListener MapFragment this map MapFragment.class bar.addTab bar .newTab .setText Settings .setTabListener..

Google maps api v2 custom infowindow like in original android google maps

http://stackoverflow.com/questions/14123243/google-maps-api-v2-custom-infowindow-like-in-original-android-google-maps

infoWindow created in the InfoWindowAdapter. Wrap the MapFragment or MapView inside a custom ViewGroup mine is called MapWrapperLayout.. android text Button LinearLayout Test activity layout file MapFragment being inside the MapWrapperLayout com.circlegate.tt.cg.an.lib.map.MapWrapperLayout.. match_parent class com.google.android.gms.maps.MapFragment com.circlegate.tt.cg.an.lib.map.MapWrapperLayout And finally..

Moving MapFragment (SurfaceView) causes black background flickering

http://stackoverflow.com/questions/14419521/moving-mapfragment-surfaceview-causes-black-background-flickering

MapFragment SurfaceView causes black background flickering I'm trying to.. doesn't seem to go well with SlidingMenu . As you may know MapFragment implementation is based on SurfaceView . The problem is that.. the animation is smooth and nice. But as soon as the MapFragment appears there's some weird refreshing flickering synchronization..

Google Maps api v2 class not found

http://stackoverflow.com/questions/16583118/google-maps-api-v2-class-not-found

3422 Could not find class 'com.google.android.gms.maps.MapFragment' referenced from method com.apptree.de_luxe.InfoActivity.setUpMapIfNeeded.. to resolve check cast 169 Lcom google android gms maps MapFragment in Lcom apptree de_luxe InfoActivity 05 16 08 53 34.357 D dalvikvm..

MapView in a Fragment (Honeycomb)

http://stackoverflow.com/questions/5109336/mapview-in-a-fragment-honeycomb

MapView.java 235 E AndroidRuntime 834 at de.foo.FinderMapFragment.onCreateView FinderMapFragment.java 225 E AndroidRuntime 834.. 834 at de.foo.FinderMapFragment.onCreateView FinderMapFragment.java 225 E AndroidRuntime 834 at android.app.FragmentManagerImpl.moveToState.. 664 Really there should be something like MapFragment that takes care of the background threads MapView needs I guess.....

Google Maps Android API v2 throws GooglePlayServicesNotAvailableException, out of date, SupportMapFragment.getMap() returns null

http://stackoverflow.com/questions/13722192/google-maps-android-api-v2-throws-googleplayservicesnotavailableexception-out-o

.findFragmentById R.id.map SupportMapFragment mapFragment SupportMapFragment fragment mMap mapFragment.getMap PROBLEM.. mapFragment SupportMapFragment fragment mMap mapFragment.getMap PROBLEM mMap is null here even though mapFragment is.. mapFragment.getMap PROBLEM mMap is null here even though mapFragment is not Then I thought I probably need to initialize the fragments..

Map view following user - MyLocationOverlay type functionality for Android Maps API V2

http://stackoverflow.com/questions/13739990/map-view-following-user-mylocationoverlay-type-functionality-for-android-maps

this fragment from your activity use PlaceMapFragment mapFragment new PlaceMapFragment this public PlaceMapFragment Context context..

How to get My Location changed event with Google Maps android API v2?

http://stackoverflow.com/questions/13742551/how-to-get-my-location-changed-event-with-google-maps-android-api-v2

this fragment from your activity use PlaceMapFragment mapFragment new PlaceMapFragment this public PlaceMapFragment Context context..

Capture screen shot of GoogleMap Android API V2

http://stackoverflow.com/questions/13773658/capture-screen-shot-of-googlemap-android-api-v2

like MapView does. I tried to do this SupportMapFragment mapFragment SupportMapFragment getSupportFragmentManager .findFragmentById.. .findFragmentById R.id.basicMap View v1 mapFragment.getView But the screenshot that I get does not have any map..

google maps android api v2 - detect touch on map

http://stackoverflow.com/questions/14013002/google-maps-android-api-v2-detect-touch-on-map

http schemas.android.com apk res android android id @ id mapFragment android layout_width match_parent android layout_height wrap_content..

MapFragment in Action Bar Tabs

http://stackoverflow.com/questions/14074625/mapfragment-in-action-bar-tabs

aboutTab bar.newTab .setText About MapFragment mapFragment new MapFragment SettingsFragment settingsFragment new SettingsFragment.. new AboutFragment mapTab.setTabListener new TabListener mapFragment settingsTab.setTabListener new TabListener settingsFragment..

Duplicate ID, tag null, or parent id with another fragment for com.google.android.gms.maps.MapFragment

http://stackoverflow.com/questions/14083950/duplicate-id-tag-null-or-parent-id-with-another-fragment-for-com-google-androi

http schemas.android.com apk res android android id @ id mapFragment android name com.google.android.gms.maps.MapFragment android.. For good measure here's map.xml R.layout.map with R.id.mapFragment android id @ id mapFragment xml version 1.0 encoding utf 8 LinearLayout.. map.xml R.layout.map with R.id.mapFragment android id @ id mapFragment xml version 1.0 encoding utf 8 LinearLayout xmlns android http..

Google maps api v2 custom infowindow like in original android google maps

http://stackoverflow.com/questions/14123243/google-maps-api-v2-custom-infowindow-like-in-original-android-google-maps

setContentView R.layout.activity_main final MapFragment mapFragment MapFragment getFragmentManager .findFragmentById R.id.map final.. findViewById R.id.map_relative_layout final GoogleMap map mapFragment.getMap MapWrapperLayout initialization 39 default marker height..

Is there a way to implement rounded corners to a Mapfragment?

http://stackoverflow.com/questions/14469208/is-there-a-way-to-implement-rounded-corners-to-a-mapfragment

corners and a transparent middle on top of the mapView mapFragment. That is put the mapFragment and the rounded corner view in.. middle on top of the mapView mapFragment. That is put the mapFragment and the rounded corner view in a FrameLayout with both filling.. map http schemas.android.com apk res auto android id @ id mapFragment android layout_width match_parent android layout_height match_parent..

android maps stop responding after resuming fragment

http://stackoverflow.com/questions/16409783/android-maps-stop-responding-after-resuming-fragment

the app in 1 single activity with multiple fragments. This mapFragment is contained inside of a fragment. This works fine. However.. this caused gMaps to be null when I get it from gMaps mapFragment.getMap in the setViews . How should I handle this @Override.. gMaps null fm getActivity .getSupportFragmentManager mapFragment SupportMapFragment.newInstance android.support.v4.app.FragmentTransaction..

Google Maps Android API v2 Authorization failure

http://stackoverflow.com/questions/13696620/google-maps-android-api-v2-authorization-failure

at com.google.android.gms.maps.GoogleMapOptions.createFromAttributes Unknown Source at com.google.android.gms.maps.MapFragment.onInflate Unknown Source at android.app.Activity.onCreateView Activity.java 4716 at android.view.LayoutInflater.createViewFromTag.. manager getFragmentManager FragmentTransaction transaction manager.beginTransaction transaction.add R.id.map MapFragment.newInstance transaction.commit As result the application was started but I didn't see the map. Console log ERROR Google..

Using ActionBarSherlock With the New SupportMapFragment

http://stackoverflow.com/questions/13721929/using-actionbarsherlock-with-the-new-supportmapfragment

ActionBarSherlock With the New SupportMapFragment I am looking at using ActionbarSherlock but have one query that's holding me back. So my application needs to be fully.. to API Level 7. I need to implement the new Google Maps in my application and to do that I need to use the SupportMapFragment class. My Question Is it possible to use the SupportMapFragment class alongside ActionBarSherlock Thanks in advance EDIT.. my application and to do that I need to use the SupportMapFragment class. My Question Is it possible to use the SupportMapFragment class alongside ActionBarSherlock Thanks in advance EDIT I have downloaded and had a look at the library. The only changes..

Initialize MapFragment programmatically with Maps API v2

http://stackoverflow.com/questions/13733299/initialize-mapfragment-programmatically-with-maps-api-v2

MapFragment programmatically with Maps API v2 I'm trying to add a MapFragment to my current Fragment. The use of nested fragments is.. MapFragment programmatically with Maps API v2 I'm trying to add a MapFragment to my current Fragment. The use of nested fragments is restricted to FragmentTransactions you can't use the xml tag in your.. in your layout. Also I want it to be added to the main Fragment when the user presses a button. So I'm creating the MapFragment programmatically with getInstance when the user presses that button and adding it to the proper place. It is shown correctly..

Duplicate ID, tag null, or parent id with another fragment for com.google.android.gms.maps.MapFragment

http://stackoverflow.com/questions/14083950/duplicate-id-tag-null-or-parent-id-with-another-fragment-for-com-google-androi

ID tag null or parent id with another fragment for com.google.android.gms.maps.MapFragment I have an application with three tabs. Each tab has its own layout .xml file. The main.xml has its own map fragment. It's.. 0 ActionBar.DISPLAY_SHOW_TITLE bar.addTab bar .newTab .setText Map .setTabListener new TabListener MapFragment this map MapFragment.class bar.addTab bar .newTab .setText Settings .setTabListener new TabListener SettingsFragment.. bar.addTab bar .newTab .setText Map .setTabListener new TabListener MapFragment this map MapFragment.class bar.addTab bar .newTab .setText Settings .setTabListener new TabListener SettingsFragment this settings SettingsFragment.class..

Google maps api v2 custom infowindow like in original android google maps

http://stackoverflow.com/questions/14123243/google-maps-api-v2-custom-infowindow-like-in-original-android-google-maps

action. My idea is as follows Keep a reference to the custom infoWindow created in the InfoWindowAdapter. Wrap the MapFragment or MapView inside a custom ViewGroup mine is called MapWrapperLayout Override the MapWrapperLayout's dispatchTouchEvent.. wrap_content android layout_height wrap_content android text Button LinearLayout Test activity layout file MapFragment being inside the MapWrapperLayout com.circlegate.tt.cg.an.lib.map.MapWrapperLayout xmlns android http schemas.android.com.. id @ id map android layout_width match_parent android layout_height match_parent class com.google.android.gms.maps.MapFragment com.circlegate.tt.cg.an.lib.map.MapWrapperLayout And finally source code of a test activity which glues all this together..

Moving MapFragment (SurfaceView) causes black background flickering

http://stackoverflow.com/questions/14419521/moving-mapfragment-surfaceview-causes-black-background-flickering

MapFragment SurfaceView causes black background flickering I'm trying to implement new Android Google Maps API v2 . However it doesn't.. to implement new Android Google Maps API v2 . However it doesn't seem to go well with SlidingMenu . As you may know MapFragment implementation is based on SurfaceView . The problem is that the SurfaceView doesn't like moving it around I mean placing.. the orange screen is pulled away while opening SlidingMenu the animation is smooth and nice. But as soon as the MapFragment appears there's some weird refreshing flickering synchronization issue on the map. Tested on HTC One S and Samsung Galaxy..

Google Maps api v2 class not found

http://stackoverflow.com/questions/16583118/google-maps-api-v2-class-not-found

replacing opcode 0x22 at 0x0002 05 16 08 53 34.347 E dalvikvm 3422 Could not find class 'com.google.android.gms.maps.MapFragment' referenced from method com.apptree.de_luxe.InfoActivity.setUpMapIfNeeded 05 16 08 53 34.347 W dalvikvm 3422 VFY unable.. 05 16 08 53 34.347 W dalvikvm 3422 VFY unable to resolve check cast 169 Lcom google android gms maps MapFragment in Lcom apptree de_luxe InfoActivity 05 16 08 53 34.357 D dalvikvm 3422 VFY replacing opcode 0x1f at 0x000f 05 16 08 53..

MapView in a Fragment (Honeycomb)

http://stackoverflow.com/questions/5109336/mapview-in-a-fragment-honeycomb

291 E AndroidRuntime 834 at com.google.android.maps.MapView. MapView.java 235 E AndroidRuntime 834 at de.foo.FinderMapFragment.onCreateView FinderMapFragment.java 225 E AndroidRuntime 834 at android.app.FragmentManagerImpl.moveToState FragmentManager.java.. com.google.android.maps.MapView. MapView.java 235 E AndroidRuntime 834 at de.foo.FinderMapFragment.onCreateView FinderMapFragment.java 225 E AndroidRuntime 834 at android.app.FragmentManagerImpl.moveToState FragmentManager.java 708 E AndroidRuntime 834.. 834 at android.view.LayoutInflater.createViewFromTag LayoutInflater.java 664 Really there should be something like MapFragment that takes care of the background threads MapView needs I guess... So what is the current best practice to do this Thanks..

Google Maps Android API v2 throws GooglePlayServicesNotAvailableException, out of date, SupportMapFragment.getMap() returns null

http://stackoverflow.com/questions/13722192/google-maps-android-api-v2-throws-googleplayservicesnotavailableexception-out-o

protected void onResume ... Fragment fragment getSupportFragmentManager .findFragmentById R.id.map SupportMapFragment mapFragment SupportMapFragment fragment mMap mapFragment.getMap PROBLEM mMap is null here even though mapFragment is not Then I thought.. getSupportFragmentManager .findFragmentById R.id.map SupportMapFragment mapFragment SupportMapFragment fragment mMap mapFragment.getMap PROBLEM mMap is null here even though mapFragment is not Then I thought I probably need to initialize the fragments.. mapFragment SupportMapFragment fragment mMap mapFragment.getMap PROBLEM mMap is null here even though mapFragment is not Then I thought I probably need to initialize the fragments so I added in my onCreate after setting the content view..

Map view following user - MyLocationOverlay type functionality for Android Maps API V2

http://stackoverflow.com/questions/13739990/map-view-following-user-mylocationoverlay-type-functionality-for-android-maps

to get a reference to the Location Manager when instantiating this fragment from your activity use PlaceMapFragment mapFragment new PlaceMapFragment this public PlaceMapFragment Context context this.mContext context @Override public void onActivityCreated..

How to get My Location changed event with Google Maps android API v2?

http://stackoverflow.com/questions/13742551/how-to-get-my-location-changed-event-with-google-maps-android-api-v2

to get a reference to the Location Manager when instantiating this fragment from your activity use PlaceMapFragment mapFragment new PlaceMapFragment this public PlaceMapFragment Context context this.mContext context @Override public void onActivityCreated..

Capture screen shot of GoogleMap Android API V2

http://stackoverflow.com/questions/13773658/capture-screen-shot-of-googlemap-android-api-v2

used by V2 of the api does not have a getRootView method like MapView does. I tried to do this SupportMapFragment mapFragment SupportMapFragment getSupportFragmentManager .findFragmentById R.id.basicMap View v1 mapFragment.getView But the screenshot.. SupportMapFragment mapFragment SupportMapFragment getSupportFragmentManager .findFragmentById R.id.basicMap View v1 mapFragment.getView But the screenshot that I get does not have any map content and looks like this Has anyone figured out how to take..

google maps android api v2 - detect touch on map

http://stackoverflow.com/questions/14013002/google-maps-android-api-v2-detect-touch-on-map

in the layout i declare it this way fragment xmlns android http schemas.android.com apk res android android id @ id mapFragment android layout_width match_parent android layout_height wrap_content android layout_alignParentBottom true android layout_below..

MapFragment in Action Bar Tabs

http://stackoverflow.com/questions/14074625/mapfragment-in-action-bar-tabs

ActionBar.Tab settingsTab bar.newTab .setText Settings ActionBar.Tab aboutTab bar.newTab .setText About MapFragment mapFragment new MapFragment SettingsFragment settingsFragment new SettingsFragment AboutFragment aboutFragment new AboutFragment mapTab.setTabListener.. new SettingsFragment AboutFragment aboutFragment new AboutFragment mapTab.setTabListener new TabListener mapFragment settingsTab.setTabListener new TabListener settingsFragment aboutTab.setTabListener new TabListener aboutFragment Tab selectedTab..

Duplicate ID, tag null, or parent id with another fragment for com.google.android.gms.maps.MapFragment

http://stackoverflow.com/questions/14083950/duplicate-id-tag-null-or-parent-id-with-another-fragment-for-com-google-androi

android orientation vertical fragment xmlns android http schemas.android.com apk res android android id @ id mapFragment android name com.google.android.gms.maps.MapFragment android layout_width match_parent android layout_height match_parent.. e map is already there just return view as it is return view For good measure here's map.xml R.layout.map with R.id.mapFragment android id @ id mapFragment xml version 1.0 encoding utf 8 LinearLayout xmlns android http schemas.android.com apk res android.. return view as it is return view For good measure here's map.xml R.layout.map with R.id.mapFragment android id @ id mapFragment xml version 1.0 encoding utf 8 LinearLayout xmlns android http schemas.android.com apk res android android id @ id mapLayout..

Google maps api v2 custom infowindow like in original android google maps

http://stackoverflow.com/questions/14123243/google-maps-api-v2-custom-infowindow-like-in-original-android-google-maps

Bundle savedInstanceState super.onCreate savedInstanceState setContentView R.layout.activity_main final MapFragment mapFragment MapFragment getFragmentManager .findFragmentById R.id.map final MapWrapperLayout mapWrapperLayout MapWrapperLayout findViewById.. final MapWrapperLayout mapWrapperLayout MapWrapperLayout findViewById R.id.map_relative_layout final GoogleMap map mapFragment.getMap MapWrapperLayout initialization 39 default marker height 20 offset between the default InfoWindow bottom edge and..

Is there a way to implement rounded corners to a Mapfragment?

http://stackoverflow.com/questions/14469208/is-there-a-way-to-implement-rounded-corners-to-a-mapfragment

question I haven't tried this but I'd put a view with rounded corners and a transparent middle on top of the mapView mapFragment. That is put the mapFragment and the rounded corner view in a FrameLayout with both filling the FrameLayout then make the.. but I'd put a view with rounded corners and a transparent middle on top of the mapView mapFragment. That is put the mapFragment and the rounded corner view in a FrameLayout with both filling the FrameLayout then make the middle of the rounded corner.. android layout_height match_parent fragment xmlns map http schemas.android.com apk res auto android id @ id mapFragment android layout_width match_parent android layout_height match_parent class com.google.android.gms.maps.MapFragment LinearLayout..

android maps stop responding after resuming fragment

http://stackoverflow.com/questions/16409783/android-maps-stop-responding-after-resuming-fragment

until onResume . Here is the layout you navigate through the app in 1 single activity with multiple fragments. This mapFragment is contained inside of a fragment. This works fine. However when I add another fragment and push this one on the back stack.. this by moving my call to setupMaps into the onResume however this caused gMaps to be null when I get it from gMaps mapFragment.getMap in the setViews . How should I handle this @Override public View onCreateView LayoutInflater inflater ViewGroup container.. container false setupMaps return root private void setupMaps gMaps null fm getActivity .getSupportFragmentManager mapFragment SupportMapFragment.newInstance android.support.v4.app.FragmentTransaction transaction getChildFragmentManager .beginTransaction..