Finding data for playlist

asahartz

New Member
Hi all, my first post here. I'm new to Android, though familiar with VB and Visual Studio, so I took to B4A like a duck to water. Now looking into buying it for the school where I teach ICT.

I've managed, in a day, to create a twin music player for my daughter to use for her backing tracks as a stage entertainer (we saw someone who had written a Windows version in VB, but felt using an Android tablet would be a better way forward).

My problem is that, not having an Android device yet to test against, I don't know quite how it will find the music tracks to load into the playlist. I've spotted some posts referring to ContentChooser and I think I can make that work, but how do I get the tracks onto the emulator? Or where would they be stored? So far I've packed a couple of tracks into my music player, but that seems an inefficient way to do it.

I've done a lot of reading but not yet found an answer.

Any advice please?

Chris

:sign0104:
 

admac231

Active Member
Licensed User
Longtime User
Since you should have control of the location of the tracks you can really put them anywhere. For testing purposes I would probably just put them in sdcard/{yourApp}.

As for actually transferring the files there is a few ways to do it.

1. B4aBridgePlus - this is a file manager for android phones made by a resident B4A expert. The easiest way to do it. I'm not entirely sure if it works with the emulator but try it anyway.

2. Use the adb command line tool that comes with the Android SDK:
B4X:
adb push myDirectory /sdcard/targetDir

Forgot to add: make sure you have a fair amount of SD card space for the emulator
 
Upvote 0

asahartz

New Member
The bridge doesn't work with the emulator as it doesn't show as an individual IP on the network; it's masked inside the IP of the host computer.

I can't find the command line tool, having searched the Android SDK folders; what am I looking for there?
 
Upvote 0

admac231

Active Member
Licensed User
Longtime User
It's in Android/platform-tools.

As it's a command line tool you have to use command prompt i.e

Start >> Search "Cmd" >> Run cmd.exe

Type "cd C:/Android/platform-tools" - changing the directory to suit.

Use the command in the earlier post.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
There is a tutorial explaining how to set a virtual SDCard in the emulator... just search the wiki
 
Upvote 0

Smee

Well-Known Member
Licensed User
Longtime User
FWIW

I use FileZilla on my computer and FTPServer on the android wirelessly connected. Works like a charm for file transfewrs and testing output

Joe
 
Upvote 0

asahartz

New Member
It's in Android/platform-tools.

As it's a command line tool you have to use command prompt i.e

Start >> Search "Cmd" >> Run cmd.exe

Type "cd C:/Android/platform-tools" - changing the directory to suit.

Use the command in the earlier post.

I'd already found it, cheers, realised within minutes of posting I was in the wrong directory :sign0161:

Tried to edit my original post but for some reason it never showed up... ah well. Getting there slowly - didn't help when my lappy power supply went bang (literally!)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…