Skip to content

Commit 96c8a1a

Browse files
committed
プラグインのサービスをサービス一覧に表示しないように修正
1 parent ac367bb commit 96c8a1a

2 files changed

Lines changed: 0 additions & 17 deletions

File tree

dConnectDevicePlugin/dConnectDeviceSwitchBot/plugin/src/main/AndroidManifest.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@
7272
android:theme="@style/AppCompatTheme">
7373

7474
<!-- TODO ランチャー画面に表示させたくない場合は、下記のインテントフィルタを削除。 -->
75-
<intent-filter>
76-
<action android:name="android.intent.action.MAIN" />
77-
78-
<category android:name="android.intent.category.LAUNCHER" />
79-
</intent-filter>
8075
</activity>
8176
<provider
8277
android:name="org.deviceconnect.android.provider.FileProvider"

dConnectDevicePlugin/dConnectDeviceSwitchBot/plugin/src/main/java/org/deviceconnect/android/deviceplugin/switchbot/SwitchBotMessageService.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,6 @@ public void onCreate() {
5858
Log.d(TAG, "onCreate()");
5959
}
6060

61-
// TODO 以降の処理では常駐型のサービスを生成しています. 要件に適さない場合は修正してください.
62-
DConnectService service = new DConnectService("SwitchBot.Plugin");
63-
// TODO サービス名の設定
64-
service.setName("SwitchBot Device Plugin Service");
65-
// TODO サービスの使用可能フラグのハンドリング
66-
service.setOnline(true);
67-
// TODO ネットワークタイプの指定 (例: BLE, Wi-Fi)
68-
service.setNetworkType(NetworkType.UNKNOWN);
69-
service.addProfile(new SwitchBotButtonProfile(this, null));
70-
service.addProfile(new SwitchBotSwitchProfile(this, null));
71-
getServiceProvider().addService(service);
72-
7361
mSwitchBotDeviceProvider = new SwitchBotDeviceProvider(this, this);
7462
mSwitchBotDevices = mSwitchBotDeviceProvider.getDevices();
7563
for (SwitchBotDevice switchBotDevice : mSwitchBotDevices) {

0 commit comments

Comments
 (0)