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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -