Read Owner Data


Last Updated:

  1. omprakash.verma

    omprakash.verma Member This Topic's Starter

    Joined:
    Apr 6, 2010
    Messages:
    6
    Likes Received:
    0
    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 Member

    Joined:
    May 8, 2010
    Messages:
    8
    Likes Received:
    0
    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

    omprakash.verma Member This Topic's Starter

    Joined:
    Apr 6, 2010
    Messages:
    6
    Likes Received:
    0
    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

    omprakash.verma Member This Topic's Starter

    Joined:
    Apr 6, 2010
    Messages:
    6
    Likes Received:
    0
    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 New Member

    Joined:
    Jun 14, 2010
    Messages:
    1
    Likes Received:
    0
    I believe you need READ_OWNER_DATA permission. See if that works for you.
     

Share This Page

Loading...