سؤال

I am working on a video based android application in which i am playing videos from server using videoview and i want to cache those videos for which i am downloading the video first and saving them into external storage as an temp file ,So can anybody guide me is it good approach to store those video files in external storage or i should save it into cache memory of the app?

هل كانت مفيدة؟

المحلول

Well, if you want to cache files externally, you could use getExternalCacheDir(). For other options, check out this page: http://developer.android.com/guide/topics/data/data-storage.html.

It does, however, mean that you have to delete files that aren't in use manually.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top