【问题标题】:invoking a flex application from android when SMS comesSMS 到来时从 android 调用 flex 应用程序
【发布时间】:2012-03-05 08:40:27
【问题描述】:

我在 flex 中开发了一个应用程序。我想在我的 android 手机收到短信时调用这个应用程序。请帮帮我。

【问题讨论】:

  • 做一些研究并提出明确的想法

标签: android actionscript-3 apache-flex android-emulator flex4.5


【解决方案1】:

http://developer.android.com/reference/android/content/BroadcastReceiver.html
这可能就是你需要的

将以下内容放入您的 androidmanifest.xml:

<receiver android:name=".Receiver"> 
     <intent-filter> 
          <action android:name="android.provider.Telephony.SMS_RECEIVED" /> 
     </intent-filter> 
</receiver>  

并使用此代码在接收短信时处理您想要的任何操作

public class Receiver extends BroadcastReceiver 
{ 
    @Override 
    public void onReceive(Context context, Intent intent) { 
        //Do stuff here
    }
}

我对android上的flex没有任何经验,所以可能会有一些差异

【讨论】:

  • 能否请您发送一些示例代码来解决上述问题
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多