0

皆さん、

私たちのアプリケーションは、特定のシリアル番号を持つ特定のモデルのディスプレイ モニターに対してのみ実行することを目的としています。アプリの Linux バージョンでは、EDID を介してこの情報を取得します。

現在、コードを Android (Google TV) に移植することを検討しています。

モデルやシリアル番号などのディスプレイ デバイスの特性を取得できる Android NDK の API はありますか?

よろしくお願いいたします。

よろしく、
ピーター

4

2 に答える 2

0

以下を使用して、すべての機能をダンプできます。

    TextView text = (TextView) findViewById(id.featurestextview);

    FeatureInfo features[] = getPackageManager()
            .getSystemAvailableFeatures();
    Log.d("Features", "getSystemAvailableFeatures() = " + features);

    text.append("Supported System Features on this device:\n\n");

    if (features != null) {
        for (FeatureInfo featureInfo : features) {
            if (featureInfo.name!= null) {
                text.append(featureInfo.name+"  (Flags: "+featureInfo.flags+") \n");
            } else {
                text.append(featureInfo+"\n");
            }
        }
    }

    long maxMemory = Runtime.getRuntime().maxMemory();
    int memoryClass = ((ActivityManager) getSystemService(ACTIVITY_SERVICE)).getMemoryClass();
    MemoryInfo memInfo = new MemoryInfo();
    ((ActivityManager) getSystemService(ACTIVITY_SERVICE)).getMemoryInfo(memInfo);


    text.append("\n\nMEMORY:\nMaxMemory "+maxMemory/1024+"KB / "+maxMemory/1024/1024+"MB");
    text.append(" (Memory Class: "+memoryClass+")");
    text.append("\n MemoryInfo: Avail="+ memInfo.availMem / 1024 +"KB   Threshold="+memInfo.threshold /1024 +"KB");

ベンダーなどの Android ビルド プロパティを使用すると、特定のデバイスにスコープを設定できます。シリアル番号 (例: CPU シリアル - は利用できません) に関しては、MAC アドレスを使用することをお勧めします。

于 2013-04-22T17:42:39.977 に答える