我的代码不起作用。不要通过此代码打开电子邮件。他们显示一个无效错误。
My Code is not working. Do not opening email via this code. Their shows a null error.
将其添加到AndroidManifest.xml上方的上方
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" /> <queries> <intent> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="https" /> </intent> <!-- If your app opens https URLs --> <intent> <action android:name="android.intent.action.VIEW" /> <data android:scheme="http" /> </intent> <!-- If your app opens https URLs --> <intent> <action android:name="android.intent.action.VIEW" /> <data android:scheme="https" /> </intent> </queries>
Add this in AndroidManifest.xml just above of application
在发布中,您将其转换为字符串,而它需要启动URI。从启动方法中删除.tostring
launch(emailLaunchUri);
In launch you are converting it to a string whereas it would require a uri to be launched. Remove .toString from the launch method
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
将其添加到AndroidManifest.xml上方的上方
Add this in AndroidManifest.xml just above of application
在发布中,您将其转换为字符串,而它需要启动URI。从启动方法中删除.tostring
In launch you are converting it to a string whereas it would require a uri to be launched. Remove .toString from the launch method