Hi all,
Forgive me if this is a bit of a noob question, but I'm trying to use the shell function in the "Phone" library to take a screenshot of the Android screen (the whole current screen, not my own activity).
I set the object up as normal...
Dim cmdShell As Phone
Dim strFilePath As String
strFilePath = pthDefaultPath & "/" & pthImageCache
... I've tried two shell commands, both "screencap" and "fbtool" (I'm presuming it'll pick them up and run them from the /system/bin/ folder).
This line seems to pass without error, but does nothing...
cmdShell.Shell("screencap", Array As String("p", strFilePath & "/img.png"),Null,Null)
This one gives me a full-on java exception...
cmdShell.Shell("fbtool", Array As String("d", strFilePath & "/img.png"),Null,Null)
Could someone possibly point out what I'm doing wrong please? My phone is not rooted, I'm trying to do this without having the user need to root the device.
Cheers
Forgive me if this is a bit of a noob question, but I'm trying to use the shell function in the "Phone" library to take a screenshot of the Android screen (the whole current screen, not my own activity).
I set the object up as normal...
Dim cmdShell As Phone
Dim strFilePath As String
strFilePath = pthDefaultPath & "/" & pthImageCache
... I've tried two shell commands, both "screencap" and "fbtool" (I'm presuming it'll pick them up and run them from the /system/bin/ folder).
This line seems to pass without error, but does nothing...
cmdShell.Shell("screencap", Array As String("p", strFilePath & "/img.png"),Null,Null)
This one gives me a full-on java exception...
cmdShell.Shell("fbtool", Array As String("d", strFilePath & "/img.png"),Null,Null)
Could someone possibly point out what I'm doing wrong please? My phone is not rooted, I'm trying to do this without having the user need to root the device.
Cheers