PDA

View Full Version : Folder creation Depth and Icon Scrolling


raja
03-16-2002, 12:25 AM
1.) Can anyone tell me the depth of the folders (subfolders) that can be created in a samsung phone ( SPH-X2700 )? I tried to create a folder structure like this in the phone root one by one
"myapp/x/y/z". For the 3 levels , i was able to create the folders.
But when i tried to create z subfolder under y it didnt happen.
There was no error , but simply the folder didnt get created.

2.) I am using Icon Controls in my application. When i try to scroll to the next icon , instead of the selection moving from one icon to another, the selection stays in the same position and the icons are scrolling.
When i have only 4 icons in the icon control, the selection moves correctly as in the BREW main (applications) menu. But if there are more than 4 icons, the icons scroll instead of the selection to move from one icon to the next and the selection stays in the centre icon itself.
And this happens both in the emulator and in the phone.

Has anyone faced such a situation and give me a solutions for this.

thanks for reading :)

regards
raja

Craig Evans
03-17-2002, 11:47 PM
Originally posted by raja
1.) Can anyone tell me the depth of the folders (subfolders) that can be created in a samsung phone ( SPH-X2700 )? I tried to create a folder structure like this in the phone root one by one
"myapp/x/y/z". For the 3 levels , i was able to create the folders.
But when i tried to create z subfolder under y it didnt happen.
There was no error , but simply the folder didnt get created.


Can't give you a complete answer, but this might help. The Sharp Z800 phone is limited to 96 files ... total. Not in each directory, but totally. The Kyocera has a 256 total file limit.

This brings up an interesting question that the BREW techs might be able to answer...

On the Z800, is that 96 files, or 96 entries in a table describing the file system, with each directory taking an additional entry in the table.

Is there a document that details the representation of the file system in memory?

CSE

kamal
03-20-2002, 10:20 AM
Different OEMs may impose a file depth limitation for BREW applications. Like on Sharp Z800, file depth is limited to 2. It means that you can not create following directory hierarchy <app dir>/dir1/dir2 but you can create <app dir>/dir1/file1

This might explain why you can not go beyond certain directory depth on samsung phone.

I just tried adding another icon to the control in the IMenuCtl usage example. It is working as expected.

-Kamal
BREW Support

fredch
03-21-2002, 07:06 AM
>But when i tried to create z subfolder under y it didnt happen.
>Has anyone faced such a situation and give me a solutions for this.

I just use the app's folder and create filenames the fake directories:

xyzfile1
xyzfile2
xywfile1

would be the files I create for
x/y/z/file1
x/y/z/file2
x/y/w/file1

raja
03-28-2002, 02:50 AM
Hi Kamal,
The iconcontrol in the iconcontrol example takes the whole screen and so the scrolling is fine if we add more icons .
The issue is , if i am having a iconcontrol whose height is only around 40 pixels , then the scrolling doesnt happen ( means icons scroll instead of the selection). We tried to change in the example code to reduce the height of the control and tried more icons which doesnt work as u said.

please let us know the work around for this .
it would be great if u could reply ASAP :-)

thanks

regards
raja