[android-developers] Intent to launch image gallery

2009-01-04 Thread glenys

Hi,

I am trying to write a JUnit testcase for which I need to launch the
image gallery through code. I tried searching online for the intent
needed to launch the image gallery but could not find anything. If
anyone knows it, can you please help me out?

Thanks,

Glenys

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] What is the intent to launch the image gallery?

2009-01-02 Thread glenys

Hi,

Can anyone tell me what is the intent used to launch the image gallery
through code?

Thanks and Regards,
Glenys
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Retrieve phone number for given contact

2008-12-03 Thread glenys

Hi,

I looked at the stack trace, and realised that I needed permissions to
read the contacts. Added that and now it is working fine.

Thanks a lot!!

Glenys


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Retrieve phone number for given contact

2008-12-02 Thread glenys

Hi,

I am trying to retrieve the phone number for a given contact. However,
the managedQuery function call always terminates my application. No
matter what I change my query to, the managedQuery seems to crash all
the time.

What could be the problem? Could it be that the contacts db file is in
a different location or something?

My code looks like this:

public void getContactNumber() {

String[] projection = new String[]
{android.provider.Contacts.Phones.NUMBER};


Cursor managedCursor =
managedQuery(android.provider.Contacts.People.CONTENT_URI,
projection,
android.provider.Contacts.Phones.NAME + =\' +
A + \', null, null);
   }
where the name of the given contact is A.

Glenys


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---