Bluetoothデバイスを登録済みか判定する機能を追加
This commit is contained in:
1 parent
87aa82529c
commit
12239a269f
5 files changed
+114
-9
No files matched your search
@@ -54,7 +54,6 @@ public class RecyclerAdapter extends RecyclerView.Adapter<RecyclerAdapter.ItemVi
|
||||
.setPositiveButton(android.R.string.ok, (dialog, which) -> {
|
||||
// OK button pressed
|
||||
Toast.makeText(v.getContext(), "OK button clicked", Toast.LENGTH_SHORT).show();
|
||||
|
||||
//共有プリファレンスに保存
|
||||
SharedPreferences sharedPreferences=PreferenceManager.getDefaultSharedPreferences(this.applicationContext);
|
||||
sharedPreferences.edit().putString("bluetooth_device_id", deviceList.get(position)[1]).apply();
|
||||
|
||||
Reference in new issue
Block a user