简体   繁体   中英

DirectShare API with Android Q

I'm trying the new "push" model for the direct share targets of Android Q. I'm using ShortcutMaangerCompat from Android X package as explained here . I removed the old direct share service too. I tested my app on previous versions to check if backward compatible, it seems ok. On Android Q emulator I always get the "direct share not available". See image. Is it a bug? Emulator problem? Just me? I don't understand if I did something wrong with my app since I can't see any direct share targets on android Q.

在此处输入图片说明

This is indeed Android Q Emulator issue . I ran the same sample app in Pixel Phone with Android 10, it works just fine showing the Contacts correctly in the place of where it showed "Direct Share not available" in Emulator.

https://github.com/googlesamples/android-SharingShortcuts

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM