parceler

DP5 7.0 - Does adding extras to a pending intent fail?

那年仲夏 提交于 2019-12-03 13:01:05
Adding the linked issue on tracker: https://code.google.com/p/android/issues/detail?id=216581&thanks=216581&ts=1468962325 So I installed the DP5 Android 7.0 release onto my Nexus 5X today. I've been working on an app that schedules local notifications at specific times using Android's AlarmManager class. Up until this release, the code has been working great on devices running KitKat, Lollipop, and Marshmallow. Below is how I'm scheduling the alarms: Intent intent = new Intent(context, AlarmManagerUtil.class); intent.setAction(AlarmManagerUtil.SET_NOTIFICATION_INTENT); intent.putExtra

Usage of parceler (@Parcel) with Realm.io (Android)

谁都会走 提交于 2019-11-29 15:25:36
问题 I have the following code which produces the error: Error:Parceler: Unable to find read/write generator for type io.realm.Realm for io.realm.RealmObject.realm It was working all fine without extends RealmObject , however I want to use Realm to put to database easily. Is there a way to exlcude the RealmObject fields and just use the basic pojo fields for @Parcel? @Parcel public class Feed extends RealmObject{ int id; public String text; public String time_created; String time_modified; int

RealmList with @Parcelize annotation

ⅰ亾dé卋堺 提交于 2019-11-27 06:26:18
问题 I'm trying to use the new @Parcelize annotation added with Kotlin 1.1.4 with a Realm objet containing a RealmList attribute. @Parcelize @RealmClass open class Garage( var name: String? = null, var cars: RealmList<Car> = RealmList() ) : Parcelable, RealmModel As RealmList is not supported by the annotation and assuming that @Parcelize is there specially to avoid creating methods what would be the solution to support RealmList ? Thanks in advance 回答1: EDIT: Using the power of Type Parcelers and