Android things UsbDevices - android-things

I am developing with Android Things on rpi3.
I have a problem working with usb devices(pendrive) in my Raspi3 on Android things platform 1.0 Versión, i have been able to detect Usb(pendrive) Files, and copy files to them from my sd Card.
I use 'com.github.mjdev:libaums:0.5.5' library, and I cannot work with all kind of usb devices.I have 3 pendrives which are FAT32, and i can only use one, the others report me an error message, as soon as i plug them into mi rpi3, i get this messages:
"Unsupported fs on partition"
"E/2: error setting up device"
So i cannot work with them, because the error appears on setup_device() functions of this library.
Any idea?
Best regards
Álvaro

unfortunately, I do not think I will be able to help you out on that one.
You should make sure it is FAT32 and an MBR (GPT is not supported, atm).
If that is the case then please debug and see why the Fat32FileSystem cannot be initialized properly.

Related

AS3 Multiple Application Domain using local null.swf file

I have the following issue, I cannot find a solution on the web, please let me know if you can help me or point me to a proper info about this issue.
To understand the background, Im porting a game from flashDevelop to Flash Builder (please dont give me tips about this comment if doesn't help to my particular problem). Everything works fine right now, the game use a file null.swf as a container of local files (I don't undertand that part completely, but the game has a lot of embed swc files, and the game use the null.swf to access those files, through LoaderMax).
The problem is that everything works fine with a fast build, but it's not working with a standard build, I have the error on Loader class that says "Multiple application domains are not supported on this operating system".
Useful information:
Im using AIR 3.9, compilation flash swf-version=20 (I had 18 when I started with this issue)
null.swf is properly included on the IPA, the code recognize the file, and as I said before it works with a fast build.
For embed swc files, I had to include the files with a compiler argument: "-include-libraries ../../filename.swc ../../filename2.swc etc.."
Thanks for any help.
Regards
It's fixed, using a context:
context = new LoaderContext(false, ApplicationDomain.currentDomain, null);
If I use the third parameter, like ..., SecurityDomain.currentDomain); it doesn't work.

DllNotFoundException in Mono on a Mac

I'm trying to build my unity applicaton on a mac but I have the following error:
DllNotFoundException: libMonoPosixHelper.dylib
I've googled around but can't seem to find a fix for this issue. Has anyone ever come across this before? How did you get rid of the error?
I guess it's because you're using Unity3d Free, correct?
Dynamic including of Dll's is not a feature of the free-version, you'll ned to buy Unity Pro
If your not including a dll on your own, then maybe the installation is broken

Trying to publish an AIR for iOS app using Flash CS5.5, but no ipa is being produced

I've finally obtained an iOS developer license, I've managed to publish a hello world, basic kind of app, get an IPA file and install it on my iphone.
However, now i'm trying something more complex, including using imported libraries. I start the publish process as usual, no error is produced but i'm not getting a message that the ipa is ready.
When i look at the target directory I have folders named like 'AOTBuildOutput5264907783565294361.tmp' with files in them.
Looks like it crashes in the middle, but I get no error message to debug!
Please help me find out where I can read these error messages or provide some other kind of insight!
Thanks in advance
Rotem
I've occasionally run into problems like this. It usually occurs when I'm trying to publish the app from my dropbox folder whilst it is trying to sync.
I can only assume that the problem happens because another application is accessing that file (in my case dropbox).
So make sure nothing else is trying to sync to that folder. Hope that helps.
I ended up moving my development folder to somewhere else in my filesystem and everything went fine. I guess having hebrew charachters in the path didn't work so well for the compiler.

Compiling AIR to iOS throws a java error

