【问题标题】:Start application when file is received via Bluetooth通过蓝牙接收文件时启动应用程序
【发布时间】:2012-04-27 19:45:13
【问题描述】:

当通过蓝牙接收到任何文件时,我的应用程序应该启动。

请告诉我,通过蓝牙接收文件时会触发哪个意图?

【问题讨论】:

    标签: android android-intent bluetooth intentfilter


    【解决方案1】:

    没有这样的特定意图操作可以告诉您文件已下载。但是,您应该收听以下广播以检测电话已断开连接,然后以编程方式检查是否下载了文件。

    <intent-filter>
        <action android:name="android.bluetooth.device.action.ACL_DISCONNECTED"/>
    </intent-filter>
    

    【讨论】:

      猜你喜欢
      • 2014-10-07
      • 1970-01-01
      • 2012-08-17
      • 2012-06-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-23
      相关资源
      最近更新 更多