Hi Again Erel,
Here's the modified ListView example with all of the songs on my website
Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim web As PhoneIntents
Dim ListView1 As ListView
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Main")
ListView1.AddTwoLinesAndBitmap2("Free", "Dancing in the Garden", LoadBitmap(File.DirAssets,"dancing.jpg"),"http://www.michaeljohnson.com.au/samples-mobi/song1-1.mp3")
ListView1.AddTwoLinesAndBitmap2("Chill", "Dancing in the Garden", LoadBitmap(File.DirAssets,"dancing.jpg"),"http://www.michaeljohnson.com.au/samples-mobi/song1-2.mp3")
ListView1.AddTwoLinesAndBitmap2("Breath", "Dancing in the Garden", LoadBitmap(File.DirAssets,"dancing.jpg"),"http://www.michaeljohnson.com.au/samples-mobi/song1-3.mp3")
ListView1.AddTwoLinesAndBitmap2("Bridge", "Dancing in the Garden", LoadBitmap(File.DirAssets,"dancing.jpg"),"http://www.michaeljohnson.com.au/samples-mobi/song1-4.mp3")
ListView1.AddTwoLinesAndBitmap2("Swan", "Dancing in the Garden", LoadBitmap(File.DirAssets,"dancing.jpg"),"http://www.michaeljohnson.com.au/samples-mobi/song1-5.mp3")
ListView1.AddTwoLinesAndBitmap2("Roar", "Dancing in the Garden", LoadBitmap(File.DirAssets,"dancing.jpg"),"http://www.michaeljohnson.com.au/samples-mobi/song1-6.mp3")
ListView1.AddTwoLinesAndBitmap2("Forest", "Dancing in the Garden", LoadBitmap(File.DirAssets,"dancing.jpg"),"http://www.michaeljohnson.com.au/samples-mobi/song1-7.mp3")
ListView1.AddTwoLinesAndBitmap2("Labyrinth", "Dancing in the Garden", LoadBitmap(File.DirAssets,"dancing.jpg"),"http://www.michaeljohnson.com.au/samples-mobi/song1-8.mp3")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause(UserClosed As Boolean)
End Sub
Sub Listview1_ItemClick (Position As Int, Value As Object)
ListView1.GetItem(Position)
StartActivity(web.OpenBrowser(ListView1.GetItem(Position)))
End Sub
It would look like this
This example would just send the user via a browser to these sites.
Instead, Im wanting to stay on that page and have the mp3 music streamed via MediaPlayerStream like in the NJDudes example.
Is this possible?