Tag: android-intent

fb://profile/{userid} seems to be not working

I try to launch facebook app with specific page , it was working with earlier version of FB APP but with new version that is . This functionality is not working , the intent with uri.parse(“fb://profile/{userid}”) takes me to content not available page . Is it an security update from facebook. any other way […]

Android: Intent.EXTRA_ALLOW_MULTIPLE allows only single picking

I want to open multiple images from the Android gallery using “Intent.EXTRA_ALLOW_MULTIPLE” intent filter: if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) { final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType(“image/*”); intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true); startActivityForResult(Intent.createChooser(intent, “Add images”), SELECT_MULTIPLE_IMAGES); } But whatever app I use (native gallery, QuickPic app), I can only select one single picture. The test device is […]

Android: BroadcastReceiver intent to Detect Camera Photo Taken?

I’m working on an Android application which needs to perform an action each time a new image is taken with the phone. I don’t want to take the image within my application, but rather perform some action when the Camera app takes an image and saves it to the SD card. Right now, I’ve gotten […]

Android Send Intent attaching photo from sdcard as 0 length file

I know a variant of this question was asked before trying-to-attach-a-file-from-sd-card-to-email But the solution offered, i.e. a reboot doesn’t seem to do it for me. I have seen a good number of group postings which support this being a problem. I can only assume the OP for the linked to question made some other changes, […]

how to launch Activity with FLAG_REORDER_TO_FRONT and FLAG_CLEAR_TOP

I have four activity in my tasks A,B,C,D. Activities are launched in order A->B->C->D. Here, I want to go back to the activity A from D and resume that activity . So that i used the intent flag i.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); Activities B,C,D instance are is no longer needed after the stmt 1. i go for the […]

Intent to choose between the camera or the gallery in Android

I’m trying to launch an intent to pick a image from the camera or the android‘s gallery. I checked THIS post and currently my code is near to work: private Intent getPickIntent() { final List<Intent> intents = new ArrayList<Intent>(); if (allowCamera) { setCameraIntents(intents, cameraOutputUri); } if (allowGallery) { intents.add(new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI)); } if (intents.isEmpty()) return […]

Android: Starting An Activity For A Different Third Party App

I’m working on an app and I want to integrate the Last.fm app into it. Basically, when someone is looking at an artist in my app, I would like to have a button that they can tap to open up Last.fm application with the artist’s information. This intent works, but it loads a menu asking […]

Difference between Category Home and Category Launcher

I am not clear about what is the difference between category home and category launcher. From Android documentation page: CATEGORY_HOME : This is the home activity, that is the first activity that is displayed when the device boots. CATEGORY_LAUNCHER : Should be displayed in the top-level launcher. To test the difference I made a simple […]

Android: resume app from previous position

How can I resume my app from its previous position. Note that it is still active, just paused. So if I click the androids current app button, or the app icon it resumes fine. But who do I do this from my widget.. I have the following: // Create an Intent to launch Activity Intent […]

Android – sendOrderedBroadcast help

I am trying to use a sendOrderedBroadcast in my Android app. I want to be able to send the Intent from one of my applications to another and I then want to get data back from the Application that recieves the Intent, in this case a boolean true or false. Here is the current code: […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.