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; 

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?


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

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

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
Uri.parse("file://" + aFile.getAbsolutePath().toString());
            } catch (Exception e) {

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 :-)

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