Back to project page Glass-IntentTunnel.
The source code is released under:
MIT License
If you think the Android project Glass-IntentTunnel listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.masterbaron.intenttunnel.router; /*from ww w .ja v a 2 s.com*/ import android.bluetooth.BluetoothAdapter; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; /** * Created by Van Etten on 12/6/13. */ public class ServiceReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Log.d("ServiceReceiver", "action=" + intent.getAction()); Intent passIntent = new Intent(intent); passIntent.setClass(context, RouterService.class); context.startService(passIntent); } }