android Programming Glossary: resolveinfo
Calling camera from an activity, capturing an image and uploading to a server http://stackoverflow.com/questions/10679571/calling-camera-from-an-activity-capturing-an-image-and-uploading-to-a-server import android.content.pm.ResolveInfo import android.graphics.Bitmap import android.graphics.BitmapFactory.. final Intent intent new Intent action List ResolveInfo list packageManager.queryIntentActivities intent PackageManager.MATCH_DEFAULT_ONLY..
how to set the output image use com.android.camera.action.CROP http://stackoverflow.com/questions/12758425/how-to-set-the-output-image-use-com-android-camera-action-crop com.android.camera.action.CROP intent.setType image List ResolveInfo list getPackageManager .queryIntentActivities intent 0 int size.. return data true if size 1 Intent i new Intent intent ResolveInfo res list.get 0 i.setComponent new ComponentName res.activityInfo.packageName..
Using the Android RecognizerIntent with a bluetooth headset http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset in Android PackageManager pm getPackageManager List ResolveInfo activities pm.queryIntentActivities new Intent RecognizerIntent.ACTION_RECOGNIZE_SPEECH..
Android intent for playing video? http://stackoverflow.com/questions/1572107/android-intent-for-playing-video be received private boolean isCallable Intent intent List ResolveInfo list getPackageManager .queryIntentActivities intent PackageManager.MATCH_DEFAULT_ONLY..
How to get a list of installed android applications and pick one to run http://stackoverflow.com/questions/2695746/how-to-get-a-list-of-installed-android-applications-and-pick-one-to-run mainIntent 0 You will get all the necessary data in the ResolveInfo to start a application. You can check ResolveInfo javadoc here..
Download a file with Android, and showing the progress in a ProgressDialog http://stackoverflow.com/questions/3028306/download-a-file-with-android-and-showing-the-progress-in-a-progressdialog com.android.providers.downloads.ui.DownloadList List ResolveInfo list context.getPackageManager .queryIntentActivities intent..
How can I put a ListView into a ScrollView without it collapsing? http://stackoverflow.com/questions/3495890/how-can-i-put-a-listview-into-a-scrollview-without-it-collapsing
Allow user to select camera or gallery for image http://stackoverflow.com/questions/4455558/allow-user-to-select-camera-or-gallery-for-image this List Intent yourIntentsList new ArrayList Intent List ResolveInfo listCam packageManager.queryIntentActivities camIntent 0 for.. packageManager.queryIntentActivities camIntent 0 for ResolveInfo res listCam final Intent finalIntent new Intent camIntent finalIntent.setComponent.. res.activityInfo.name yourIntentsList.add finalIntent List ResolveInfo listGall packageManager.queryIntentActivities gallIntent 0 for..
How to get App's Permission for each app? how to do it programmatically on Android? http://stackoverflow.com/questions/5385957/how-to-get-apps-permission-for-each-app-how-to-do-it-programmatically-on-andro lw ListView findViewById R.id.listView1 final List ResolveInfo pkglist lw.getContext .getPackageManager .queryIntentActivities.. Iterator it pkglist.iterator while it.hasNext ResolveInfo rf ResolveInfo it.next tw.append rf.toString main.xml xml.. it pkglist.iterator while it.hasNext ResolveInfo rf ResolveInfo it.next tw.append rf.toString main.xml xml version 1.0 encoding..
Custom filtering of intent chooser based on installed Android package name http://stackoverflow.com/questions/5734678/custom-filtering-of-intent-chooser-based-on-installed-android-package-name new Intent android.content.Intent.ACTION_MAIN List ResolveInfo resInfoList getPackageManager .queryIntentActivities myIntent..
Calling camera from an activity, capturing an image and uploading to a server http://stackoverflow.com/questions/10679571/calling-camera-from-an-activity-capturing-an-image-and-uploading-to-a-server import android.content.Intent import android.content.pm.PackageManager import android.content.pm.ResolveInfo import android.graphics.Bitmap import android.graphics.BitmapFactory import android.os.Bundle import android.provider.MediaStore.. String action final PackageManager packageManager context.getPackageManager final Intent intent new Intent action List ResolveInfo list packageManager.queryIntentActivities intent PackageManager.MATCH_DEFAULT_ONLY return list.size 0 The problem is when..
how to set the output image use com.android.camera.action.CROP http://stackoverflow.com/questions/12758425/how-to-set-the-output-image-use-com-android-camera-action-crop image like this public void doCrop Intent intent new Intent com.android.camera.action.CROP intent.setType image List ResolveInfo list getPackageManager .queryIntentActivities intent 0 int size list.size if size 0 Toast.makeText this Cant find crop app.. aspectY 1 intent.putExtra scale true intent.putExtra return data true if size 1 Intent i new Intent intent ResolveInfo res list.get 0 i.setComponent new ComponentName res.activityInfo.packageName res.activityInfo.name startActivityForResult..
Using the Android RecognizerIntent with a bluetooth headset http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset headset I use the following code to launch speech recognition in Android PackageManager pm getPackageManager List ResolveInfo activities pm.queryIntentActivities new Intent RecognizerIntent.ACTION_RECOGNIZE_SPEECH 0 if activities.size 0 displayWarning..
Android intent for playing video? http://stackoverflow.com/questions/1572107/android-intent-for-playing-video API. In the end I used a test to see if the intent could be received private boolean isCallable Intent intent List ResolveInfo list getPackageManager .queryIntentActivities intent PackageManager.MATCH_DEFAULT_ONLY return list.size 0 In use when I..
How to get a list of installed android applications and pick one to run http://stackoverflow.com/questions/2695746/how-to-get-a-list-of-installed-android-applications-and-pick-one-to-run
Download a file with Android, and showing the progress in a ProgressDialog http://stackoverflow.com/questions/3028306/download-a-file-with-android-and-showing-the-progress-in-a-progressdialog intent.setClassName com.android.providers.downloads.ui com.android.providers.downloads.ui.DownloadList List ResolveInfo list context.getPackageManager .queryIntentActivities intent PackageManager.MATCH_DEFAULT_ONLY return list.size 0 catch..
How can I put a ListView into a ScrollView without it collapsing? http://stackoverflow.com/questions/3495890/how-can-i-put-a-listview-into-a-scrollview-without-it-collapsing
Allow user to select camera or gallery for image http://stackoverflow.com/questions/4455558/allow-user-to-select-camera-or-gallery-for-image with one new Intent for each retrieved activity like this List Intent yourIntentsList new ArrayList Intent List ResolveInfo listCam packageManager.queryIntentActivities camIntent 0 for ResolveInfo res listCam final Intent finalIntent new Intent.. yourIntentsList new ArrayList Intent List ResolveInfo listCam packageManager.queryIntentActivities camIntent 0 for ResolveInfo res listCam final Intent finalIntent new Intent camIntent finalIntent.setComponent new ComponentName res.activityInfo.packageName.. new ComponentName res.activityInfo.packageName res.activityInfo.name yourIntentsList.add finalIntent List ResolveInfo listGall packageManager.queryIntentActivities gallIntent 0 for ResolveInfo res listGall final Intent finalIntent new Intent..
How to get App's Permission for each app? how to do it programmatically on Android? http://stackoverflow.com/questions/5385957/how-to-get-apps-permission-for-each-app-how-to-do-it-programmatically-on-andro null mainIntent.addCategory Intent.CATEGORY_LAUNCHER final ListView lw ListView findViewById R.id.listView1 final List ResolveInfo pkglist lw.getContext .getPackageManager .queryIntentActivities mainIntent 0 final TextView tw TextView findViewById R.id.textView1.. mainIntent 0 final TextView tw TextView findViewById R.id.textView1 Iterator it pkglist.iterator while it.hasNext ResolveInfo rf ResolveInfo it.next tw.append rf.toString main.xml xml version 1.0 encoding utf 8 LinearLayout xmlns android http schemas.android.com.. 0 final TextView tw TextView findViewById R.id.textView1 Iterator it pkglist.iterator while it.hasNext ResolveInfo rf ResolveInfo it.next tw.append rf.toString main.xml xml version 1.0 encoding utf 8 LinearLayout xmlns android http schemas.android.com..
Custom filtering of intent chooser based on installed Android package name http://stackoverflow.com/questions/5734678/custom-filtering-of-intent-chooser-based-on-installed-android-package-name know how to get a list of installed packages final Intent myIntent new Intent android.content.Intent.ACTION_MAIN List ResolveInfo resInfoList getPackageManager .queryIntentActivities myIntent 0 At this point I want to filter the list based on a specific..
|