Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SDカードから画像ファイルを開いてNDKの変数に割り当てるコードスニペットを手伝ってくれる人はいますか?よろしくお願いします..
SDカードは通常、[ /mnt/sdcard/external_sdAndroid呼び出しを使用]Environment.getExternalStorageDirectory().getPath()にあり、実際のパスを見つけて、JNI経由でCコードに渡します。
/mnt/sdcard/external_sd
Environment.getExternalStorageDirectory().getPath()
Cコードにパスが決まったら、プレーンCまたはC++のようにファイルを開きます。
FILE* File = fopen( FileName , "rb" ); fclose( File );