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 <emez...@gmail.com> 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:
> <receiver android:name=".ImageReceiver">
> to
> <activity android:name=".ImageReceiver">
> and move all your stuff from onRecieve to onCreate.  That should take
> you forward.
>
> Good luck!
>
> On Sep 9, 10:25 am, EnnaN <nhui...@gmail.com> 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 <nhui...@gmail.com> 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 <nhui...@gmail.com> 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 <hack...@android.com> 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 <nhui...@gmail.com> 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?
>
> > > > > >  <activity android:name=".TestingApp"
> > > > > >            android:label="@string/app_name">
> > > > > >      <intent-filter>
> > > > > >          <action android:name="android.intent.action.MAIN" />
> > > > > >          <category android:name="android.intent.category.LAUNCHER" 
> > > > > > />
> > > > > >      </intent-filter>
> > > > > >   </activity>
> > > > > >  <receiver android:name=".ImageReceiver">
> > > > > >      <intent-filter>
> > > > > >        <action android:name="android.intent.action.SEND" />
> > > > > >        <category android:name="android.intent.category.DEFAULT" />
> > > > > >        <data android:mimeType="image/*" />
> > > > > >        </intent-filter>
> > > > > >   </receiver>
> > > > > > </application>
>
> > > > > > On Aug 31, 9:21 pm, EnnaN <nhui...@gmail.com> 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:
>
> > > > > > > <application android:icon="@drawable/icon" android:label="@string/
> > > > > > > app_name" android:theme="@android:style/Theme.NoTitleBar">
> > > > > > >         <activity android:name=".TestingApp"
> > > > > > >                   android:label="@string/app_name">
> > > > > > >             <intent-filter>
> > > > > > >                 <action android:name="android.intent.action.MAIN" 
> > > > > > > />
> > > > > > >                 <category
> > > > > > > android:name="android.intent.category.LAUNCHER" />
> > > > > > >             </intent-filter>
> > > > > > >             <intent-filter>
> > > > > > >                         <action 
> > > > > > > android:name="android.intent.action.SEND"
> > > > > > />
> > > > > > >                         <category
> > > > > > android:name="android.intent.category.DEFAULT" />
> > > > > > >                         <data android:mimeType="image/*" />
> > > > > > >                         </intent-filter>
> > > > > > >         </activity>
> > > > > > >     </application>
>
> > > > > > > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to