android.permission.GET_ACCOUNTS

by strazzere » Fri, 10 Apr 2009 10:28:54 GMT


Sponsored Links
 Are there any examples of how to use android.permission.GET_ACCOUNTS ?
Or is this an unimplimented api? I found this site;
 http://joakim.erdfelt.com/wiki/index.php/AndroidGetAccount 

Though I haven't been able to get anything to work. I believe JBQ said
it was a private api - but I'm not sure why the permission is listed
on the dev reference?
--~--~---------~--~----~------------~-------~--~----~



android.permission.GET_ACCOUNTS

by Dianne Hackborn » Fri, 10 Apr 2009 10:45:24 GMT


 We unfortunately left most of the permission string constants in the SDK,
even for ones protecting private APIs.  So something being there doesn't
mean there is an API for it.






-- 
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.

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


Sponsored Links


Other Threads

1. Using Intents to Open Specific Files

Hi All,

First post! Yay.

I don't really understand the concepts behind Intent/Context/Actions
etc, so to learn something I thought I would follow the tutorials over
@ AndDev.org to create a basic File Browser application. The code was
written for the previous SDK so I had to modify it a little to get it
to work and for the most part it does. The part I am having issues
with is getting the browser to start activities when you click on a
specific file (e.g. Open PhotoPicker when you click on a png image
etc.)

Inside my onClickedItem I have the following:

            // Check to see if it is a file
            // .......
            // If it is a file doe the following
            try {
                Intent myIntent = new
Intent(android.content.Intent.ACTION_VIEW,
 
Uri.parse("file://" + aFile.getAbsolutePath().toString());
                startActivity(myIntent)
            } catch (Exception e) {
                e.printStackTrace();
            }

When I run this I get an ActivityNotFoundException

Is this how to correctly use Intents to open files? Perhaps I should
be checking the file's MIME type and trying to find the relevant
application that way. How would one achieve this?

Thanks for any help you can give me on this. I look forward to being
able to contribute back to the community in any way I can :-)

Regards,
David
I <3 android!

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

2. database tool

Hi, is possible to explore android embedded database? already existing
something for that purpose? thanks

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

3. App versioning & appstore

4. sqlite3 not found then How to connect Internet to Android Emulator Browser.

5. Androids mobile suite

6. Using Intents to Open Files

7. Certificate untrusted when I try to login gmail