Questions tagged [mapfragment]

The Android Fragment that represents a Map component in an Android app.

240 questions
0
votes
1 answer

Using OnMapClickListener with intent activity

My android application is calling Google Maps (using ACTION_VIEW) from my first activity. public void goToMap(View v) { Toast.makeText(this,"Button is clicked",Toast.LENGTH_SHORT).show(); Intent intent = new Intent(Intent.ACTION_VIEW); …
rachitmanit
  • 324
  • 3
  • 12
0
votes
1 answer

Show route and map icon by default - Mapfragment Android

Hi, 1. Please find the route and map icon in the highlighted area. 2. These are shown on touch of the my location blue circle . 3. want to show those icons by default, without the user touching, as soon as the map loads. Below is the code : …
0
votes
1 answer

Track user location in Realtime using Polylines in Google Maps (Android)

I have some experience with Android, but am new to using the Google Maps API and Location Services. I am trying to show the user's movement on a MapFragment by moving the tracker and drawing a Polyline over where the user has been, sort of like…
0
votes
1 answer

Trouble detecting current location in a map in Fragment

I am able to see a map but does not zoom into the current location. The code breaks in the try-catch block and Google Play Services missing ! is seen. **THIS IS WHERE THE CRASH HAPPENS ** map = mapFragment.getMap(); Full code below: public class…
0
votes
0 answers

SupportMapFragment inside of ViewPager with ScrollingViewBehavior inside of CoordinatorLayout jumps on render

Here is my layout. The main idea is a ViewPager with few fragments and action bar above. I sucessfully added a fragment with a SupportMapFragment inside of it. But I ran into a problem in android 4.0.4. When I use this layout below, my map…
0
votes
1 answer

google maps fragment inside a fragment cant maipulate my map

I'm trying to show a google map fragment inside another fragment, however I can't manipulate the map, I already put all the steps that i saw on the documentation, but i cant manipulate my map. XML code:
0
votes
1 answer

SupportMapFragment nested in SupportFragment getMap() returns NULL

Migrating from a MapActivity with a static SupportMapFragment in the layout to pure dynamic fragments. The below code is the parent fragment. It contains a content view which I want to contain a dynamically created SupportMapFragment. The content…
user2355058
0
votes
1 answer

Properly animate drawing of circle on a MapFragment

I am making an app that should allow users to draw a circle on top of the map. I've used the answer for this question to allow the user to drag out a variable sized circle using this touch listener: public void setupListeners(){ …
Derongan
  • 790
  • 6
  • 24
0
votes
1 answer

How to load a fragment over mapfragment in Android?

Map fragment will be the default fragment and on a click a new fragment should be loaded and a value has to be entered in the fragment and this value has to be passed to the map fragment
0
votes
1 answer

Update listFragment when camera changes in MapFragment

I have an app with two fragments and I want to implement the ViewPager and ActionBarTabs to it. My question is: Is there any way to recreate my ListFragment each time when user moves camera in my MapFragment ? Each move assigns different values to…
0
votes
1 answer

Duplicate id error when put Google map in each fragment of Viewpager

I'm now following a viewpager guide in http://developer.android.com/training/implementing-navigation/lateral.html And I met a serious problem. As I wrote in title, I tried to put the Google map v2 in each fragment of viewpager and I met this error.…
Hwangho Kim
  • 629
  • 4
  • 20
0
votes
1 answer

get SupportMapFragment in other class

is it possible to get access from googlemap(SupportMapFragment) in other class? i test several method and get follow errors: map = ((SupportMapFragment) …
0
votes
0 answers

Android Fragment containing MapFragment not working

I Want to Implement an MapFragment into my TabedActivity. All that is still working fine, the Problem appears when I try to get Access to the Map to modify it. I Hope you could Help me. public class RecordTrailFragment extends Fragment implements…
Mojo
  • 377
  • 6
  • 18
0
votes
3 answers

Google Map Not Working Inside HorizontalScrollView with ViewPager

I am trying to add the google map inside one of Item of ViewPager that is HorizontalScrollView. I want to show the multiple location of store in my project so using HorizontalScrollView to scroll left to right only for googlemap and complete page…
0
votes
0 answers

Replace using MapFragment skips frames

I have a simple layout which contains LaunchFragment. Pressing a button in LaunchFragment replaces it with a MapFragment as follows: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
Naveed
  • 2,942
  • 2
  • 25
  • 58