android - Action ACTION_IMAGE_CAPTURE shows package names instead of AppNames -



android - Action ACTION_IMAGE_CAPTURE shows package names instead of AppNames -

when crete take photo implicit intent, intent chooser window appear properly. unfortunatelly, shows bundle names instead of application names. thought doing wrong? thanks.

everything working (intent, photographic camera app, image returned onactivityresult, ...). if there 1 photographic camera app - no take shown , photographic camera app called straight (correct). photographic camera application have installed are: default android camera, google camera. tested on 3 different samsung phones.

private void dispatchtakepictureintent() { intent takepictureintent = new intent(mediastore.action_image_capture); // ensure there's photographic camera activity handle intent if (takepictureintent.resolveactivity(getactivity().getpackagemanager()) != null) { // create file photo should go file photofile = null; seek { photofile = createimagefile(); } grab (ioexception ex) { log.e(poidetailgalleryfragment.class.getsimplename(), "error occurred while creating file", ex); } // go on if file created if (photofile != null) { uri fileuri = uri.fromfile(photofile); takepictureintent.putextra(mediastore.extra_output, fileuri); startactivityforresult(takepictureintent, request_photo_capture); } } }

i suppose issue linked samsung devices, don't show application name bundle name only.

the google nexus devices behave differently, show application name , bundle name together.

android android-intent camera package-managers

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -