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. Help needed in.android tabs

Hi all,
Please share the xml code for adding multiple edittexts in a single tab .
Thanks alot

-- 

2. Perbandingan ZTE Tab dan HUawei Ideos S7

Pagi All member
MAu tanya apa di milist ini ada yg pakai Huawei Ideou S7 atau ZTE V9...
tolong reviewnya doang
seputar memainkan Games HD, dan Gps apa ada??

Thanks atas perhatiannya

-- 
"

3. How to launch the interface for incoming/outgoing calls ?

4. what is the difference between progressdialog and progressbar?

5. hapus file bawaan sprint evo 4G

6. Salam Nubie

7. OOT : Ditemukan dompet