【发布时间】:2019-08-31 15:41:18
【问题描述】:
在麻省理工学院的应用程序发明者中可以做很多事情,但是,对于如何接收电话/短信甚至显示来电号码都没有明确的方法......这可能吗?
【问题讨论】:
标签: android app-inventor
在麻省理工学院的应用程序发明者中可以做很多事情,但是,对于如何接收电话/短信甚至显示来电号码都没有明确的方法......这可能吗?
【问题讨论】:
标签: android app-inventor
你不能用 App Inventor 接电话,有PhoneCall 组件,但你只能Use this component to dial the phone and make a call.
有Texting组件,可以收发短信,也可以显示发送电话号码:When a message arrives, the MessageReceived event is raised and provides the sending number and message.
请参阅reference documentation 了解更多信息。
【讨论】:
http://ai2.appinventor.mit.edu/reference/components/social.html:
PhoneCallStarted(号码状态,短信 phoneNumber) 指示电话呼叫已开始的事件。如果 status 为 1,则来电正在振铃;如果状态为 2,则拨出电话。 phoneNumber 是传入/传出电话号码。使用这个块 将添加需要额外批准的危险权限 如果您的应用已提交到 Google Play 商店。
【讨论】: