Moto Hell - The Motorola Modding Community

Motorola Phone Models => Software (Phone) => Topic started by: Taurnil on February 08, 2008, 01:51:00 pm



Title: [BIN+SOURCE] ShowFileBrowse control
Post by: Taurnil on February 08, 2008, 01:51:00 pm
Hey Guys, some weeks ago (before I lost my first rokr  :'() I got a show** binary wich allow us to show a file browser (based on radiobuttons) with ease, I'll attach the binary file and the source code.

Big thanks to D1AB011C (Shen Jing) from it168 for making this useful application.

It's kinda tricky to use but very flexible:
As first parameter, input:
0x00 for listing documents
0x10 for listing folders
0x40 to show hidden files

you make a sum with the options you want to use, and pass it to the binary. It gives you back the path of the file / folder selected ;)

ShowFileBrowse
Shows all the documents and folders starting from root folder, even the hidden files

ShowFileBrowse / 80
Shows all the documents and folders starting from root folder, even the hidden files

ShowFileBrowse . 16
Shows all the documents and folders on the current directory, only visible files

Well, those were the examples I got on it168; I'll make some tests later and post my examples.  Anyone else can do it...


Title: Re: [BIN+SOURCE] ShowFileBrowse control
Post by: keaglez on February 08, 2008, 03:28:16 pm
Nice... ++ ;D


Title: Re: [BIN+SOURCE] ShowFileBrowse control
Post by: pizzadox619 on February 09, 2008, 04:32:33 am
very useful binary..

Many application will use it :D


Title: Re: [BIN+SOURCE] ShowFileBrowse control
Post by: DDSH on February 09, 2008, 05:18:16 am
Archive is corrupted for me.


Title: Re: [BIN+SOURCE] ShowFileBrowse control
Post by: lklandaverde on February 09, 2008, 05:28:30 am
Archive is corrupted for me.
yea, me too


Title: Re: [BIN+SOURCE] ShowFileBrowse control
Post by: keaglez on February 09, 2008, 06:12:32 am
Archive is ok in mine...but it raise segmentation fault when i run it... :'(

@Taurnil, is it work in your phone?


Title: Re: [BIN+SOURCE] ShowFileBrowse control
Post by: arctu on February 09, 2008, 06:54:05 am
It works for me. (: Try redownloading?

Or rather, run with the correct arguments. Especially because the first argument requires it to be a Hex.


Title: Re: [BIN+SOURCE] ShowFileBrowse control
Post by: keaglez on February 09, 2008, 08:08:55 am
It works for me. (: Try redownloading?
Tried but no luck... :(
Quote
Or rather, run with the correct arguments. Especially because the first argument requires it to be a Hex.
??? Well, as described above i tried without argument (it will show every file, wont it?), but seg. fault... Then using example above, but still seg. fault... Hu uh... :'(


Title: Re: [BIN+SOURCE] ShowFileBrowse control
Post by: Taurnil on February 09, 2008, 08:46:04 am
hi
I downloaded the file and tested the binary... it works pretty well for me.  The first argument is the folder we wanna explore, the second argument is the hex number


Title: Re: [BIN+SOURCE] ShowFileBrowse control
Post by: arctu on February 09, 2008, 09:13:41 am
Am I and Taurnil the only "allowed" to use this binary? (LOL)

anw, I think I will improvise his source for optimizations.. (;


Title: Re: [BIN+SOURCE] ShowFileBrowse control
Post by: Taurnil on February 09, 2008, 09:27:13 am
optimize it? that would be great, arctu. The window title should be a third parameter ;)...
I don't like the radiobuttons, would be better to have icons, but I know it's complicated... Nevertheless, thanks for your efforts


Title: Re: [BIN+SOURCE] ShowFileBrowse control
Post by: keaglez on February 09, 2008, 11:31:29 am
Uh... :( I will wait for yours arctu... :)


Title: Re: [BIN+SOURCE] ShowFileBrowse control
Post by: fanofcc on August 30, 2008, 05:37:09 pm
please tell me how to used it in programming(argument...)


Title: Re: [BIN+SOURCE] ShowFileBrowse control
Post by: BlinK_ on August 31, 2008, 02:04:56 am
You can always use this--> https://motohell.com/index.php?topic=2704.0 Documentation is much simpler.


Title: Re: [BIN+SOURCE] ShowFileBrowse control
Post by: jhona72 on August 31, 2008, 07:00:13 am
thanks, the source of this aplication it's very usefull, i used to port to the z6...