Android Parcelable Implementation with ArrayList<Object>

前端 未结 2 924
名媛妹妹
名媛妹妹 2021-01-18 06:41

so I am implementing a test app in which I will create a Tournament object as Parcelable and will pass them between intents. A tournament include: . A tournament name . Rule

2条回答
  •  半阙折子戏
    2021-01-18 07:08

    a lot of these things turn out to be R.P.C.'s -- I would write the major portion of the work in traditional Java then try to make the ......

    yep, sure enough:

    Container for a message (data and object references) that can be sent through an IBinder. A Parcel can contain both flattened data that will be unflattened on the other side of the IPC (using the various methods here for writing specific types, or the general Parcelable interface), and references to live IBinder objects that will result in the other side receiving a proxy IBinder connected with the original IBinder in the Parcel.

    in other words Parcel is a form of interprocess communication ....

    you have to re-think the base model as this is not a 10,000 requests a second server - what it is is a hand-held consumer device that can just pull the pointers off the process table if it has to because of where it operates

    I have learned to go to the blog tab at http://android-developers.blogspot.com/?hl=en

    be very careful not to drill the entry deep into stuff that needs to be in worker threads and note the rich synchronization primitives that Java makes easy to use

    Multithreading For Performance

    Posted by Tim Bray on 19 July 2010 at 11:41 AM [This post is by Gilles Debunne, an engineer in the Android group who loves to get multitasked. — Tim Bray]

    it's in the blogs --- much better place to start

提交回复
热议问题