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

2010-12-05 Thread Dev Android
can you please paste here code snippet.


On Fri, Dec 3, 2010 at 3:50 AM, John C. Bland II johncblan...@gmail.comwrote:

 Just reporting back. It works perfectly. I had a couple glitches but that
 was bad coding. :-D

 Thx guys!

 ---
 John C. Bland II
 Blog: http://www.johncblandii.com
 Company: http://www.katapultmedia.com
 Twitter: @johncblandii


 On Tue, Nov 30, 2010 at 11:22 AM, John C. Bland II johncblan...@gmail.com
  wrote:

 Ok...I'll look into it. Thx dude!

 ---
 John C. Bland II
 Blog: http://www.johncblandii.com
 Company: http://www.katapultmedia.com
 Twitter: @johncblandii


 On Mon, Nov 29, 2010 at 9:42 PM, TreKing treking...@gmail.com wrote:

 On Mon, Nov 29, 2010 at 9:29 PM, John C. Bland II 
 johncblan...@gmail.com 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.



 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

   --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


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

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

2010-12-02 Thread John C. Bland II
Just reporting back. It works perfectly. I had a couple glitches but that
was bad coding. :-D

Thx guys!

---
John C. Bland II
Blog: http://www.johncblandii.com
Company: http://www.katapultmedia.com
Twitter: @johncblandii


On Tue, Nov 30, 2010 at 11:22 AM, John C. Bland II
johncblan...@gmail.comwrote:

 Ok...I'll look into it. Thx dude!

 ---
 John C. Bland II
 Blog: http://www.johncblandii.com
 Company: http://www.katapultmedia.com
 Twitter: @johncblandii


 On Mon, Nov 29, 2010 at 9:42 PM, TreKing treking...@gmail.com wrote:

 On Mon, Nov 29, 2010 at 9:29 PM, John C. Bland II johncblan...@gmail.com
  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.



 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

   --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




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

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

2010-11-30 Thread John C. Bland II
Ok...I'll look into it. Thx dude!

---
John C. Bland II
Blog: http://www.johncblandii.com
Company: http://www.katapultmedia.com
Twitter: @johncblandii


On Mon, Nov 29, 2010 at 9:42 PM, TreKing treking...@gmail.com wrote:

 On Mon, Nov 29, 2010 at 9:29 PM, John C. Bland II 
 johncblan...@gmail.comwrote:

 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.



 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

   --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


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

[android-developers] Passing objects to new intents

2010-11-29 Thread John C. Bland II
I've googled this quite a bit and have seen many arguments to not pass the
object rather store it in a database, use a custom Application object, or a
static variable.

Ultimately, the app will use a database so I'll just pass the id of the
record and pull it out in the new intent [correct me if that's not a solid
direction] but for now I am strictly looking to learn.

Should I continue to explore passing a full POJO to an intent, passing each
individual value as an extra [prefer not], or stick with the database
approach?

Thanks folks!

---
John C. Bland II
Blog: http://www.johncblandii.com
Company: http://www.katapultmedia.com
Twitter: @johncblandii

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

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

2010-11-29 Thread TreKing
On Mon, Nov 29, 2010 at 10:09 AM, John C. Bland II
johncblan...@gmail.comwrote:

 Should I continue to explore passing a full POJO to an intent, passing each
 individual value as an extra [prefer not], or stick with the database
 approach?


Objects that I need to pass across Activities or Services I make
bundleable, which just means they can contain two functions to store their
state to a bundle then restore it from a bundle.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

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

2010-11-29 Thread John C. Bland II
So you return a Bundle and receive a bundle then expand it to the
properties?

That's pretty quality. Good thought.

---
John C. Bland II
Blog: http://www.johncblandii.com
Company: http://www.katapultmedia.com
Twitter: @johncblandii


On Mon, Nov 29, 2010 at 12:41 PM, TreKing treking...@gmail.com wrote:

 On Mon, Nov 29, 2010 at 10:09 AM, John C. Bland II johncblan...@gmail.com
  wrote:

 Should I continue to explore passing a full POJO to an intent, passing
 each individual value as an extra [prefer not], or stick with the database
 approach?


 Objects that I need to pass across Activities or Services I make
 bundleable, which just means they can contain two functions to store their
 state to a bundle then restore it from a bundle.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

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

2010-11-29 Thread TreKing
On Mon, Nov 29, 2010 at 9:29 PM, John C. Bland II johncblan...@gmail.comwrote:

 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.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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