开发者

Custom URI schema that returns data

开发者 https://www.devze.com 2023-03-25 12:43 出处:网络
Yes, I know that defining custom URI schemata is a bad idea in general. Still, let me ask. If you define a custom schema via a BROWSABLE intent-filter, is there a way to make that schema return data

Yes, I know that defining custom URI schemata is a bad idea in general. Still, let me ask.

If you define a custom schema via a BROWSABLE intent-filter, is there a way to make that schema return data back to the browser? Not necessarily from activity (although that'd be nice); maybe a service would do?

Tried doing that by calling setResult() in a BROWSABLE act开发者_如何学Goivity, passing back an Intent with a data URI in it. Did not work.

0

精彩评论

暂无评论...
验证码 换一张
取 消