1. Download our Official Android App: Forums for Android!

Apps Read Owner Data

Discussion in 'Android Development' started by omprakash.verma, May 11, 2010.

  1. omprakash.verma

    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    6
    Joined:
    Apr 6, 2010

    Apr 6, 2010
    6
    0
    25
    Hi All,
    I new in Android development. Can you please tell me how to read Device Owner Information like name, email id etc using android API.


    Thanks and Regards,
    Omprakash Verma :)
     

    Advertisement

  2. charlesd81

    charlesd81 Lurker
    Rank:
    None
    Points:
    25
    Posts:
    8
    Joined:
    May 8, 2010

    May 8, 2010
    8
    0
    25
    I don't know the specific class but try looking in the android.provider package to see if there is a provider that offers up the information you are looking for. Maybe Settings.Secure or Settings.System includes the information you are looking for. Give it and try and let us know.
     
  3. omprakash.verma

    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    6
    Joined:
    Apr 6, 2010

    Apr 6, 2010
    6
    0
    25
    Hi charles,
    Thanks for the prompt reply. I tried the following but did not get the solution. Please correct me if i am digging in a wrong way or missing something.


    Uri uri = Uri.withAppendedPath(People.CONTENT_URI, "owner");

    Cursor c = managedQuery(uri, null, null, null, null);



    Regards,
    Om
     
  4. omprakash.verma

    Thread Starter
    Rank:
    None
    Points:
    25
    Posts:
    6
    Joined:
    Apr 6, 2010

    Apr 6, 2010
    6
    0
    25
    Dear All,
    It seems like, its not possible thats why I am not getting any reply on this thread. So its bad luck.

    Let me try some where else, if i got some solution i will update this thread.

    Regards,
    Om
     
  5. rben13

    rben13 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jun 14, 2010

    Jun 14, 2010
    1
    0
    5
    I believe you need READ_OWNER_DATA permission. See if that works for you.
     

Share This Page

Loading...