parcelable
Passing JSONObject into another activity
I\'m hitting an external API that\'s returning JSON data (new dvd titles).I\'m able to parse out the JSON and list each dvd title and other dvd information into a ListView just fine.I was also able to[详细]
2023-02-12 11:31 分类:问答How can I send an object from one Activity to another with Intent.putExtra and Parcel?
Using Stack Overflow question How to send an object from one Android Activity to another using Intents?, I have made a sample application as follows.[详细]
2023-02-11 23:48 分类:问答Android: Parcelable.writeToParcel and Parcelable.Creator.createFromParcel are never called
I\'m totally new to posting questions on here, however I have been reading a lot on here for years. Normally I always am able to find my answers by thoroughly searching the web, but this time I am at[详细]
2023-02-07 13:43 分类:问答Arraylist in parcelable object
I have seen many parcelable examples so far, but for some reason I can\'t get it to work when it gets a bit more complex.[详细]
2023-02-04 06:26 分类:问答Put Object as intent for next activity
Is it possible to to put an object of type Object into an intent as a Extra? I have a variable of type object and won\'t know until it is assigned a value as to what the object datatype is. Maybe some[详细]
2023-02-03 14:30 分类:问答Trouble using parcels to send Object of unknown datatype
I asked a question the other day regarding sending an object to an activity using an intent as a parcel but I am unsure how to do it in my situation. I have a variable of type object Object x; which i[详细]
2023-02-03 04:19 分类:问答Parcel vs. Serializeable for exchanging objects among services/activities
Let me first give you the whole picture: I am developing a location based application, that invokes a constant recreation and exchange of objects, among several activities and services. The necessary[详细]
2023-02-02 22:08 分类:问答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 分类:问答Nested Parcelling : RuntimeException - Unmarshalling unknown type code 3211319 at offset 440
I need to send some data to an Activity, which may be running in different context. For this I created a class say A, which has an ArrayList of datatype say B as its one of instance member . I declare[详细]
2023-01-24 22:30 分类:问答Android: passing data between views
In my Android app, I have two custom view classes - PortraitClass and LandscapeClass. They both do the same thing. On running the app, the view class fetches some pictures from an SDCard and then mani[详细]
2023-01-24 10:15 分类:问答