Back to project page Android-1.
The source code is released under:
MIT License
If you think the Android project Android-1 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.example.georgi.resourcesrecreate; // www . jav a 2s. c o m import android.app.Application; /** * Created by georgi on 11/22/14. */ public class AppContext extends Application{ private Object bluetoothGlobalListener; @Override public Object getSystemService(String name) { if (name.equals("BluetoothGlobalListtener")){ if (bluetoothGlobalListener == null){ bluetoothGlobalListener = new Object(); } return bluetoothGlobalListener; } return super.getSystemService(name); } }