parcel
Putting a Bitmap into a Bundle
I want to pass a String and a Bitmap to a Service using AIDL. The Service implements this AIDL method:[详细]
2023-04-12 19:01 分类:问答Make a custom java object Parcelable in Android
I am trying to send an object of type MyCustomObject to another activity via an intent. I know, to make the class Parcelable, I should do public class MyCustomObject implements Parcelable, but I am no[详细]
2023-04-08 18:19 分类:问答How to use Parcel.readBooleanArray()?
I\'m trying to use the readB开发者_运维问答ooleanArray from android.os.Parcel, but readBooleanArray returns void and therefor it\'s unclear to me how to use this method.[详细]
2023-04-01 14:49 分类:问答there are two way to test View.onRestoreInstanceState(Parcelable state), one works the other crashes
onRestoreInstanceState can be tested by changing screen orientation, and by changing the emulator settings devtools/Development Settings/ max app process - with max set to one.[详细]
2023-03-14 14:58 分类:问答Problem with Parcel // ArrayList
I am currently trying to pass an ArrayList of objects from one activity to another. After much searching, I saw that you could pass things as parcels. Here is what I ended up doing:[详细]
2023-03-12 01:47 分类:问答Android "Bad magic number" error from readBundle
I\'ve been using bundles to pass my information around my application and occasionally save them to a file by first passing them to a parcel.[详细]
2023-02-25 05:34 分类:问答NPE in an app with remote Service on some devices (market-specific?)
I have two apps: the first one is a remote service. It\'s manifest is: <manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"[详细]
2023-02-18 18:36 分类:问答Using Parcelable on a Library Class
I want to send an object between Activities. Reading up on this i have come to conclusion that using Parcelable is the best way to go as it has the least performance impacts. The reason i want to do t[详细]
2023-02-15 01:20 分类:问答Android - When bundling List<MyClass> use Parceling or Serializing?
How should List<MyClass> be properly passed from the main activity to a secondary activity? From what I understand, there are two ways to bundle data: Parceling and Serializing. What are the pr[详细]
2023-01-30 11:19 分类:问答Parcelable where/when is describeContents() used?
Does anyone know where/when this method of a Parcelable is called? @Override public int describeCon开发者_如何学Ctents() {[详细]
2023-01-23 16:47 分类:问答