I have developed an Android client-server application. I have implemented Google map V2 in my application so that user can see his nearby places on map. But when I switch between map and normal activity, my application is suddenly crashing only on Android device with OS 5.0. I have used map fragment. Below is the crash report that I am getting:
android.system.ErrnoException: read failed: EAGAIN (Try again)
at libcore.io.Posix.readBytes(Native Method)
at libcore.io.Posix.read(Posix.java:147)
at libcore.io.BlockGuardOs.read(BlockGuardOs.java:230)
at android.system.Os.read(Os.java:364)
at com.android.server.am.NativeCrashListener.consumeNativeCrashData(NativeCrashListener.java:240)
at com.android.server.am.NativeCrashListener.run(NativeCrashListener.java:138)
Here is how I have instantiated my google map:
mapView = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.mapview)).getMap();
I googled a lot to find out the root cause of this crash, but I found nothing. Is that OS specific issue, as I am not getting anything from crash log telling where my application is crashing.
Please guide me to get ride of this crash.