My guess is when you are running your app on a real device you have USB cable plugged in to the device. If this is the case, try to unplug the cable and rerun the app. You may use Dialog.inform() to quickly check what roots you get this time.
Yes sir, your guess is right, as per your advice I unplugged the cable and got the sdcard location. I am now able to create the database in SDCard. Thank you very much.
– sid_sket Nov 11 at 10:23 This worked but now I am not able to debug:(. – sid_sket Nov 11 at 10:32 That's just BlackBerry.. :( Consider creating some logger that writes log entries to a file, which you can later pull down from device to PC for investigation. – Arhimed Nov 11 at 14:55 1 Guys, when downvoting please also state a reason.
This way I can learn smth from the case so I will not repeat the same mistake next time. Otherwise this just a childish/dishonest action. I can always accept my mistakes without any vindictive feedback.
– Arhimed Nov 11 at 17:41.
Private ObjectListField getFileList() { if (fileList == null) { fileList = new ObjectListField(); String roots = new String3; Enumeration enum = FileSystemRegistry.listRoots(); int x = 0; while (enum.hasMoreElements()) { if (x Roots : new String{"system/", "SDCard/", "store/"}); } return fileList; } Try this code.
My question is that I am not getting fileroots i. E I am not getting SDCard/ or Media Card in root as shown in code. When I am running the application in device I figured out only one root ie.
System/ even if sdcard is inserted. (enum.hasMoreElements() loops only once giving root = system/). – sid_sket Nov 10 at 13:18.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.