简体   繁体   中英

Android R.Raw files in SD card?

The files we store in android R.raw folder(eg mySong.mp3) are present on Mobile internal memory or in SD card.

i have a song audio 100MB and i am using this in my android application.

      MediaPlayer mPlayer = MediaPlayer.create(context, R.raw.mysong);
      mPlayer.start();

Just wanted to know that when user install .apk this 100MB song will stored in SD card or internal memory of phone ?

well you can decide.

You can set the field android:installLocation in the root manifest element to prefer install location. values may be :

internalOnly: force internal

preferExternal: prefere SDCARD

auto: System will decide

Install in sd card is supported only devices with android 2.2 and higher.

Depend on your apps store.you install apps in SDcard so R.Raw store in Sdcard otherwise phonememory.

one solution of your question.when you install apps then after go to application->manage->click on apps and click on move to sdcard option.try this

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM