Re: [android-developers] Re: Passing objects to new intents

2011-01-28 Thread Kumar Bibek
Perhaps, a mismatch of title and content. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Fri, Jan 28, 2011 at 5:26 PM, Mohamed KARAMI wrote: > *Hi, > > I have I9000** with I9000JPJG8 firmeware, Market application work > perfectly but, i can't find Google maps in the Market

Re: [android-developers] Re: Passing objects to new intents

2011-01-28 Thread Mohamed KARAMI
*Hi, I have I9000** with I9000JPJG8 firmeware, Market application work perfectly but, i can't find Google maps in the Market, I have found some articles that says there is a license issue, I used the bar code of maps application, but Market return no application. Any ideas. * -- You received th

Re: [android-developers] Re: Passing objects to new intents

2011-01-28 Thread Kostya Vasilyev
Serializable has higher overhead than Android's similar built-in interface, Parcelable. Try using Parcelable if possible, and consider support for Java serialization a fall-back (for compatibility with legacy and library code). -- Kostya 28.01.2011 14:44, maccoy пишет: why not class implemen

[android-developers] Re: Passing objects to new intents

2011-01-28 Thread maccoy
why not class implementes Serializable myBundle.putSerializable( and get the class back?? is there a performance issue? On Dec 30 2010, 5:21 pm, TreKing wrote: > On Thu, Dec 30, 2010 at 3:36 AM, maomaostevencao < > > maomaosteven...@hotmail.com> wrote: > > What you have said is the common way to

Re: [android-developers] Re: Passing objects to new intents

2010-12-30 Thread TreKing
On Thu, Dec 30, 2010 at 3:36 AM, maomaostevencao < maomaosteven...@hotmail.com> wrote: > What you have said is the common way to pass arguments to an activity. > Right. > But my question is about how to pass an object of user defined class to an > activity. > Passing a user defined object to a

RE: [android-developers] Re: Passing objects to new intents

2010-12-30 Thread maomaostevencao
nheritance hierarchy. _ From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of TreKing Sent: Thursday, December 30, 2010 7:56 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Passing objects to new intents On Tue, Dec

Re: [android-developers] Re: Passing objects to new intents

2010-12-29 Thread TreKing
On Tue, Dec 28, 2010 at 11:52 PM, maomaostevencao < maomaosteven...@hotmail.com> wrote: > If I want to load a new activity and pass some of arguments using this > way, I have to get the reference of this new activity, but seems platform > doesn't provide any API to get it. How can you do it? I mea

RE: [android-developers] Re: Passing objects to new intents

2010-12-28 Thread maomaostevencao
m [mailto:android-develop...@googlegroups.com] On Behalf Of TreKing Sent: Monday, December 06, 2010 5:35 AM To: android-developers@googlegroups.com Subject: Re: [android-developers] Re: Passing objects to new intents On Sun, Dec 5, 2010 at 2:42 PM, Neilz wrote: 1) This is useful as you can put a lot of c

[android-developers] Re: Passing objects to new intents

2010-12-05 Thread Neilz
Cheers Mark and TreKing for your comments. Interesting... I think for this particular app my model works particularly well. I don't need to use any of the specialist Activity classes (Map, List etc) so that problem never occured to me. But of course for most apps this would be an issue. Also, my

Re: [android-developers] Re: Passing objects to new intents

2010-12-05 Thread TreKing
On Sun, Dec 5, 2010 at 2:42 PM, Neilz wrote: > 1) This is useful as you can put a lot of common methods and vars in > there,,, > As Mark said you can't really do this if you use any of the derived Activity classes (List, Tab, and especially Map). For this kind of "common activity stuff" I create

Re: [android-developers] Re: Passing objects to new intents

2010-12-05 Thread Mark Murphy
On Sun, Dec 5, 2010 at 3:42 PM, Neilz wrote: > Now maybe this is obvious, but I must say I haven't seen this in any > other examples. I'm wondering if there's something 'wrong' with  this, > any reason why this shouldn't be done? 1. Watch for memory leaks. Do not put things in static contexts tha

[android-developers] Re: Passing objects to new intents

2010-12-05 Thread Neilz
In my latest app I had a lot of activities, and had to pass a lot of objects between them. So, I came up with a different solution. I created a base activity, common to the application, and made all my other activities extend my base activity. 1) This is useful as you can put a lot of common meth

Re: [android-developers] Re: Passing objects to new intents

2010-11-30 Thread TreKing
On Tue, Nov 30, 2010 at 1:11 AM, Doug wrote: > > Parcelable is not such a headache once you get the boilerplate code out of > the way. > It's not only the repetitive "CREATOR" stuff. I found that if I send a custom parcelable to a Service which was to start after my main Activity had gone away, l

[android-developers] Re: Passing objects to new intents

2010-11-29 Thread Doug
On Nov 29, 7:42 pm, TreKing wrote: > On Mon, Nov 29, 2010 at 9:29 PM, John C. Bland II > wrote: > > > So you return a Bundle and receive a bundle then expand it to the > > properties? > > Yup, basically. It's like extending the Parcelable interface ... only > without the headaches. I make my obj