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?

Thanks!

--~--~---------~--~----~------------~-------~--~----~



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) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        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
for ACTION_SEND??
        }


The docs 
 http://code.google.com/android/reference/android/content/Intent.html #ACTION_SEND
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?

Thanks.




--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. 100 euros laptop

hi all,

we are developping a 100 euros public price laptop.

At this stage using the samsung arm 920 we are searchig for a solution small 
based on android that would only
start the device
and directly connect on internet via a firefox
it must have the necessary pilotes ( screen wifi kaboard mouse sound micro lan )

the actual product is under windows ce 5

if somebody can help

or is there anybody french speaking

thanks




      
_____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Plus de moyens pour rester en contact. 
http://mail.yahoo.fr
--~--~---------~--~----~------------~-------~--~----~

2. Real Device in market with google Android

Hi Guys,

Is this news true or an April fool joke?

http://blog.tmcnet.com/blog/tom-keating/google/d2-technologies-releases-mobile-handset-solution-powered-by-google-and.asp
http://www.d2tech.com/
http://www.d2tech.com/4-news/2008/08-04-01a.htm

Best Regards
Vipin

--~--~---------~--~----~------------~-------~--~----~

3. Sound MediaPlayer issues. Fix in the horizon?

4. How can I determine if app is running on the emulator or a device.

5. Android on Freescale MX31: network error, unknown host

6. DatePicker Refresh initialized date problem

7. making a http post call from an andriod app to web app