Intent to launch image gallery

by glenys » Mon, 05 Jan 2009 13:19:53 GMT


Sponsored Links
 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

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



Intent to launch image gallery

by hazmatzak » Mon, 05 Jan 2009 15:54:25 GMT


 You mean the Pictures app?

If you want to launch the app to browse through the images and fiddle
with them, if you examine the log when you launch it manually, an
Activity is started with an Intent like:

new Intent(Intent.ACTION_VIEW, Uri.parse(
  "content://media/internal/images/media"))

If you want to more generically launch whatever the current image
picker is (and hope to get something back), you can use:

Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("image/*");

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


Sponsored Links


Intent to launch image gallery

by glenys » Tue, 06 Jan 2009 01:27:02 GMT


 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

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



Other Threads

1. Radio's Diabetes Companion Alpha 2 released at the Android MarketPlace

Hi All,

I released my second Alpha version of RDC.  In this version there is
the ability to export the data into .csv on the memory card.  Allowing
you to then mount the card and see your data in any spreadsheet
program.  There is also sorting of the main list.  You can sort on
either the date/time or the {*filter*} level.  To achieve this I created a
series of graphics for the different possible sorting states.There is
also now an icon for the program.

If you get a chance to download it and give me some feedback, it would
be appreciated.

Thanks,

John aka Radiolistener
RadiolistenersElectricEasel. com , Inc.

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

2. peer not authenticated while executing DefaultHttpClient httpclient

Hi,
I want to submit a web page through my application.
for that I am using
DefaultHttpClient httpclient = new DefaultHttpClient();
HttpPost Postmethod = new HttpPost("url to post");//

but on executing the httpclient, that is httpclient.execute
(Postmethod),
 I am getting an error

javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated.
sometimes the submit will work without any error but most of  the time
this shows an error as follows

ErrorIOException httpPostpeer not authenticated
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
        at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificates
(SSLSessionImpl.java:352)
        at org.apache.http.conn.ssl.AbstractVerifier.verify
(AbstractVerifier.java:129)
        at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket
(SSLSocketFactory.java:322)
        at
org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection
(DefaultClientConnectionOperator.java:129)
        at org.apache.http.impl.conn.AbstractPoolEntry.open
(AbstractPoolEntry.java:164)
        at org.apache.http.impl.conn.AbstractPooledConnAdapter.open
(AbstractPooledConnAdapter.java:119)
        at org.apache.http.impl.client.DefaultRequestDirector.execute
(DefaultRequestDirector.java:347)
        at org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:555)
        at org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:653)
        at org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:627)
        at org.apache.http.impl.client.AbstractHttpClient.execute
(AbstractHttpClient.java:616)



PLease help me to solve this issue at the earliest (posting some
sample code wil be more helpful as I am new to even JAVA )

Thanks and regds
ANU R
--~--~---------~--~----~------------~-------~--~----~

3. How to know which element of my list is selected when long click

4. Discover bluetooth devices

5. Error displaying JPEG image thumbnails

6. How to create blur surface from android.view.Surface?

7. setDefaultTab(int) not working