Bethany
Bethany

Reputation: 63

simple android video player

i'm very very new to android/java and am trying to create a basic video player on android. i have researched all throughout stackoverflow, google, youtube, etc but i really can't seem to find a way to do this..

my goal is to have a listview that shows all the compatible videos on the android device. then, after tapping on one of the items in the listview, the video would play.

i did find some very helpful resources, such as http://www.android-trainer.com/playing-with-videos-from-content-providers-part-3-.html , but this code uses the deprecated method managedquery()

i was then lead to this website: http://mobile.tutsplus.com/tutorials/android/android-sdk_loading-data_cursorloader/comment-page-1/#comment-15832 to find a way around the managedquery() method, but judging from the comments, this tutorial is ridden with bugs... i tried to debug the tutorial but i was hoping someone could give me a clear explanation of what to do...

should i focus on the first link and figure out how to go around the deprecated managedquery() method? if so, how do i go about avoiding the managedquery() method?

or is there another, perhaps simpler, way of creating a video player that can play all the videos in the device?

thank you

Upvotes: 1

Views: 851

Answers (1)

josephus
josephus

Reputation: 8304

Where do you want the list to come from? Are you ok with using the default video player? Where are the videos stored?

ManagedQuery (and cursorloader) is for traversing through a database. You don't need that.

Upvotes: 1

Related Questions