java - Using two Fragment librarys -


i need use android.support.v4.app.fragment class in 1 piece of code. in one, need use android.app.fragment.

 mapfragment mapfragment = (mapfragment) getfragmentmanager()                                 .findfragmentbyid(r.id.map); 

in part in getting message saying can't cast android.support.v4.app.fragment com.google.android.gms.maps.mapfragment.

i know if import android.app.fragment error resolved, can't, because alreay have android.support.v4.app.fragment.

how can fix it?

wherever use fragment android.support.v4.app package, type in whole name (android.support.v4.app.fragment) once that, remove android.support.v4.app.fragment import, , replace import want.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -