TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ghasem deh
NA
258
40.2k
How get videos list from custom directory ?
Apr 14 2018 4:52 PM
Hi guy's
please see this tutorials :
http://www.androiddevelopersolutions.com/2013/12/android-play-video-from-sd-card.html#comment-form
but i want read videos list from my app directory , an try this : (but don't show any file)
path = contextWrapper.getFilesDir().getPath() +
"/videos/"
;
@SuppressWarnings
(
"deprecation"
)
private
void
init_phone_video_grid() {
// MediaStore.Video.Media.DATA + "=?", selectionArgs, MediaStore.Video.Media.DATE_TAKEN + " DESC"
System.gc();
String[] proj = {MediaStore.Video.Media._ID, MediaStore.Video.Media.DATA, MediaStore.Video.Media.DISPLAY_NAME, MediaStore.Video.Media.DURATION};
String[] selectionArgs =
new
String[]{path};
videocursor = managedQuery(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, proj, MediaStore.Video.Media.DATA +
"=?"
, selectionArgs, MediaStore.Video.Media.DATE_TAKEN +
" DESC"
);
count = videocursor.getCount();
videolist = (ListView) findViewById(R.id.PhoneVideoList);
videolist.setAdapter(
new
VideoAdapter(getApplicationContext()));
videolist.setOnItemClickListener(videogridlistener);
}
Reply
Answers (
0
)
how to fetch website feed in xamarin
google map in android