0

ユーザーが自分のデバイスにインストールされているアプリをアーケード、教育、またはどちらでもないとしてマークするアクティビティがあります。別のアクティビティでは、Arcade で選択したアプリのみを分離したいと考えています。

これは私が持っているものです:

    ArrayList<String> arcadeApps = null;

    SharedPreferences stored = getSharedPreferences("Sorted Apps", 0);

    Map<String, ?> mappedPreferences = stored.getAll();
    Iterator iterator = mappedPreferences.entrySet().iterator();

    while(iterator.hasNext()){
        Map.Entry nextEntry = (Map.Entry) iterator.next();
        if(nextEntry.getValue().equals("Arcade")){
            arcadeApps.add((String) nextEntry.getKey());
        }
    }

特に、arcadeApps は、ユーザーが「アーケード」として認定したすべてのアプリのリストですか? ばかげた質問で申し訳ありませんが、これを簡単に確認する方法がわかりません。

4

1 に答える 1