Trying to figure out directory structure bt-200 - Moverio BT-200 General

Hello I am trying to figure out how to write to file using the bt-200. I am using unity and c# to try and write an application for the glasses and I need to create and write to a txt file. I am using the line System.IO.File.WriteAllText (@"file.txt", data); to attempt this. What I cannot find is the proper path to use since I am unfamiliar with the devices directory structure. I have also tried to use path = System.IO.Directory.GetCurrentDirectory(); but this has not worked either and I cannot find the file I have supposedly generated. Any help would be appreciated.

Hi. There is a app on the bt-200 called "sev". Check the directory structure and your file with this app.
If your using windows, you should be aware that not every file is displayed, when you connect your bt-200 with your pc and use explore. Even if your are in the right folder.( That's why you need to recheck with sev)
The folder where you land, when you press explore in windows is "/mnt/sdcard"

Related

copying and pasting in c# (visual studio)

hi,
i have a problem with visualstudio .net framework 1.1
in my application, i define a context menu and a copy and paste menuitems.
in the correspondent function, i access to the Clipboard object
but the system generates a compilation error: The clipboard object is not defined.
the help contains a reference to the Clipboard class, and the examples of the msdn uses them !!
help me, please.
thank's
I have read that you need cpf 2.0 to access the clipboard idataobject. I have not tried it because I have had too many other problems with the compact framework and now only do win32. It seems to me that there is something funny going on with the clipboard and that mcrosoft have been trying to make it look like its implemented properly when in fact it is not. Look at real software like resco file explorer and see that even they could not find a way to access it. You cannot copy from file explorer to resco file explorer. There is also no help from drop files structure that a pc windows program may use to get the data object. If you do get the clipboard to work properly in cpf2.0 I would love to know if the data object can be used to access the information about the location of files or if it is only useful for framework related purposes.
hi,
if i install the cpf2 and i compile my application with them,
the application works in a pocket with cpf1 or not ?
thank's
It would not work unless the ppc had the 2.0 redistibutable. Its free so you clould just include it in your instalation.

Mobile file paths in MS Visual Studio 2005

Hi all,
my father got MS Visual Studio 2005 some time ago and I just discovered that it's capable of creating mobile applications as well so I'm playing with it, trying to do some cool stuff (program for recording my marks at school atm ). The fact is, that I'm not extremely experienced in C# (in which I'm working in the MSVS2005) so I have to look up syntaxes or parts of code in help database every now and then. I have always succeeded so far, but now I have a problem I need someone to help me with.
I just started working with files, everything is fine, I think i quite understand the syntax and stuff, but I can't figure out how file paths under Windows Mobile work. In help file, they say that this should work:
string path = @"c:\temp\MyTest.txt";
but i think this is for desktop Windows only. If I try to use this in my programme, "Catch (Exception Ex)" command returns error saying: System.IO.DirectoryNotFoundException.
I tried various variants of the file path and the only one working was just plain name of file, for example
string path = @"MyTest.txt"
This way, I managed to write into the file and read the input back..but I couldn't find the file anywhere in my phone's memory :S
So if there was someone who would be so kind and told me how to specify file paths under WM correctly, I would really appreciate it. btw if the "someone" gave me his MSN/ICQ too, and was willing to give me real-time help once a time, it would be absolutely perfect
The root of the Windows Mobile filesystem is "\". If you want to place the file in the temp dir of the root, use this:
string path = @"\temp\MyTest.txt";
Øystein

ADT8 proguard integration not working