I have a flash app, that we are re-purposing for iPad. I can compile it happily to AIR 2, and can debug it as an iOS app (ctrl+enter, and ctrl+shift+enter) - but when I try to actually publish it I get a Java error - not a compiler error, but an error with the compiler itself if that makes sense. The error is below - sorry for any typos, but you can't copy and paste the error message:
Error creating files.
Exception in thread "main" java.lang.Error: Method 1207 is referenced more than once.
at abobe.abc.LLVMEmitter.referenceMethod(LLVMEmitter.java:3440)
at abobe.abc.LLVMEmitter.access$2300(LLVMEmitter.java:44)
at abobe.abc.LLVMEmitter$MethodEmitter.emitBlock(LLVMEmitter.java:2854)
at abobe.abc.LLVMEmitter$MethodEmitter.emit(LLVMEmitter.java:1426)
at abobe.abc.LLVMEmitter.emitMethods(LLVMEmitter.java:3963)
at abobe.abc.LLVMEmitter.emit(LLVMEmitter.java:3835)
at abobe.abc.LLVMEmitter.processABCs(LLVMEmitter.java:206)
at abobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:174)
at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcode(AOTCompiler.jav a:329)
at com.adobe.air.ipa.AOTCompiler.GenerateMacBinary(AOTCompiler.java:600)
at com.adobe.air.ipa.IPAOutputStream.compileRootSwf(IPAOutputStream.java :196)
at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:35 5)
at com.adobe.air.ADTPackager.createPackage(ADTPackager.java:65)
at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:165)
at com.adobe.air.ADTEntrypoint.parseArgsAndGo(ADTEntrypoint.java:132)
at com.adobe.air.ipa.PFI.parseArgsAndGo(PFI.java:152)
at com.adobe.air.ADTEntrypoint.run(ADTEntrypoint.java:68)
at com.adobe.air.ipa.PFI.main(PFI.java:112)
This happens regardless of deployment type, or rendering option. I know the certificates, and provisioning profile are correct as when I remove the Class in the .fla itself it compiles quite happily and can be put onto our dev iPad (obviously it just doesn't do anything).
Can anyone shed any light on this as I am not sure even where to start.
EDIT: This is with Flash CS5 running on XP64 if that is of any help.
try using the ADT.BAT command, it worked for us.
First, make sure your Flash Pro CS5 is up to date: http://www.adobe.com/support/flash/downloads.html
You can post a question in the Adobe Forum here: http://www.AdobeAssistance.com
Read the Adobe FAQ for iOS (make sure you are not using unsupported libraries, etc...): http://labs.adobe.com/wiki/index.php/Packager_for_iPhone:Developer_FAQ
I would read the FAQ and make sure my Flash is up to date with the latest version and try it again. If it fails I would post this question on the Adobe Forum.
It has something to do with debug information being present in the SWF. The only solution is to compile the AIR application via the command line and with the include libraries parameter:
"c:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.1.0\bin\amxmlc" .\src\YourApp.mxml -compiler.include-libraries

Blackberry older simulator

my client wants me to make an application which works on pre4.0 os... i understand that if i make 1 like that then it wont work on the latest os...
But my actual problem is that though i did the coding correctly coz the application was just a simple WebIcon... i cant load it onto the 7290 simulator...
i tried javaloader -u load MyApp.jad and javaloader -u load MyApp.cod... but i get the following error
Error: unable to open port...
earlier it couldnt find javac... so i placed javac in the System32 folder... now the below shown error is displayed and further the simulator doesnt connect with even the 4.0 IDE....
even tried compiling in the 4.0 IDE itself... but i get the following error...
Error!: Error: java compiler failed: javac -source 1.3 -target 1.1 -g -O -d MyDir
Don know wat to do... plz help...
screenshot of the simulator...
alt text http://www.freeimagehosting.net/uploads/d9e1840ce0.jpg
Well friends at last i tried uploading the applications .cod and .jad along with the optional .jar onto my company's server... and guess wat... it did download using the jar file but after trying all the techniques mentioned here... i guessed this was it...
But the application though gets listed in the applications but doesnt show up on the menu... and neither does it run in anyway...
Hence im closing with the research here... thanx a lot guys...
I load my programs doing the following:
(Note: This is on an Curve 8310--which has a memory card slot--not sure if you can plug in the phone and use it in HardDisk mode)
Plug the phone into the computer to enable HD mode
Copy the .jad, .jar and .cod to the memory card (or device memory in your case if HD mode works for this) of the phone
Click the Media Icon
Open the menu within media and hit explore (Here I have an option for memory card OR device memory) -- Select the device memory
Finally, find and select the .jad file -- the phone will ask if you want to download--just hit yes, and this will prompt for the install
Again, I realize this is a different (older) phone which you are using, so this method may not work.
Hope it helps!
Greg

Resources