[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread Dianne Hackborn
http://developer.android.com/reference/android/content/Intent.html#putExtra(java.lang.String,%20int) And all of the other overloaded methods for various types. On Mon, Mar 23, 2009 at 10:40 PM, me tun a...@tpg.com.au wrote: How can I do that? Is there a reference you can point me to? On

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread me tun
Thanks Dianne, I'm not sure if I have been completely clear. When I start my application from the launcher, I want to pass it some of my own data (left or right for example) if I'm talking about handedness... How do I go about doing this? I've tried passing it as above but it doesn't seem to

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread Dianne Hackborn
I'm not really understanding. When you say I start my application from the launcher, do you mean you as a user pressing the app icon? If so, there is nothing you can add -- the launcher just starts you with a MAIN action intent. You can't modify what that will be. If you are talking about

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread me tun
Yeah, I mean starting the application from the launcher! Does this mean I essentially cannot initialize my application with any data I want to pass to it this way? It seems very strange? Anyway, thanks heaps for your help, it's really appreciated. On Mar 25, 10:41 am, Dianne Hackborn

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread me tun
LOL sorry, that was about as clear as before: I meant the user pressing the app icon :) On Mar 25, 10:52 am, me tun a...@tpg.com.au wrote: Yeah, I mean starting the application from the launcher! Does this mean I essentially cannot initialize my application with any data I want to pass to

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread Mark Murphy
me tun wrote: Does this mean I essentially cannot initialize my application with any data I want to pass to it this way? It seems very strange? Each activity usually only has one icon in the launcher. There is nothing to pass in that you could not just as easily have encoded into the activity

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread me tun
OK, time to come clean, I know people who are hacking the framework are not generally well received around here... But when we launch an activity we want to pass some data (lets say FULL_SCREEN / HALF_SCREEN) and we want the activity to start in full screen or half screen. Is this possible? On

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread Mark Murphy
me tun wrote: OK, time to come clean, I know people who are hacking the framework are not generally well received around here... It's more that there are other lists for those who are hacking the framework: http://source.android.com/discuss But when we launch an activity we want to pass

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread me tun
Thanks, you've been a great help. I understand that there is another list for framework discussion but I thought there would be a way to do it via the SDK so I asked here. Cheers everyone! On Mar 25, 11:20 am, Mark Murphy mmur...@commonsware.com wrote: me tun wrote: OK, time to come clean,

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread Dianne Hackborn
On Tue, Mar 24, 2009 at 4:52 PM, me tun a...@tpg.com.au wrote: Does this mean I essentially cannot initialize my application with any data I want to pass to it this way? It seems very strange? The user installed your app. Its icon showed up in the launcher. They tapped on the icon. There

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread me tun
Yeah, I understand, there would be a flow however if my app had a flag in it that requested the application to take up only half the screen or something. I think? I had already tried Mark's way (great book btw) which does work but isn't quite an elegant solution nor is it exactly what I'm

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread Mark Murphy
me tun wrote: I had already tried Mark's way (great book btw) Thanks! which does work but isn't quite an elegant solution nor is it exactly what I'm trying to achieve. Oh, well. In these support forums, it's win a few, lose a few. -- Mark Murphy (a Commons Guy) http://commonsware.com

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread me tun
That's right, it's a nice group here :) On Mar 25, 11:57 am, Mark Murphy mmur...@commonsware.com wrote: me tun wrote: I had already tried Mark's way (great book btw) Thanks! which does work but isn't quite an elegant solution nor is it exactly what I'm trying to achieve. Oh, well.

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-24 Thread me tun
How about I add a half screen theme and interpret it from that (perhaps via the history record class)? i.e: android:theme=@android:style/Theme.HalfScreen How would one go about creating their own theme? On Mar 25, 11:59 am, me tun a...@tpg.com.au wrote: That's right, it's a nice group here :)

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-23 Thread Dianne Hackborn
Please don't make up URI schemes. If you are passing app-private data, you should probably just put it in as extra fields of whatever type you want. On Mon, Mar 23, 2009 at 10:20 PM, me tun a...@tpg.com.au wrote: Hello, I've tried something similar to this, intent.setData(Uri.parse

[android-developers] Re: How do I pass data in an intent from an activity started from the launcher?

2009-03-23 Thread me tun
How can I do that? Is there a reference you can point me to? On Mar 24, 4:35 pm, Dianne Hackborn hack...@android.com wrote: Please don't make up URI schemes.  If you are passing app-private data, you should probably just put it in as extra fields of whatever type you want. On Mon, Mar 23,