I tried to export signed apps using eclipse and i have the proguard.cfg file in my base project folder but at the end getting build failed.
Same
Some of my projects "Failed to export application" and no more tips.
Is there any logs or other something I can see?
Need help, thanks
Got the same problem here. Looking on the message groups here and the suggestion is to ensure the proguard folder is not under a folder with spaces in it's name. so if you have the sdk installed into "Program Files" then maybe move it to the root of the c drive instead.
*however* even after I did that, I still couldn't get it to compile with proguard enabled...
Managed to get it to work, and confirmed it is all to do with spaces in folder names. If you change your windows temp folder to something else (the default goes under your user accounts in the "Local Settings\Temp" folder which has a space in it. I also had to move my whole workspace which again was under my user account below the "Documents And Settings" folder.
If you feel adventurous - once you try to export a signed app and it fails, you can find a .pro file which you can invoke manually using the proguard.bat and the parameters of @<location to workspace proguard.cfg fle> and @<location to the .pro file> (obviously don't include the < or the > !)
I can't find any issues raised on the android bug tracker, but I'm sure someone will raise it soon.

[Q]Intent to launch a file manager

I've been banging my head on this, but can't seem to get it to work.
I'm trying to launch a file manager from my app. Here's the code I'm using.. I think (thought) it was correct, but I'm missing something. I want it to pop up a list of available file managers to open to that path.
Code:
Url = "file:///sdcard/";
Intent fileMangerIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(Url));
startActivity(fileMangerIntent);
Thanks.
Edit: I've tried just passing /sdcard as the path, and also with and without the trailing slash. I've tried with an http url and it works as intended.
try using ACTION_CHOOSER, it should display all the activities on the phone that can handle that type of URI. http://developer.android.com/reference/android/content/Intent.html#ACTION_CHOOSER
Thanks.. I'll try that..
Doesn't seem to do what I'm trying to get it to do. If I specify a file and a mimetype (ie. a jpeg), then it works to popup a list of apps to view the file.
And with AndExplorer, I can have it popup as a file chooser or directory chooser.
But what i'm trying to is just launch a file explorer at the given path. Don't need any information back.
What I'm working on is an app that lists all attached usb drives (on HC Tablets) and allows mounting/unmounting any/all devices of ext, fat, ntfs. And I want to be able to click the mount points in my app to switch to a file explorer to browse the files.
But it doesn't seem like any of the file managers handle that. I might have to build in a minimal file manager.
If the file browsers you are trying to incorporate into your app dont support an entry point that takes you straight to a directory then it'll be hard to make this work. I guess the best you can do is look at the published intents and see if there is a way to pass a directory.
From something awesome

[Q] Hide From Gallery

I have created a folder on my external sd card named Movies.
I use Moboplayer, and have pre-set it to only view that folder when opened. But, after viewing any of the files in the sd card folder, the folder and files are displayed in Gallery. How can I prevent that from happening?
Or, put another way, I want to store some video files on my external sd card
and want to be the only one who is able to view them?
create a file in that directory called .nomedia that will prevent it being scanned by Gallery
Thanks, I'll try that later today and report back.
gunnyman said:
create a file in that directory called .nomedia that will prevent it being scanned by Gallery
Click to expand...
Click to collapse
As a beginner with Android, I'm not sure I know how to do what you said to do.
Can you please tell me the easiest way to create that file? Thanks again.
Sure. Open an adb shell. Change to the directory you want the file in. Type "touch .nomedia "
Press enter
Sent from my Desire HD using XDA Premium App
As an Android beginner, I have no idea what or how to use and adb shell.
Does it require that the Tab be Rooted?
Can I use a file manager like Astro?
Can I open the folder on my win xp desktop and create the file om the sd card with windows explorer?
Sorry to be so dense here, but, I am trying to learn what to do.
jostarr said:
As an Android beginner, I have no idea what or how to use and adb shell.
Does it require that the Tab be Rooted?
Can I use a file manager like Astro?
Can I open the folder on my win xp desktop and create the file om the sd card with windows explorer?
Sorry to be so dense here, but, I am trying to learn what to do.
Click to expand...
Click to collapse
Get the free ES File Explorer from the store. You can do all the MS Windows-esque file management with that.
What is going to prevent someone else from launching Mobo and seeing the same files that you do?
I do have ES File Explorer installed, and didn't find a way to create a new file in that folder. Can you please suggest what to do when I get to the folder in question? Thanks.
As for your question about others using Mobo, is there a way to password protect a give app?
jostarr said:
I do have ES File Explorer installed, and didn't find a way to create a new file in that folder. Can you please suggest what to do when I get to the folder in question? Thanks.
As for your question about others using Mobo, is there a way to password protect a give app?
Click to expand...
Click to collapse
Ok, es 101: the key to finding everything is the menu button that spears on the dock in es. From there you can select new> folder.
android/linux 101: any file or folder named starting with a period is deemed "hidden". An example would be a folder called .media. Because the name behind with a period, it is now hidden. To show hidden file, go into es file explorer settings, and check "show hidden files"
...and if you don't want to play with renaming folders every time, try Hide It Pro from the market. You set a password that is required to open the app. It disguise itself as a fake audio manager. You just need to browse to the file you need to hide and select "share with audio manager". There's a really good guide inside the app when you install it but its rather simple Works great on Iconia.
https://market.android.com/details?id=com.smartanuj.hideitpro&feature=search_result
It also displays adds but its free and your hidden content is just a "click" away You can hide any file type compared to Photo Vault and Video Vault (they support only several file formats and they are paid apps)
Use a file manager such as astro, and change the format of the video to a format that doesn't exist by renaming it, for example: video.avi ----> video.uitpo, then the video won't be shown in gallery or anywhere else, and whenever you wanna view the video just change the format back to what it was.
gunnyman said:
create a file in that directory called .nomedia that will prevent it being scanned by Gallery
Click to expand...
Click to collapse
I have created a file in my directory named .nomedia
But, when the Acer is powered off and started up again, all the files in this directory show up in the Gallery again. That approach doesn't seem to work for me.

Categories

Resources