如何在Android中添加图像描述和标题(例如图像描述和标题)等元属性
我知道可以使用Firebase Deep Linking
来实现这一点,但是我发现它对自定义域有点复杂,因此我选择了常规域。但是,我找不到如何添加图像,标题和字幕?另外,URL将是这样的动态:
forms.mysiteName.in/solve/randomformid
I know this can be achieved using Firebase Deep Linking
, but I find it a bit too complicated with a custom domain, so I go with the regular one. But, I could not find how do I add an image, title and subtitle for it? Also, the URL will be dynamic like this:
forms.mysitename.in/solve/randomFormId
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因为在一天结束时,您可以将其作为查询参数传递。请注意,您应该基础64在插值字符串之前编码参数,因为它是无法使用的。
如果您使用 android的
uri
class 您已经并且可以编写以下内容:假设您的图像参数为URL。如果不是URL,则可以在查询参数中使用Base64编码版本,但这不建议
以下代码:
Because at the end of the day you're handling URI's you can pass them as query parameters. Note that you should base-64 encode the parameters before interpolating the string as it's otherwise unusable.
If you use Android's
Uri
class that's handled for you already and can write the following:Assuming your image parameter is a Url. If it's not a URL you can use the Base64 encoded version into the query parameter but that's not advisable
The following code:
Prints:
Which is a valid Uri.
You can also use this following function to create a new Uri from an old one: