android - How to replace SupportMapFragment? -


platform: android sdk 17

mapbox sdk version: com.mapbox.mapboxsdk:mapbox-android-sdk:5.1.2@aar

sample code: https://github.com/tomekancu/mapboxproblem

steps trigger behavior

  1. create 2 fragment instances, each containing mapview.
  2. replacing 1 fragment other.

    fragmenttransaction transaction = fragmentmanager.begintransaction(); transaction.replace(r.id.fragment_container, mapviewfragmenttwo); transaction.commit();

problem occurs when < android api 18

expected behavior

replaced first fragment second

actual behavior

app crash, logcat shows  08-17 17:38:02.992 15020-15020/? a//system/bin/app_process: stack corruption detected: aborted 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -