Is it possible to add a custom link in the "Share Picture Via" dialog?

by Freddy » Mon, 24 Nov 2008 10:34:23 GMT

Sponsored Links
 After taking a picture on the G1 the user is prompted with Save | Set
As | Share | Delete.  If Share is selected then they're taken to a
"Share Picture Via" dialog.  Currently the options Google mail and
Messaging are in the dialog.  I want to add a link to my program which
can share the photo with a different service

Is it possible to add a custom link in the "Share Picture via" dialog?



Is it possible to add a custom link in the "Share Picture Via" dialog?

by Freddy » Tue, 25 Nov 2008 16:46:32 GMT

 Thank you for your response.  This worked great.  Do you know how I
can extract the jpg data from the Intent?  Looking at the intent in
the debugger I don't see any data.  Here's my code:

    public void onCreate(Bundle savedInstanceState) {

        Intent intent = getIntent();
        String type = intent.getType
();                                              // return image/
jpg ... that's good
        String stream = intent.getStringExtra
(android.content.Intent.EXTRA_STREAM);  // returns null ... ouch
        String text = intent.getStringExtra
(android.content.Intent.EXTRA_TEXT);      // return null
        Bundle extras = getIntent().getExtras();
        if(extras != null)
                String test = extras.getString(what goes here);  // need docs

say the data should be in the EXTRA_STREAM but it's null.  Any ideas?
I assume it might be stuffed in the bundle somewhere but I'm not sure
how to figure out which named string to use in the extras.getString()
call to find it.  Is there some docs I'm overlooking or maybe
something I can see in the debugger?



Sponsored Links

Other Threads

1. How to enable/disable GPRS/EDGE data connection

For what is worth, there is already an application on Market called APNDroid
that will just do that for you


2. Black Screen problem with graphics update using unlockCanvasAndPost()

The problem is your line Thread.currentThread().sleep(1000);//sleep
for 1000 ms

I believe with SurfaceView you have to draw your whole view on every
screen refresh. You just need to loop as fast as possible and the
system will throttle the speed in the calls to lockCanvas(). By
sleeping for 1 second you are failing to provide a canvas for every
refresh so the screen appears blank.

What I don't know is whether there is any guidance on how quickly you
have to get through your loop, i.e. what the maximum refresh rate is

3. getting android_id from GoogleLoginServiceBlockingHelper?

4. Location.getBearing vs SensorListener

5. getting android_id from GoogleLoginServiceBlockingHelper?

6. How to enable/disable GPRS/EDGE data connection

7. Getting UnknownHostException - Host is Unresolved