Android design question

by frizzo » Wed, 11 Mar 2009 13:53:12 GMT

Sponsored Links
 The system in place to pass information between the screens... I am
confused why the team chose to reinvent the wheel via the putExtras
methods.  Instead of making the transport objects inherit from
Parcelable and the like, why not just use Java's OO strength and set
objects to Activities themselves.  For instance, like this:

class Caller extends Activity {
   public on buttonClick() {
          ThisScreen ts = new ThisScreen();


class ThisScreen extends Activity {
   public void onCreate() {

   public void SetCustomValue (int i) {

Instead we are having to unnecessarily learn new concepts.  Was there
a compelling reason to implement it they it's implemented that I am
not seeing?



Android design question

by Jean-Baptiste Queru » Wed, 11 Mar 2009 21:18:32 GMT

 The reason is that the activities in question might live in different
processes, and therefore the parameters that are passed to
startActivity might have to be marshalled across virtual machines,
across processes (and across UIDs).


Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further


Sponsored Links

Android design question

by frizzo » Thu, 12 Mar 2009 14:53:20 GMT

 Ahh, understood.  Having said that, perhaps in the next rev, it'd be
good include a shortcut for in-process activity changes.



Other Threads

1. Update : Droid X harga spesial (Booked)

Mau update status WTS semalam,

Droid X sudah ada yg booked yah, considered sold.

Lelang Evo masih dibuka s.d pukul 23 nanti, setelah ditutup nanti akan
diumumkan peserta beserta harga penawarannya, supaya fair.
Sudah ada 2 penawar. Ayo bid, spy yakin menang.


2. Android SDK for Android

Is it possible to run a android sdk on android itself? Ie. develop and
maintain software only using a android device?


3. Accessing Video Thumbnail

4. spica froyo kitchen... alpha...

5. Streaming di android

6. Facebook Publish Error In Anroid Application

7. when i connect facebook through android after sign in ....