Because this was not answered in “answer” but in comment I will post an answer:
As @Max-Gontar pointed you should use LocationType.class.getClassLoader() to get the correct ClassLoader and get rid of ClassNotFound exception, i.e.:
in.readParceleable(LocationType.class.getClassLoader());
More Related Contents:
- How can I pass a Bitmap object from one activity to another
- Parcelable and inheritance in Android
- how to properly implement Parcelable with an ArrayList?
- How to work with xml and java (android) [closed]
- How can I implement custom Action Bar with custom buttons in Android?
- Set margins in a LinearLayout programmatically
- Secure HTTP Post in Android
- Android “gps requires ACCESS_FINE_LOCATION” error, even though my manifest file contains this
- What do I use now that Handler() is deprecated?
- Difference between getExternalFilesDir and getExternalStorageDirectory()
- Android: Pass data(extras) to a fragment
- How do I manage cookies with HttpClient in Android and/or Java?
- Android Resource – Array of Arrays
- how to save bitmap to android gallery
- Java / Android – How to print out a full stack trace?
- ksoap2 org.xmlpull.v1.xmlpullparserexception expected start_tag error
- notifyDataSetChanged() makes the list refresh and scroll jumps back to the top
- How to retrieve a list of available/installed fonts in android?
- Calculating the angle between a line and the x-axis
- Infinite Scrolling Image ViewPager
- App crashing when trying to use RecyclerView on android 5.0
- What is the equivalent to a JavaScript setInterval/setTimeout in Android/Java?
- Android : save a Bitmap to bmp file format
- How can I check available space on an Android device? On an SD card? [duplicate]
- How to disable spelling corrections programmatically in Android
- Can one class extend two classes?
- Proper way to handle action bar up button?
- BroadcastReceiver not receiving download complete action
- Android: java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.String java.lang.Object.toString()’ on a null object reference
- Default Navigation Drawer View to ExpandableListView