我正在使用 Google Play Developer Console 帐户的 v2。
我转到在线 API 资源管理器进行新的编辑。
我在packageName字段中输入我的包名称 (com.companyname.appname) ,点击“执行”,然后收到此403错误响应:
{
"error": {
"errors": [
{
"domain": "androidpublisher",
"reason": "projectNotLinked",
"message": "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console."
}
],
"code": 403,
"message": "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console."
}
}
Run Code Online (Sandbox Code Playgroud)
我实际上确实链接了我的 …
我正在制作一个应用程序来发短信给这个字符串:
??????????????
???????????????
?????????????????
???????????????????
???????????????????
?????????????
????????????
?????????????
?????????????
?????????????
?????????????
???????????????
???????????????
????????????????
????????????????
?????????????????
??????????????????
Run Code Online (Sandbox Code Playgroud)
此方法发送文本:
protected void sendSMSMessage(String phoneNo, String msg){
try {
SmsManager smsManager = SmsManager.getDefault();
smsManager.sendTextMessage(phoneNo,null,msg,null,null);
Toast.makeText(
getApplicationContext(),
"SMS sent",
Toast.LENGTH_LONG
).show();
Log.v("sendSMSMessage",msg);
} catch (Exception e) {
Toast.makeText(
getApplicationContext(),
"Failed to send. Try again.",
Toast.LENGTH_LONG
).show();
e.printStackTrace();
}
}
Run Code Online (Sandbox Code Playgroud)
如果msg是"测试",并且我跑了sendSMSMessage,几分钟后我会在手机上收到字符串"test".如果msg是怪异的骨架,方法就行,但是我没有得到文本,并且控制台没有显示任何错误 - 弹出"短信发送"吐司以显示正确执行的代码.
当我手动给自己发出怪异的骨架文字时,我得到了文字,但是它上面都散布着"(X/6)"(当然,"x"是一个数字).
是不可能发送骨架短信?
如果是这样,我应该将其制作成图片并将代码发送为彩信吗?