Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/179.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何通过外部信号开启android应用?_Android_Bluetooth_Nfc_Android Bluetooth_Rfid - Fatal编程技术网

如何通过外部信号开启android应用?

如何通过外部信号开启android应用?,android,bluetooth,nfc,android-bluetooth,rfid,Android,Bluetooth,Nfc,Android Bluetooth,Rfid,我想通过蓝牙、rfid、nfc等外部信号打开android应用程序。有什么建议吗?通常,Android系统会在需要时自动启动应用程序。在Bluetooth Classic的情况下,如果您打开服务器套接字以接受连接,则应用程序的进程将保持不变 一些其他服务使用所谓的Receiver,它在AndroidManifest.xml中声明,系统会根据需要启动应用程序(蓝牙LE、警报或GCM消息等就是这种情况)。您可以编写一个在后台运行的服务,您可以使用该服务触发应用程序启动(使用BLE信号、sms等)使用

我想通过蓝牙、rfid、nfc等外部信号打开android应用程序。有什么建议吗?

通常,Android系统会在需要时自动启动应用程序。在Bluetooth Classic的情况下,如果您打开服务器套接字以接受连接,则应用程序的进程将保持不变


一些其他服务使用所谓的
Receiver
,它在
AndroidManifest.xml
中声明,系统会根据需要启动应用程序(蓝牙LE、警报或GCM消息等就是这种情况)。

您可以编写一个在后台运行的服务,您可以使用该服务触发应用程序启动(使用BLE信号、sms等)

使用广播接收器