[android-developers] Re: onReceive not triggering for SEND / image

2009-09-09 Thread EnnaN

thanks :D

and progress is being made, hopefully no more of these bumps in the
road :D

n.

On Sep 9, 7:33 pm, Beth  wrote:
> Here is the nudge you wanted...
> Your intent filter needs to be set on an activity.  The code you
> posted shows it as a Broadcast Receiver.
> Change:
> 
> to
> 
> and move all your stuff from onRecieve to onCreate.  That should take
> you forward.
>
> Good luck!
>
> On Sep 9, 10:25 am, EnnaN  wrote:
>
> > and there we are. for future reference // other readers: i was looking
> > for the following line:
>
> > Intent i=getIntent();
>
> > n.
>
> > On Sep 9, 12:14 pm, EnnaN  wrote:
>
> > > I know i'm bumping this, but i really think it's something simple i've
> > > missed. Trying to avoid definitions i might be using incorrectly:
>
> > > This is what i have:
> > > An app that turns up in the "share" menu of the gallery.
> > > Selecting my app starts it as if you would start it normally
>
> > > This is what i don't have:
> > > A way to react to the image i was looking at: i do not know where to
> > > define code to do stuff with the picture.
>
> > > Just a small nudge in the right direction is enough hopefully,
> > > please? :D
>
> > > Nanne.
>
> > > On Sep 2, 1:51 pm, EnnaN  wrote:
>
> > > > Thanks!
> > > > THen i'm just confused about how to react to the intent -> at some
> > > > point the images i'm sharing should be triggering some sort of event,
> > > > so i can handle it. That's what i was trying to do with the receiver.
> > > > Could you point me how to have a functions that reacts as an event-
> > > > handler of the received 'SEND'?
>
> > > > Nanne.
>
> > > > On Sep 2, 8:52 am, Dianne Hackborn  wrote:
>
> > > > > SEND is an activity action.  All you need to do is have it in your 
> > > > > manifest
> > > > > for an activity, as you have shown, and you know it is working 
> > > > > because you
> > > > > see it in the share menu, and when you select your item in the share 
> > > > > menu
> > > > > your activity will be launched with the intent.  That is all there is 
> > > > > to
> > > > > it.  There is no broadcast receiver involved at all, anywhere.
>
> > > > > On Tue, Sep 1, 2009 at 11:42 PM, EnnaN  wrote:
>
> > > > > > FOr some more information: I did try to add the intent to an
> > > > > > "receiver" in the manifest XML on a tip i got, but this not only
> > > > > > didn't work to start my receiver class, it also removed the "share"
> > > > > > option from the image i was trying to do something with... So not so
> > > > > > big a succes.
> > > > > > I'm sure it's a small thing i've missed (i hope ;) ), so if anyone 
> > > > > > can
> > > > > > point me towards how what where?
>
> > > > > >   > > > > >            android:label="@string/app_name">
> > > > > >      
> > > > > >          
> > > > > >           > > > > > />
> > > > > >      
> > > > > >   
> > > > > >  
> > > > > >      
> > > > > >        
> > > > > >        
> > > > > >        
> > > > > >        
> > > > > >   
> > > > > > 
>
> > > > > > On Aug 31, 9:21 pm, EnnaN  wrote:
> > > > > > > There are a number of posts about getting your intent to actually
> > > > > > > register, but unfortunately i was not able to distill a sollution 
> > > > > > > from
> > > > > > > them. The simple concept of getting an image and doing something 
> > > > > > > with
> > > > > > > it seems to be too much at the moment :(
>
> > > > > > > I have the following in my manifest.xml:
>
> > > > > > > 
> > > > > > >          > > > > > >                   android:label="@string/app_name">
> > > > > > >             
> > > > > > >                  > > > > > > />
> > > > > > >                  > > > > > > android:name="android.intent.category.LAUNCHER" />
> > > > > > >             
> > > > > > >             
> > > > > > >                          > > > > > > android:name="android.intent.action.SEND"
> > > > > > />
> > > > > > >                          > > > > > android:name="android.intent.category.DEFAULT" />
> > > > > > >                         
> > > > > > >                         
> > > > > > >         
> > > > > > >     
>
> > > > > > > And this does what i thought it should do: when i press "share" 
> > > > > > > on a
> > > > > > > picture, i get my application as an option.
> > > > > > > Now, to act on this selecting, i thought to do this:
>
> > > > > > > registerReceiver(new BroadcastReceiver(){
> > > > > > >             @Override
> > > > > > >                 public void onReceive(Context context, Intent 
> > > > > > > intent) {
> > > > > > >                    //do some stuff
> > > > > > >                  }
> > > > > > >         }, new 
> > > > > > > IntentFilter("android.intent.action.SEND","image/*"));
>
> > > > > > > Now i've tried this with a seperate class, without the second 
> > > > > > > argument
> > > > > > > on the intentfilter, and with several variations of the intent
> > > > > > > action.SEND, but it doesn't seem to fire when i share my picture.
> > > > > > > Could anyone point me somewheres? Do i need an extra permiss

[android-developers] Re: onReceive not triggering for SEND / image

2009-09-09 Thread Beth

Here is the nudge you wanted...
Your intent filter needs to be set on an activity.  The code you
posted shows it as a Broadcast Receiver.
Change:

to

and move all your stuff from onRecieve to onCreate.  That should take
you forward.

Good luck!

On Sep 9, 10:25 am, EnnaN  wrote:
> and there we are. for future reference // other readers: i was looking
> for the following line:
>
> Intent i=getIntent();
>
> n.
>
> On Sep 9, 12:14 pm, EnnaN  wrote:
>
> > I know i'm bumping this, but i really think it's something simple i've
> > missed. Trying to avoid definitions i might be using incorrectly:
>
> > This is what i have:
> > An app that turns up in the "share" menu of the gallery.
> > Selecting my app starts it as if you would start it normally
>
> > This is what i don't have:
> > A way to react to the image i was looking at: i do not know where to
> > define code to do stuff with the picture.
>
> > Just a small nudge in the right direction is enough hopefully,
> > please? :D
>
> > Nanne.
>
> > On Sep 2, 1:51 pm, EnnaN  wrote:
>
> > > Thanks!
> > > THen i'm just confused about how to react to the intent -> at some
> > > point the images i'm sharing should be triggering some sort of event,
> > > so i can handle it. That's what i was trying to do with the receiver.
> > > Could you point me how to have a functions that reacts as an event-
> > > handler of the received 'SEND'?
>
> > > Nanne.
>
> > > On Sep 2, 8:52 am, Dianne Hackborn  wrote:
>
> > > > SEND is an activity action.  All you need to do is have it in your 
> > > > manifest
> > > > for an activity, as you have shown, and you know it is working because 
> > > > you
> > > > see it in the share menu, and when you select your item in the share 
> > > > menu
> > > > your activity will be launched with the intent.  That is all there is to
> > > > it.  There is no broadcast receiver involved at all, anywhere.
>
> > > > On Tue, Sep 1, 2009 at 11:42 PM, EnnaN  wrote:
>
> > > > > FOr some more information: I did try to add the intent to an
> > > > > "receiver" in the manifest XML on a tip i got, but this not only
> > > > > didn't work to start my receiver class, it also removed the "share"
> > > > > option from the image i was trying to do something with... So not so
> > > > > big a succes.
> > > > > I'm sure it's a small thing i've missed (i hope ;) ), so if anyone can
> > > > > point me towards how what where?
>
> > > > >   > > > >            android:label="@string/app_name">
> > > > >      
> > > > >          
> > > > >          
> > > > >      
> > > > >   
> > > > >  
> > > > >      
> > > > >        
> > > > >        
> > > > >        
> > > > >        
> > > > >   
> > > > > 
>
> > > > > On Aug 31, 9:21 pm, EnnaN  wrote:
> > > > > > There are a number of posts about getting your intent to actually
> > > > > > register, but unfortunately i was not able to distill a sollution 
> > > > > > from
> > > > > > them. The simple concept of getting an image and doing something 
> > > > > > with
> > > > > > it seems to be too much at the moment :(
>
> > > > > > I have the following in my manifest.xml:
>
> > > > > > 
> > > > > >          > > > > >                   android:label="@string/app_name">
> > > > > >             
> > > > > >                 
> > > > > >                  > > > > > android:name="android.intent.category.LAUNCHER" />
> > > > > >             
> > > > > >             
> > > > > >                          > > > > > android:name="android.intent.action.SEND"
> > > > > />
> > > > > >                          > > > > android:name="android.intent.category.DEFAULT" />
> > > > > >                         
> > > > > >                         
> > > > > >         
> > > > > >     
>
> > > > > > And this does what i thought it should do: when i press "share" on a
> > > > > > picture, i get my application as an option.
> > > > > > Now, to act on this selecting, i thought to do this:
>
> > > > > > registerReceiver(new BroadcastReceiver(){
> > > > > >             @Override
> > > > > >                 public void onReceive(Context context, Intent 
> > > > > > intent) {
> > > > > >                    //do some stuff
> > > > > >                  }
> > > > > >         }, new 
> > > > > > IntentFilter("android.intent.action.SEND","image/*"));
>
> > > > > > Now i've tried this with a seperate class, without the second 
> > > > > > argument
> > > > > > on the intentfilter, and with several variations of the intent
> > > > > > action.SEND, but it doesn't seem to fire when i share my picture.
> > > > > > Could anyone point me somewheres? Do i need an extra permission for
> > > > > > this intent maybe?
>
> > > > --
> > > > Dianne Hackborn
> > > > Android framework engineer
> > > > hack...@android.com
>
> > > > Note: please don't send private questions to me, as I don't have time to
> > > > provide private support, and so won't reply to such e-mails.  All such
> > > > questions should be posted on public forums, where I and others can see 
> > > > and
> > > > answer them

[android-developers] Re: onReceive not triggering for SEND / image

2009-09-09 Thread EnnaN

and there we are. for future reference // other readers: i was looking
for the following line:

Intent i=getIntent();

n.

On Sep 9, 12:14 pm, EnnaN  wrote:
> I know i'm bumping this, but i really think it's something simple i've
> missed. Trying to avoid definitions i might be using incorrectly:
>
> This is what i have:
> An app that turns up in the "share" menu of the gallery.
> Selecting my app starts it as if you would start it normally
>
> This is what i don't have:
> A way to react to the image i was looking at: i do not know where to
> define code to do stuff with the picture.
>
> Just a small nudge in the right direction is enough hopefully,
> please? :D
>
> Nanne.
>
> On Sep 2, 1:51 pm, EnnaN  wrote:
>
> > Thanks!
> > THen i'm just confused about how to react to the intent -> at some
> > point the images i'm sharing should be triggering some sort of event,
> > so i can handle it. That's what i was trying to do with the receiver.
> > Could you point me how to have a functions that reacts as an event-
> > handler of the received 'SEND'?
>
> > Nanne.
>
> > On Sep 2, 8:52 am, Dianne Hackborn  wrote:
>
> > > SEND is an activity action.  All you need to do is have it in your 
> > > manifest
> > > for an activity, as you have shown, and you know it is working because you
> > > see it in the share menu, and when you select your item in the share menu
> > > your activity will be launched with the intent.  That is all there is to
> > > it.  There is no broadcast receiver involved at all, anywhere.
>
> > > On Tue, Sep 1, 2009 at 11:42 PM, EnnaN  wrote:
>
> > > > FOr some more information: I did try to add the intent to an
> > > > "receiver" in the manifest XML on a tip i got, but this not only
> > > > didn't work to start my receiver class, it also removed the "share"
> > > > option from the image i was trying to do something with... So not so
> > > > big a succes.
> > > > I'm sure it's a small thing i've missed (i hope ;) ), so if anyone can
> > > > point me towards how what where?
>
> > > >   > > >            android:label="@string/app_name">
> > > >      
> > > >          
> > > >          
> > > >      
> > > >   
> > > >  
> > > >      
> > > >        
> > > >        
> > > >        
> > > >        
> > > >   
> > > > 
>
> > > > On Aug 31, 9:21 pm, EnnaN  wrote:
> > > > > There are a number of posts about getting your intent to actually
> > > > > register, but unfortunately i was not able to distill a sollution from
> > > > > them. The simple concept of getting an image and doing something with
> > > > > it seems to be too much at the moment :(
>
> > > > > I have the following in my manifest.xml:
>
> > > > > 
> > > > >          > > > >                   android:label="@string/app_name">
> > > > >             
> > > > >                 
> > > > >                  > > > > android:name="android.intent.category.LAUNCHER" />
> > > > >             
> > > > >             
> > > > >                          > > > > android:name="android.intent.action.SEND"
> > > > />
> > > > >                          > > > android:name="android.intent.category.DEFAULT" />
> > > > >                         
> > > > >                         
> > > > >         
> > > > >     
>
> > > > > And this does what i thought it should do: when i press "share" on a
> > > > > picture, i get my application as an option.
> > > > > Now, to act on this selecting, i thought to do this:
>
> > > > > registerReceiver(new BroadcastReceiver(){
> > > > >             @Override
> > > > >                 public void onReceive(Context context, Intent intent) 
> > > > > {
> > > > >                    //do some stuff
> > > > >                  }
> > > > >         }, new IntentFilter("android.intent.action.SEND","image/*"));
>
> > > > > Now i've tried this with a seperate class, without the second argument
> > > > > on the intentfilter, and with several variations of the intent
> > > > > action.SEND, but it doesn't seem to fire when i share my picture.
> > > > > Could anyone point me somewheres? Do i need an extra permission for
> > > > > this intent maybe?
>
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
>
> > > Note: please don't send private questions to me, as I don't have time to
> > > provide private support, and so won't reply to such e-mails.  All such
> > > questions should be posted on public forums, where I and others can see 
> > > and
> > > answer them.
>
>
--~--~-~--~~~---~--~~
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] Re: onReceive not triggering for SEND / image

2009-09-09 Thread EnnaN

I know i'm bumping this, but i really think it's something simple i've
missed. Trying to avoid definitions i might be using incorrectly:

This is what i have:
An app that turns up in the "share" menu of the gallery.
Selecting my app starts it as if you would start it normally

This is what i don't have:
A way to react to the image i was looking at: i do not know where to
define code to do stuff with the picture.

Just a small nudge in the right direction is enough hopefully,
please? :D

Nanne.

On Sep 2, 1:51 pm, EnnaN  wrote:
> Thanks!
> THen i'm just confused about how to react to the intent -> at some
> point the images i'm sharing should be triggering some sort of event,
> so i can handle it. That's what i was trying to do with the receiver.
> Could you point me how to have a functions that reacts as an event-
> handler of the received 'SEND'?
>
> Nanne.
>
> On Sep 2, 8:52 am, Dianne Hackborn  wrote:
>
> > SEND is an activity action.  All you need to do is have it in your manifest
> > for an activity, as you have shown, and you know it is working because you
> > see it in the share menu, and when you select your item in the share menu
> > your activity will be launched with the intent.  That is all there is to
> > it.  There is no broadcast receiver involved at all, anywhere.
>
> > On Tue, Sep 1, 2009 at 11:42 PM, EnnaN  wrote:
>
> > > FOr some more information: I did try to add the intent to an
> > > "receiver" in the manifest XML on a tip i got, but this not only
> > > didn't work to start my receiver class, it also removed the "share"
> > > option from the image i was trying to do something with... So not so
> > > big a succes.
> > > I'm sure it's a small thing i've missed (i hope ;) ), so if anyone can
> > > point me towards how what where?
>
> > >   > >            android:label="@string/app_name">
> > >      
> > >          
> > >          
> > >      
> > >   
> > >  
> > >      
> > >        
> > >        
> > >        
> > >        
> > >   
> > > 
>
> > > On Aug 31, 9:21 pm, EnnaN  wrote:
> > > > There are a number of posts about getting your intent to actually
> > > > register, but unfortunately i was not able to distill a sollution from
> > > > them. The simple concept of getting an image and doing something with
> > > > it seems to be too much at the moment :(
>
> > > > I have the following in my manifest.xml:
>
> > > > 
> > > >          > > >                   android:label="@string/app_name">
> > > >             
> > > >                 
> > > >                  > > > android:name="android.intent.category.LAUNCHER" />
> > > >             
> > > >             
> > > >                          > > > android:name="android.intent.action.SEND"
> > > />
> > > >                          > > android:name="android.intent.category.DEFAULT" />
> > > >                         
> > > >                         
> > > >         
> > > >     
>
> > > > And this does what i thought it should do: when i press "share" on a
> > > > picture, i get my application as an option.
> > > > Now, to act on this selecting, i thought to do this:
>
> > > > registerReceiver(new BroadcastReceiver(){
> > > >             @Override
> > > >                 public void onReceive(Context context, Intent intent) {
> > > >                    //do some stuff
> > > >                  }
> > > >         }, new IntentFilter("android.intent.action.SEND","image/*"));
>
> > > > Now i've tried this with a seperate class, without the second argument
> > > > on the intentfilter, and with several variations of the intent
> > > > action.SEND, but it doesn't seem to fire when i share my picture.
> > > > Could anyone point me somewheres? Do i need an extra permission for
> > > > this intent maybe?
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see and
> > answer them.
>
>
--~--~-~--~~~---~--~~
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] Re: onReceive not triggering for SEND / image

2009-09-02 Thread EnnaN

Thanks!
THen i'm just confused about how to react to the intent -> at some
point the images i'm sharing should be triggering some sort of event,
so i can handle it. That's what i was trying to do with the receiver.
Could you point me how to have a functions that reacts as an event-
handler of the received 'SEND'?

Nanne.

On Sep 2, 8:52 am, Dianne Hackborn  wrote:
> SEND is an activity action.  All you need to do is have it in your manifest
> for an activity, as you have shown, and you know it is working because you
> see it in the share menu, and when you select your item in the share menu
> your activity will be launched with the intent.  That is all there is to
> it.  There is no broadcast receiver involved at all, anywhere.
>
>
>
> On Tue, Sep 1, 2009 at 11:42 PM, EnnaN  wrote:
>
> > FOr some more information: I did try to add the intent to an
> > "receiver" in the manifest XML on a tip i got, but this not only
> > didn't work to start my receiver class, it also removed the "share"
> > option from the image i was trying to do something with... So not so
> > big a succes.
> > I'm sure it's a small thing i've missed (i hope ;) ), so if anyone can
> > point me towards how what where?
>
> >   >            android:label="@string/app_name">
> >      
> >          
> >          
> >      
> >   
> >  
> >      
> >        
> >        
> >        
> >        
> >   
> > 
>
> > On Aug 31, 9:21 pm, EnnaN  wrote:
> > > There are a number of posts about getting your intent to actually
> > > register, but unfortunately i was not able to distill a sollution from
> > > them. The simple concept of getting an image and doing something with
> > > it seems to be too much at the moment :(
>
> > > I have the following in my manifest.xml:
>
> > > 
> > >          > >                   android:label="@string/app_name">
> > >             
> > >                 
> > >                  > > android:name="android.intent.category.LAUNCHER" />
> > >             
> > >             
> > >                          > />
> > >                          > android:name="android.intent.category.DEFAULT" />
> > >                         
> > >                         
> > >         
> > >     
>
> > > And this does what i thought it should do: when i press "share" on a
> > > picture, i get my application as an option.
> > > Now, to act on this selecting, i thought to do this:
>
> > > registerReceiver(new BroadcastReceiver(){
> > >             @Override
> > >                 public void onReceive(Context context, Intent intent) {
> > >                    //do some stuff
> > >                  }
> > >         }, new IntentFilter("android.intent.action.SEND","image/*"));
>
> > > Now i've tried this with a seperate class, without the second argument
> > > on the intentfilter, and with several variations of the intent
> > > action.SEND, but it doesn't seem to fire when i share my picture.
> > > Could anyone point me somewheres? Do i need an extra permission for
> > > this intent maybe?
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~-~--~~~---~--~~
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] Re: onReceive not triggering for SEND / image

2009-09-01 Thread Dianne Hackborn
SEND is an activity action.  All you need to do is have it in your manifest
for an activity, as you have shown, and you know it is working because you
see it in the share menu, and when you select your item in the share menu
your activity will be launched with the intent.  That is all there is to
it.  There is no broadcast receiver involved at all, anywhere.

On Tue, Sep 1, 2009 at 11:42 PM, EnnaN  wrote:

>
> FOr some more information: I did try to add the intent to an
> "receiver" in the manifest XML on a tip i got, but this not only
> didn't work to start my receiver class, it also removed the "share"
> option from the image i was trying to do something with... So not so
> big a succes.
> I'm sure it's a small thing i've missed (i hope ;) ), so if anyone can
> point me towards how what where?
>
>  android:label="@string/app_name">
>  
>  
>  
>  
>   
>  
>  
>
>
>
>
>   
> 
>
>
>
> On Aug 31, 9:21 pm, EnnaN  wrote:
> > There are a number of posts about getting your intent to actually
> > register, but unfortunately i was not able to distill a sollution from
> > them. The simple concept of getting an image and doing something with
> > it seems to be too much at the moment :(
> >
> > I have the following in my manifest.xml:
> >
> > 
> >  >   android:label="@string/app_name">
> > 
> > 
> >  > android:name="android.intent.category.LAUNCHER" />
> > 
> > 
> >  />
> >  android:name="android.intent.category.DEFAULT" />
> > 
> > 
> > 
> > 
> >
> > And this does what i thought it should do: when i press "share" on a
> > picture, i get my application as an option.
> > Now, to act on this selecting, i thought to do this:
> >
> > registerReceiver(new BroadcastReceiver(){
> > @Override
> > public void onReceive(Context context, Intent intent) {
> >//do some stuff
> >  }
> > }, new IntentFilter("android.intent.action.SEND","image/*"));
> >
> > Now i've tried this with a seperate class, without the second argument
> > on the intentfilter, and with several variations of the intent
> > action.SEND, but it doesn't seem to fire when i share my picture.
> > Could anyone point me somewheres? Do i need an extra permission for
> > this intent maybe?
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~-~--~~~---~--~~
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] Re: onReceive not triggering for SEND / image

2009-09-01 Thread EnnaN

FOr some more information: I did try to add the intent to an
"receiver" in the manifest XML on a tip i got, but this not only
didn't work to start my receiver class, it also removed the "share"
option from the image i was trying to do something with... So not so
big a succes.
I'm sure it's a small thing i've missed (i hope ;) ), so if anyone can
point me towards how what where?

  
  
  
  
  
  
  
 




  




On Aug 31, 9:21 pm, EnnaN  wrote:
> There are a number of posts about getting your intent to actually
> register, but unfortunately i was not able to distill a sollution from
> them. The simple concept of getting an image and doing something with
> it seems to be too much at the moment :(
>
> I have the following in my manifest.xml:
>
> 
>                            android:label="@string/app_name">
>             
>                 
>                  android:name="android.intent.category.LAUNCHER" />
>             
>             
>                         
>                          android:name="android.intent.category.DEFAULT" />
>                         
>                         
>         
>     
>
> And this does what i thought it should do: when i press "share" on a
> picture, i get my application as an option.
> Now, to act on this selecting, i thought to do this:
>
> registerReceiver(new BroadcastReceiver(){
>             @Override
>                 public void onReceive(Context context, Intent intent) {
>                    //do some stuff
>                  }
>         }, new IntentFilter("android.intent.action.SEND","image/*"));
>
> Now i've tried this with a seperate class, without the second argument
> on the intentfilter, and with several variations of the intent
> action.SEND, but it doesn't seem to fire when i share my picture.
> Could anyone point me somewheres? Do i need an extra permission for
> this intent maybe?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---