Hi,

I am trying to develop a DLNA client. I want the user to see all the
playable data (not at the same time) on the network.
I wanted to store the information of the media in some form of a
database. I tried to use MediaService to scan a particular media

http://<ip-Address>:<port-no>/WMPNSSv4/2201497635/1_ezQ3MzNGOERCLTE4MkMtNDBEOC1BQTNDLUZFOTg1RjUyQTlBRX0uMC44.mp4

This is a video on one of my media servers(which you will not be able
to see).
 and this is the error I am receiving.


03-11 17:17:04.215  1201  1201 E
>>>>>>>>>>>>>>Working<<<<<<<<<<<<<<<:onMediaScannerConnected
03-11 17:17:04.343   969  1209 W
MediaScanner:MediaScannerClient::setLocale is not supported on GTV.
03-11 17:17:04.343   969  1209 E MediaScannerService: Exception in
handleMessage
03-11 17:17:04.343   969  1209 E MediaScannerService:
java.lang.IllegalStateException: Unable to create new file:
http://<ip-Address>:<port-no>/WMPNSSv4/2201497635/1_ezQ3MzNGOERCLTE4MkMtNDBEOC1BQTNDLUZFOTg1RjUyQTlBRX0uMC44.mp4
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
com.android.providers.media.MediaProvider.ensureFile(MediaProvider.java:
1345)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
com.android.providers.media.MediaProvider.insertInternal(MediaProvider.java:
1586)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
com.android.providers.media.MediaProvider.insert(MediaProvider.java:
1381)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
android.content.ContentProvider$Transport.insert(ContentProvider.java:
150)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
android.media.MediaScanner
$MyMediaScannerClient.endFile(MediaScanner.java:781)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
android.media.MediaScanner
$MyMediaScannerClient.doScanFile(MediaScanner.java:536)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
android.media.MediaScanner.scanSingleFile(MediaScanner.java:1208)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
com.android.providers.media.MediaScannerService.scanFile(MediaScannerService.java:
200)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
com.android.providers.media.MediaScannerService.access
$100(MediaScannerService.java:48)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
com.android.providers.media.MediaScannerService
$ServiceHandler.handleMessage(MediaScannerService.java:244)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
android.os.Handler.dispatchMessage(Handler.java:99)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
android.os.Looper.loop(Looper.java:123)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
com.android.providers.media.MediaScannerService.run(MediaScannerService.java:
188)
03-11 17:17:04.343   969  1209 E MediaScannerService:   at
java.lang.Thread.run(Thread.java:1096)
03-11 17:17:04.347   652   672 D Checkin : Logging stats:
CRASHES_REPORTED(count 1, sum 0.0)
03-11 17:17:04.559   652  1306 I DumpStateReceiver: Added state dump
to 1 crashes


Is it possible to scan a file on the network and add it to the
MediaStore db or will I have to create my own scanning service and db
for this.

Also how would i scan a file in android. I know linux has a "file"
command which would tell what kind of file it is. Does the android sdk
have a similar thing?

Thanks,
Mrinal

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to