SDCard of BB JDE 4.2.1 Simulator.
Quote from previous forums:
|
|
|
|||||
Hello guys have a good day. Little do I need your advice. I want to know how to write the file on card SD JDE on local hard drive. I think that it is possible to do. But I do not know how? Please help me guys. Have a beautiful day again"
|
|
|
See the knowledge base article developers below for the steps to set up a micro SD card in the BlackBerry Simulator.
Use a computer filesystem in the form of microSD card
DB-00654
http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800738/800792/801083/...
This feature was added in version 4.2.2 of the BlackBerry Simulator. So unfortunately it is not supported in version 4.2.1.
Tags: BlackBerry Developers
Similar Questions
-
Problem with writing records on SD Simulator
Hello
I am trying to write a file to the SD card in Simulator, with javax.microedition.io.file. *.
But it does not work.
It's my code. I chose "C:/Program Files/Research In Motion/BlackBerry JDE 5.0.0/simulator/BlackBerry" to be my location of SD card and tried to create a file named "test_log.txt".
Javax.microedition.io.file import. *;
Import javax.microedition.io.file.FileConnection;
Import javax.microedition.io.Connector;FileConnection fconn = null;
DataOutputStream UO = null;
try {}
fconn = (FileConnection) Connector.open ("file:///C:/Program Files/Research In Motion/BlackBerry JDE 5.0.0/simulator/BlackBerry/test_log.txt",Connector.READ_WRITE);
{if(!fconn.) Exists())}
fconn. Create();
} else {}
fconn. Delete();
fconn. Create();
}UO = fconn.openDataOutputStream ();
ByteArrayOutputStream Bos = new ByteArrayOutputStream();
DataOutputStream back = new DataOutputStream (bos);
dos.writeUTF ("Start log");
Temp = Bos.toByteArray ();back. Close();
Bos.Close ();
OU. Write(temp,0,Temp.Length);OU. Flush();
OU. Close();
fconn. Close();
}
catch (Exception e) {}
e.printStackTrace ();
}Hi babyblue_lee
Your problem is this line:
fconn = (FileConnection) Connector.open ("file:///C:/Program Files/Research In Motion/BlackBerry JDE 5.0.0/simulator/BlackBerry/test_log.txt",Connector.READ_WRITE);
You can not choose a windows directory, if you want to write to the SD card, you must code something like this:
String URL = "file:///SDCard/BlackBerry/documents/"; This is the path to the SD card.
String filename = "myfile.txt";
String fName = URL + file name;
fconn = (FileConnection) Connector.open (fName, Connector.READ_WRITE);
-
Hi, when I click on 'Build' in JDE, I get the following error: java.io.FileNotFoundException: C:\Program Files (x 86) \Research In Motion\BlackBerry JDE 6.0.0\simulator\__ide_copyfile__.tmp (access denied) build complete. Accordingly, any changes made to the codification (of my application) is not charged on the Simulator. The Build in use is working properly and now the above error suddenly. How can I fix it? The version of the simulator that I it running is 6.0.0.246 (9800) thank you very much
This looks like a problem of permission to the Windows directory. Make sure that the account you are using is able to write to the location specified in the error message.
-
What is this error from the device Simulator?
weird! can someone help me. I am not able to use my Simulator to test my application. At start-up, Simulator gives following error.
Error inside JVM:
0x00000008 read access violation
I use JDE 4.3 and Simulator 8120
Kind regards
-nitin
Follow these steps:
1 out of the JDE
2. run clean.bat located in the directory of Simulator and wait until it has finished
3. run JDE
It should help. If this isn't the case - reinstall JDE and make sure you have the full privileges on the computer.
-
How to change the phone number of Simulator
Hi Experts,
Please help me on how to change the phone number of blackberry Simulator.
Thanking you in advance,
In JDE:
Edit-> preferences-> Simulator-> network-> phone number
-
debugging on the actual device different subversions jde - firmware
I want to debug my code on a device connected via usb. I know that I need the same type in JDE and the device.
For example, JDE 4.5-> device must have firmware 4.5.
Although I checked the debugger tells me it can't find net_rim_app_manager.debug and many others. When I browse with browse for the files of simulator of the JDE debug files it is not like that and told me
Bad debug information:
\simulator\net_rim_app_manager.debug(4846a5e2)-net_rim_app_manager(494996a0) My regognizes JDE-attachment-device usb. When I ignore the mistakes I see some, but not all of the messages in the debug window. If the connection is ok.
My firmware installed JDE Simulator Version DO match the firmwareversion of the unit BUT not the firmware-sub-version number. I mean the numbers after the second point (4.5.XXXX) is the reason for the error message?
If Yes,
-How and where can I get the EXACT match firmware-subversion for my device?
-How can I do a real device debugging with the latest firmware?
If none, I miss something else?
my JDE:4.5.0
my camera - 4.5.0.Simulator - JDE: 8310
my JDE - 4.5.0.Simulator - Firmware: 4.5.0.44
my real device: 8310
my real device Firmware: 4.5.0.124
Thanks for help
Anil
OK, after some research and debugging, I found the solution in this post
a little summary here (including the above mentioned display comments). In this example, we assume that you are using JDE 4.5.0.
- Check that you have installed the latest BlackBerry-Desktop-Manager. So you can be sure, that your device connected by usb is detected
- Versions have to mach exactly! When you have the 4.5.0.102 firmware on your JDE-Simulator, you MUST have firmware on your real device 4.5.0.102. RIM provides many different simulators with a different firmware for debugging http://www.blackberry.com/developers/downloads/simulators
- Install the corresponding correct Simulator and follow the Instructions of BB JDE 4.5.0 Guide Chapter development
"Install the .debug computer files". - Connect your real device via USB
- Compile your code in RIM JDE
- If you use sensitive APIs-> sign your code
- Load the cod files compiled on your actual device with JavaLoader.exe
- Debugging-> attached to him-> Pocket-> USB (
) - No, you can debug, breakpoints, out of the console, etc...
Note: Although I have installed now the exact match versions. The debugger tells some files that it "does not find" them which is:
net_rim_theme_120_green_320x240_b.debugnet_rim_theme_120_green_320x240_b-(1-13).debug net_rim_theme_120_today_320x240_b.debug net_rim_theme_120_today_320x240_b-(1-13).debug net_rim_bb_smime.debug
I think that these debug files are relatively large for most applications, so you can ignore it.
A good indicator to see that there is really a version mismatch is the first file, it cannot find "net_rim_app_manager.debug".
Anil cordially
-
Delete the folder of files frm Simulator downloads.
I'm through debugging of an application using JDE 4.7 and want more see in the Simulator downloads folder. How can I remove it?
I deleted the file .cod from the directory of projects.
I know that this is probably a stupid question, but I am a beginner and I don't want to create more problems by touching things I do not understand yet.
Thank you.
1. go to the directory of Simulator. (C:\Program search in Motion\BlackBerry JDE 4.7.0\simulator)
2 delete the xyz.cod, xyz.jar, xyz.csl, xyz.cso, xyz.debug (xyz your name of the application)
3 remove the *.dmp file.
Concerning
Bika
-
JDE project resources files icon loses the png files
Hello. The strangest thing - I was change the icon files (I have many) for my application and when I try to add files to png icons in the tab "resources" of the properties of the project, I add a png file and click OK, then go back and he's not here. In addition, the files that are there are not accessible from my code-it of its replacement by other files.
I think that there is a problem with JDE. I tried to remove all the and time to them, but a couple of files that I have recently edited, not added with the rest! There are 31 png files.
JDE 4.6 with Simulator "BOLD" and even on real 9000 "BOLD".
What is happening and how do you get around this?
J
Found the problem. If you delete a png file a project then re add the file, you must check the use as the application icon. Oddity...
J
-
Hello
I have configured my Blackberry (JDE 4.5) ESS Simulator to Outlook Express. And iam trying to delete an email, I can able to remove a mail of simulator of blackberry using code below. But always deleted mail is on display in outlook express. So, how do I remove outlook e-mail as well.
Advanced thank you for your help.
Message orginalMessage = e.getMessage(); Folder messageFolder = orginalMessage.getFolder(); String subject = orginalMessage.getSubject(); System.out.println("New Message Subject :: "+subject); System.out.println(subject.indexOf("Hi")); if (messageFolder.getType() == Folder.INBOX) { System.out.println("Message has arrived into INBOX"); } if (subject.indexOf("Hi")!=-1) { System.out.println("---This new message having Hi, so it will be delete from Inbox---"); messageFolder.deleteMessage(orginalMessage); }
(SEA) mail server Simulator support email address reconciilation, so you won't see messages deleted in Outlook. To test this, you will need to use a BlackBerry Enterprise Server or BlackBerry Internet Service account. The following link explains how to connect a BlackBerry to BlackBerry Enterprise Server Simulator.
To-connect the device with BlackBerry Enterprise Server BlackBerry Simulator
Article number: DB-00049 -
Hello
I use JDE 4.6.0 and 9000 Simulator. I was working on a project. Everything worked fine until I tried to add a mp3 file in the project. Then after I received an error message when you run the application "myapp.debug" not found After that JDE was running my old code and what changes in the project, I made are not visible... Looks like JDE previous version stored somewhere and running my application's system app which runs on housing starts.
Thank you
Krishn2
Hello
It happens sometimes... U just run the utility clean.bat Simulator folder where you installed your JDE, as...
C:\Program search in Motion\BlackBerry JDE 4.6.1\simulator-->clean.bat
It will display a cmd screen and will runupto shortly. After that u just re - build your code and run it again...
-
Cannot remove the old project of Simulator.
I used to have a project and removed it form my work space. But every time when I started the debugger, this project still there. And the Simulator still looking for this Project. When you start the debug, I myself runtimeexception, which indicates "WaitForObjectToBeRegistered". But this should not be here. And the method of appeal, I trouve.main-> a.registerApp always there.
I made blackberry JDE file-> delete files Simulator and clean.bat Simulator. It did not help.
How can I remove it?
Thank you.
LAN
Delete directory Simulator *.dmp file and also check that the project of a CODE and/or DEBUG files are not present in the directory of Simulator.
-
Hi guys.
I downloaded and installed JDE5.0 yesterday. Then I compiled package samples and he ran. Samples of applications Packager has worked well.
After that, I created my project in the workspace of the samples. Then I get Error Message "Untrapped Exception Detected" when I compile and run on the Simulator.
You have the same problem like mine?
How to fix?
Thanks in advance.
Yep,
When this prob occurred first, I uninstall (removed BlackBerry JDE 5.0.0) and reinstall.
Then I compiled the app. Compile the second time, occurred the prob again.
In fact, I reinstall several times (4-5).
It seems that it is very complicated for me.
Then I have another way to correct. It's research in Motion\BlackBerry JDE 5.0.0\simulator\clean.bat
(Also turned off antivirus)
After that I started several times (3-4), "Uncaugth exception" didn't happen again.
Hope this helps to another that has the same prob like me.
-Raiden'
-
Simulator displays the VM:GMT message at the bottom of the screen
Hello
My Simulator shows a small box at the bottom of the screen with the time GTM.
for example (VM: + GMT = 29321, s = 0, c = 31094, I01704, f = 563)
I am not able to disable this message.
Please notify.
Hi, I solved the problem.
I used the clean.bat file located in the directory blackberry\simulator on my PC.
C:\Program search in Motion\BlackBerry JDE 4.5.0\simulator\clean.bat
TKS.
-
I'm pretty new to this. Try to get the amount of memory available with the following code, but the result is 0. Any ideas? JDE 4.5,8300 Simulator 4.2
/* * MemMark.java */ // imports import net.rim.device.api.ui.*; import net.rim.device.api.ui.component.*; import net.rim.device.api.ui.container.*; import net.rim.device.api.system.*; import net.rim.device.api.system.MemoryStats.*; //extend the UiApplication public class MemMark extends UiApplication { public static void main(String[] args) { //instance the app & start event thread MemMark myApp = new MemMark(); myApp.enterEventDispatcher(); } public MemMark() { //show the launch screen pushScreen(new LaunchScreen()); } } //Create the launch screen, extend MainScreen final class LaunchScreen extends MainScreen { public LaunchScreen() { //invoke the MainScreen constructor super(); //get the current free memory MemoryStats ms = new MemoryStats(); int m = ms.getFree(); //add the title LabelField title = new LabelField("MemMark", LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH); setTitle(title); //add text to the screen add(new RichTextField("Available memory:")); add(new RichTextField(String.valueOf(m))); } //override onClose() with exiting msg public boolean onClose() { Dialog.alert("Exiting..."); System.exit(0); return true; } }
The class of memory provides MemoryStats objects that contain the information you are looking for: http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/system/Memory.html
Tim
-
Hello
JDE - BB JDE 6.0
Simulator - BB Torch
Device - BB Torch
I have a SpinBoxFieldManager (SBFM) with two TextSpinBoxField (TSBF).
I added the SBFM in a VerticalFieldManager (value for money).
Normally, this works very well.
But I had to override the TouchEvent() method for the optimization of resources. (to detect movement sweeping and pop from the screen)
When I override the TouchEvent() method in the optimization of resources, fields of box two spin (TSBF) does not detect the gesture of blow and never spins.
What I'm doing wrong here? Need help...
Hello.. I realized my mistake...
instead of return false... I need to return the value after letting the super to manage the key event.
return super.touchEvent(message);
This solves the problem.
Maybe you are looking for
-
Why my laptop does not see my cable modem?
I am trying to fax to e-mail, but my computer can't see my cable modem
-
and it is followed by 'store_list' is null or not an object. This happens randomly and takes the number of clicks to get rid of. Any ideas for a fix? Thank you.
-
How to add another Simulator to Eclipse
I have bundle eclipse installed with 9800 torch Simulator. now, I want to add another Simulator. I downloaded and installed the Simulator also 9780 with os 6, but I can't choose my menu of eclipse Simulator. How can I let it slip away now where to lo
-
Compile the application successfully but no. Ui component on the screen
I would like to take this opportunity to thank the community for all the post and responses during the year, you guys are too... I have a sample application that I work on and I have a few questions, my application does not display the bitmap to the
-
Integration html Diary/booking/database in Muse
I can't believe I'm actually going to make this post, but there's good advice now.I have a client who has a café-restaurant, they asked me to build them a Web site (perfect for Muse, actually a café-restaurant has been used in tutorials for Muse). TH