If you want to have the user pick an image, I would strongly recommend using
GET_CONTENT with MIME type image/*. The ACTION_PICK approach is a more
restricted operation that is not as useful and I would discourage people
from using.
On Mon, Nov 8, 2010 at 9:47 PM, rnstewart rnstew...@gmail.com
I have an app that (among other things) uploads pictures to Flickr,
and it takes advantage of the Media Gallery intents to allow the user
to choose an image to upload.
When the user hits the Upload button, I run the following code:
startActivityForResult(new Intent(Intent.ACTION_PICK,
Hi there,
I am trying to start a new activity from a menu action, as follows:
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case MENU_PREF:
showDialog(MENU_PREF);
return true;
I have some code that starts another activity based on a menu item
selection:
public boolean onOptionsItemSelected( MenuItem item ) {
Log.d( TAG, onOptionsItemSelected(): entering... );
//...
switch ( item.getItemId() ) {
//...
case
Hi!
I've seen this example in API demos:
PreferenceScreen android:title=@string/title_intent_preference
android:summary=@string/summary_intent_preference
intent android:action=android.intent.action.VIEW
android:data=http://www.android.com; /
/PreferenceScreen
I'm trying to start another
Hi,
I want to launch a new Activity from my current Activity.. so i do:
activity android:name=.Device android:label=@string/device_name
intent-filter
action android:name=android.intent.action.EDIT /
/intent-filter
/activity
and in my code ..
Intent intent = new
6 matches
Mail list logo