{"action":"created","issue":{"url":"https://api.github.com/repos/asLody/VirtualApp/issues/143","repository_url":"https://api.github.com/repos/asLody/VirtualApp","labels_url":"https://api.github.com/repos/asLody/VirtualApp/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/asLody/VirtualApp/issues/143/comments","events_url":"https://api.github.com/repos/asLody/VirtualApp/issues/143/events","html_url":"https://github.com/asLody/VirtualApp/issues/143","id":187255715,"number":143,"title":"不能使用代码打开文件选择器","user":{"login":"wukaikailive","id":8515824,"avatar_url":"https://avatars.githubusercontent.com/u/8515824?v=3","gravatar_id":"","url":"https://api.github.com/users/wukaikailive","html_url":"https://github.com/wukaikailive","followers_url":"https://api.github.com/users/wukaikailive/followers","following_url":"https://api.github.com/users/wukaikailive/following{/other_user}","gists_url":"https://api.github.com/users/wukaikailive/gists{/gist_id}","starred_url":"https://api.github.com/users/wukaikailive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wukaikailive/subscriptions","organizations_url":"https://api.github.com/users/wukaikailive/orgs","repos_url":"https://api.github.com/users/wukaikailive/repos","events_url":"https://api.github.com/users/wukaikailive/events{/privacy}","received_events_url":"https://api.github.com/users/wukaikailive/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-04T05:17:41Z","updated_at":"2016-11-04T08:56:15Z","closed_at":null,"body":"使用这样的代码：\r\n```\r\nIntent intent = new Intent(Intent.ACTION_GET_CONTENT);\r\nintent.setType(\"application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\");\r\nintent.addCategory(Intent.CATEGORY_OPENABLE);\r\ntry {\r\n      startActivityForResult(Intent.createChooser(intent, \"Select a File to Upload\"), FILE_SELECT_CODE);\r\n } catch (android.content.ActivityNotFoundException ex) {\r\n     Toast.makeText(this, \"Please install a File Manager.\", Toast.LENGTH_SHORT).show();\r\n}\r\n```\r\n不使用virtual app能够正常弹出文件选择器，使用Driod plugin也能够正常弹出，而且点击按钮的动画常常不会结束，比如5.0的涟漪扩散效果。\r\n我使用的设备是htc m7，安卓5.0.2；以及genymotion模拟器，同样操作系统版本也为5.0。\r\n以下是点击后的日志：\r\n```\r\n11-04 01:26:51.066 818-2414/? I/ActivityManager: START u0 {act=android.intent.action.CHOOSER cmp=io.virtualapp/com.lody.virtual.client.stub.ChooserActivity (has extras)} from uid 10416 on display 0\r\n11-04 01:26:51.106 2111-2111/io.virtualapp D/ResolverActivity: intent=Intent { act=android.intent.action.GET_CONTENT cat=[android.intent.category.OPENABLE] typ=application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet flg=0x3000000 cmp=com.android.documentsui/.DocumentsActivity }\r\n11-04 01:26:51.116 818-1446/? W/ActivityManager: Duplicate finish request for ActivityRecord{95aa37 u0 io.virtualapp/com.lody.virtual.client.stub.ChooserActivity t2835 f}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/asLody/VirtualApp/issues/comments/258375096","html_url":"https://github.com/asLody/VirtualApp/issues/143#issuecomment-258375096","issue_url":"https://api.github.com/repos/asLody/VirtualApp/issues/143","id":258375096,"user":{"login":"wukaikailive","id":8515824,"avatar_url":"https://avatars.githubusercontent.com/u/8515824?v=3","gravatar_id":"","url":"https://api.github.com/users/wukaikailive","html_url":"https://github.com/wukaikailive","followers_url":"https://api.github.com/users/wukaikailive/followers","following_url":"https://api.github.com/users/wukaikailive/following{/other_user}","gists_url":"https://api.github.com/users/wukaikailive/gists{/gist_id}","starred_url":"https://api.github.com/users/wukaikailive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wukaikailive/subscriptions","organizations_url":"https://api.github.com/users/wukaikailive/orgs","repos_url":"https://api.github.com/users/wukaikailive/repos","events_url":"https://api.github.com/users/wukaikailive/events{/privacy}","received_events_url":"https://api.github.com/users/wukaikailive/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T08:56:15Z","updated_at":"2016-11-04T08:56:15Z","body":"尝试了一下，问题确实解决了。thanks~"}}
{"actor":{"display_login":"wukaikailive"}}