Merhabalar, Android Google map api kullandığımız fragment açıkken cihaz uyku moduna alınınca(tuş kilidi) durduruldu hatasını çözümünü nasıl yaparız bu sorun üzerinde çok araştırdım. Google srama sonuçlarındada net bir çözüm bulamadım. Bu yazımda sizlere bu sorunla karşılaştığınız da nasıl çözüme ulaşırsınız ondan bahsedeceğim, umarım yararlı olur.
Hello , Android Google map api ascertained the fragments we use sleep mode while the device ( key lock) How do we do to resolve the error stopped I researched a lot on this issue. Is clearly disclosed in the search results you get nada of the solution you encounter this problem for you in this article I will talk about it , I hope it is useful .
Error : 12-05 10:30:45.049: E/AndroidRuntime(28486): java.lang.IllegalStateException: Fragment already added: MapFragment{41284048 #0 id=0x7f0e00b8}
Fix :
@Override
public void onStart() {
//......
if(!fragMap.isAdded()) // Need to make control
{
transaction = getChildFragmentManager().beginTransaction();
transaction.add(R.id.mapView, fragMap).commit();
}
}