|
Having trouble handling what an api call returns...
I've written a little java program, and what I'm trying to get it to do (as a test), is return the list of active encoding devices, via the "GetActiveCaptureDevices" api call. All I want to do is output the result to the system I/O (the Sage console window).
The file compiles, and runs fine up to this point:
System.out.println(FileList[0]);
The FileList is a result of:
String[] FileList = (String[])sage.SageTV.api("GetActiveCaptureDevices", null);
The error I get is very generic, and I'm not sure why my catch doesn't catch it. It just says "Exception in thread..."
Basically, it doesn't like me treating it like an array of strings.
Things I think I might be doing wrong: It could be returning a NULL if it doesn't think there are any active capture devices, though I've verified there are.
I've compiled the .java file into a .class file, and it is run by Sage on startup. I get other system I/O message out fine. Any suggestions?
|