thanks for your response....!!

I will add more into the details, what scenario i am in.

I am trying to pick the Notification view from status bar and put into
another application.
Its our requirement that for our product we are planning to remove the
notification view from status bar and keep it in some other
application.

i did analysis on statusBarService, and found out that there is view
which is been inflated and statusBarservice is been called by
NotificationManager to update this view. It was quite very difficult
to decouple the logics between them.


-frameworks/base/services/java/com/android/server/status/
StatusBarService.java

private void makeStatusBarView(Context context) {
    Resources res = context.getResources();
    mRightIconSlots =
res.getStringArray(com.android.internal.R.array.status_bar_icon_order);
    mRightIcons = new StatusBarIcon[mRightIconSlots.length];

    **ExpandedView expanded** = (ExpandedView)View.inflate(context,
            com.android.internal.R.layout.status_bar_expanded, null);
}

So i thought of passing this view instance ( i.e expanded ) to an
another application via aidl. and we can show the view, but updating
the view and those logics still remains same....!!

It may not be the best approach, but still we wanted to try out and
see the pros and cons..!!

so my question was is there an way to convert view object to bytes and
pass them via parcel ? if so can you help me how to do that ?

Thanks,
Mani
On Mar 13, 6:14 pm, Mark Murphy <[email protected]> wrote:
> On Sun, Mar 13, 2011 at 7:26 AM, mani <[email protected]> wrote:
> >  Basically i am trying to pass a view instance from one process to
> > another process.
>
> I can think of no valid scenario where this would be the appropriate design.
>
> First, unless these are multiple applications, there should not be
> multiple processes.
>
> If there are multiple applications, those applications should expose
> an API that ships model data between processes, not views.
>
> To put it another way, what you are asking is akin to "how do I pass
> this listbox from Microsoft Excel to Quicken?". Passing *data* from
> Excel to Quicken may make sense; passing GUI widgets from Excel to
> Quicken does not, IMHO.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 3.0 Programming Books:http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to