What is the path for MIT App Inventor to access a USB drive files connected via OTG? - app-inventor

I have a thumb drive with videos on it and it is connected to my Android using a USB OTG cable. The File Manager app on my phone sees the USB storage device and I can click into it and see the folders and videos I need, but I cant figure out the correct path to load them from the USB device in app inventor.
I have tried this:
file:///storage/usbdisk/MyCamera/RecentClips/front.mp4
when the file is in a folder on the USB drive like this:
d:/MyCamera/RecentClips/front.mp4
but I get an error:
Error 107: unable to load
How do I access files on a USB drive in MIT App Inventor?

I don't know, if it is possible to access the files, but you could try the file extension and its AvailableStorageDirectories method to find out the path

Related

Accessing USB device using firefox

Is there any way to access an USB device through Firefox on a local computer?
More details: I have created a USB device using microchip 18F2250 that sends data of thermal and humidity sensors & able to receive data to control a robotic arm..
The device has been tested on a C#2010 program to access the USB device successfully..
Now I run a HTML/javascript web page as a local server (http://localhost:8000/..bla bla bla..) & I need to access the USB device from this firefox bowser..
Notes : cannot use Chrome and its plug in WebUSB, I'm restricted to Firefox only for some reasons.
Any help??

Custom ROM Samsung SM-G53OT1

I've been using this phone a while, and I have been through tough times with it. Two bootloops, Google Play Services crashing infinitely, weird errors, everything. I'd say I've "bonded" with this Samsung and would like to take it up a notch.
I've been looking everywhere for ROMS for this phone and I haven't been able to find any, not figure out how. Maybe I'm just stupid but man it's aggregating.
I have a PC, Samsung driver's, Odin, and of course, my Samsung. I have everything I believe is necessary to flash a custom ROM.
I would appreciate ANY help to get a nice ROM for my phone.
At the minimum, I'd like it to have a theme changer.
Samsung Galaxy Grand Prime One
SM-G53OT1
You can install CM 13 on your SM G5series
CM 13 is a custom ROM used in android devices.
your warranty will be void if you install a custom rom.
careful that installing a custom ROM would sometimes injure your device
permanently.
Follow these steps to root your device to enjoy vast features
Download a recovery.img,USB driver and ADB tools for your corresponding device(extract and install them and keep the extracted file in one folder)
Download and Copy the zipped cm13 and gapps6(arm)to your device's internal or SD storage
Connect your device to a PC in USB debugging mode(just tap 7 times on the developer options in settings to enable USB debugging)
open program files,open minimal adb tools.Type CMD in location bar to open the command prompt in that folder)
type "adb devices" in the CMD without quotes.
"fastboot recovery.img"
Your device will be reboot and
Team win recovery is opened
wipe the system ,cache,dalvik cache
select INSTALL from the option
choose the zipped file cm13 and swipe it to flash the custom ROM.
choose the zipped file gaapps and flash it by swiping.
Your device will be updated to marshmallow after rebooting

How to get Windows driver for my device to open an html file when the device is connected to computer?

I have a USB to serial port device and the associated device driver for Windows (written by someone at work). Is it possible to get the Windows driver for my device to open an html file when the device is connected to computer?
The html file would have a link that runs a Java Webstart application. So the html file would be written out onto disk by the driver when it was installed and whenever the device is plugged in and the driver invoked, it launches the application after the user clicks the link in the browser. This is the easy part.
The hard part is knowing how to get the driver to open the html file. Any help appreciated.
If all you're interesting is manipulating a file, you can use the corresponding kernel APIs. See here for details: http://msdn.microsoft.com/en-us/library/windows/hardware/ff565384(v=vs.85).aspx . Read carefully, there some things to watch out from that do not exist in user mode.

Windows: suppress warning when plugging in unformatted flash drive

I'm working on a device that writes some information directly to a flash drive, without using any file system (it just writes blocks of data directly to the disk sectors). After the flash drive is filled, I need to plug it into any computer with windows and read data using my application.
Everything works great except for when I plug the flash drive in windows warns me that flash drive is invalid an offers me to format it. I want to get rid of this message for my flash drives on any computer that have installed my windows application.
My flash drive have signature bytes at the start so I can always make out whether it's my flash drive or just a regular flash drive.
My idea is that I should be able to write some sort of service or driver which will check all flash drives and will disallow OS to mount my drives. However I don't know whether its really possible and I can't find any documents mentioning this sort of functionality.
I'd appreciate any docs / links / functions names that can help me suppress unformatted disk warning.
Make a tiny real partition at the start and format it to keep windows happy.
Then just use the rest of the drive as you please
This seems to work:
Remove the drive letter assigned to the device:
Right-click the 'Computer' (or 'My Computer') icon on your desktop or in the Start Menu and select Manage. The 'Computer Management' window should appear.
From the list on the left, select 'Disk Management' (within the Storage sub-tree).
Right-click the encrypted partition/device and select Change Drive Letter and Paths.
Click Remove.
If Windows prompts you to confirm the action, click OK.

USB AutoRun: 'Open In Browser' Option never appears

I am attempting to make our webpage open when someone plugs in our USB device.
My Problem: When we plug in the USB device the autorun dialog appears but there is never an option to open/run the webpage we have specified. See below pic of the dialog we see. Isn't there meant to be an option that says something like "Open in Internet Explorer" or etc.?
What we are hoping to achieve is to have another option below 'Use this drive for backup' that says something like 'Open in Web Browser' or something that will ultimately open our webpage when the users decides to.
Heres our code that is inside the file autorun.inf which is placed on the USB device:
[autorun]
shellexecute=http://exds-test.epicservices.com.au/V10InstallationInfo.aspx
action=Open Website
label=EXDS USB Drive
According to this link, this will not work on modern OS versions
http://www.flashbay.com/services/usb-autorun
You've got to use a "helper" application.

Resources