mrkeron.blogg.se

Viber icon on android
Viber icon on android












viber icon on android viber icon on android

Intent intent = new Intent(Intent.ACTION_SEND)

Viber icon on android how to#

I thought it would be on the app's external storage path ("/./Android/data/.photos/."), but it's not there.Ħ.I tried to make a POC of sharing a file from the external storage by using the FileProvider of the support library (as I've known how to use from sharing an APK file):Ĭode: final File bitmapFile = new File(getExternalFilesDir(null), "test.jpg") īitmap bitmap = codeResource(getResources(), android.R.drawable.sym_def_app_icon) īpress(CompressFormat.JPEG, 100, new FileOutputStream(bitmapFile)) I can't see where it downloads the file, though. It downloads the file somewhere and shares it. Uid=10175) that is not exported from uid 10123Ĥ.The weird thing is that for WhatsApp, on all of the above tries, it asked fro storage permission, even though it shouldn't (because the app provides the content by itself anyway).ĥ.Another weird thing I've found, is that Google Photos app works fine with sharing images to those apps, even if the image is from the server. It didn't work, and the log of WhatsApp shows: Caused by: : Permission Denial: opening providerĬom. from Share.putExtra(Intent.EXTRA_STREAM, uriArrayList) invoke(Native Method) atĬom.ZygoteInit$n(ZygoteInit.java:888)Īt .ZygoteInit.main(ZygoteInit.java:778)Ģ.I was told ( here) to try to share by putting an ArrayList into the EXTRA_STREAM: ArrayList uriArrayList=new ArrayList() Generated internal exception: :Ī$HierarchicalUri cannot be cast to Īt android.os.Bundle.getParcelableArrayList(Bundle.java:916) atĪ(Intent.java:6357)Īt (ContactPicker.java:618) atĬom.(ContactPicker.java:360) atĪ(Activity.java:6688) atĪ(Instrumentation.java:1118)Ī(ActivityThread.java:2633)Ī(ActivityThread.java:2741)Īt .-wrap12(ActivityThread.java) atĪ$H.handleMessage(ActivityThread.java:1488)Īt android.os.Handler.dispatchMessage(Handler.java:102) atĪndroid.os.Looper.loop(Looper.java:154) atĪ(ActivityThread.java:6169) at On WhatsApp, I got this log (which is very similar to what I got for Viber) :Ġ2-06 17:05:04.379 24590-24590/com.whatsapp W/Bundle: KeyĪ expected ArrayList but value was aĪ$HierarchicalUri. It worked fine with all apps, except for WhatsApp and Viber. What I tried and foundġ.I started sharing a file from the assets folder of the app, using a library called " cwac-provider". They either show a black screen (no image) or close themselves, on all of the test I've tried. On other apps, and on previous versions of Android, it worked fine. The problemīoth WhatsApp and Viber have issues when I try to share the image files on Andorid 7.1.1. I need to be able to share an image file to all apps, especially popular ones such as WhatsApp and Viber. Similar to issues I've recently had with sharing/opening APK files ( here, here and here), I now have an issue of sending an image file (in assets, res/raw or even from a URL) to specific apps: WhatsApp and Viber.














Viber icon on android