Page 2 of 3 FirstFirst 123 LastLast
Results 21 to 40 of 46

Thread: BlackBerry SMS

  1. #21
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  2. #22
    Blackberrylerner is offline Senior Member
    Join Date
    Jul 2010
    Posts
    101
    Rep Power
    0

    Default

    Good Morning Expert

    No sir i havn't found any tutorials related on the website for BlackBerry Desktop.

  3. #23
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Didn't you check on the samples of BlackBerry JDE? Could be here, C:\Program Files\Research In Motion\BlackBerry JDE 4\samples, depends on your installation path and the version used in.

  4. #24
    Blackberrylerner is offline Senior Member
    Join Date
    Jul 2010
    Posts
    101
    Rep Power
    0

    Default

    Hi Expert

    I found same give path by you.But when i run sample Demo.jad then i am getting only error Demo null exception.Java.long.nullpointer exception.
    What's a problem expert because it's Sample .jad file.
    Please help me

  5. #25
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  6. #26
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    By the way Blackberrylerner, no need to talk to me in honer as you did. :) Be friendly, I'm trying to helping you as much as I can.

  7. #27
    Blackberrylerner is offline Senior Member
    Join Date
    Jul 2010
    Posts
    101
    Rep Power
    0

    Default

    ok

    Now i try to start write some code in BlackBerry JDE.I follow this step.

    How to setup the JDE:

    After installation of the JDE, launch it and then click on:

    1. File -> New
    2. Workspaces – Tab
    3. Name it Lections
    4. Click OK

    Then on the left side in the JDE, you see the Tab Files. Click on:

    1. Lections.jdw (Right click)
    2. Select Create new Project
    3. Name it Lection_1
    4. Copy the two files GreetingScreen.java and HelloWorld.java into the same folder where the Lesson_1.jdp file is (the main project folder)
    5. Click on Add File to Project and select both *.java files
    6. Now both *.java files appear under Lection_1
    7. Click on those in the list to open them up in the JDE
    8. Now you’re ready to go, you have successfully imported the files and can now work with them.
    9. Press F7 to compile the application or press F5 to run the application on the simulator.
    10. The application is compiled to a *.cod file.
    11. The *.alx file (for Desktop Manager installation) needs to be created manually by the user:

    1. Right click on Lection_1 and then on Generate ALX file.
    2. Now the *.alx file is created and the application can be installed via Desktop Manager.
    3. The *.alx file and the *.cod file have to be in the same folder for installation.

    //HelloWorld.java
    import net.rim.device.api.ui.*;

    class HelloWorld extends UiApplication {
    public static void main(String[] args) {
    HelloWorld app = new HelloWorld();
    app.enterEventDispatcher();
    }
    public HelloWorld() {
    pushScreen(new GreetingScreen());
    }
    }
    And

    //GreetingScreen.java
    //import all the needed packages
    import net.rim.device.api.ui.*;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;

    //this is the class for the greeting screen
    class GreetingScreen extends MainScreen {
    //create a button here with the text 'Submit!'
    //ButtonField.CONSUME_CLICK will prevent the Menu from showing up when the user clicks the button.
    ButtonField btnSubmit = new ButtonField("Submit!", ButtonField.CONSUME_CLICK);

    //create an EditField (where you can type in strings)
    EditField ef = new EditField("Enter your name: ","");

    public GreetingScreen() {
    super();
    LabelField title = new LabelField("My App");
    //set the title of the application
    setTitle(title);

    //a normal label in the app, just to display text, anchored left
    LabelField label = new LabelField("This is my first app!", LabelField.FIELD_LEFT);
    //add the label to the screen
    add(label);

    //a separator item; long, thin, horizontal line from the left to the right of the screen
    add(new SeparatorField());

    //add the edit field to the screen
    add(ef);

    //this listener 'listens' for any event (see at the bottom)
    FieldListener listener = new FieldListener();
    //assign that listener to the button
    btnSubmit.setChangeListener(listener);
    add(btnSubmit);
    }

    //...when this screen closes, onClose() will be run
    public boolean onClose() {
    //if the entered text in the EditField is not empty, show the message
    if(!ef.getText().equals("")){
    Dialog.alert("Cheers, "+ef.getText()+"!");
    }
    //force the app to quit
    System.exit(0);
    return true;
    }

    //the field listener waiting for an event in the UI (like a button pressed)
    class FieldListener implements FieldChangeListener {
    public void fieldChanged(Field f, int context){
    //if the submit button is clicked
    if (f == btnSubmit){
    //if the EditField is empty
    if(ef.getText().equals("")){
    Dialog.alert("Please enter your name in the field.");
    }else{ // if it is not empty, display the message
    Dialog.alert("Hello, I am "+ef.getText()+"!");
    }
    }
    if(f == ef) {
    //text changed in the ef-Field (EditField)
    }
    }
    }
    }
    compile successfully.When i run then only getting blackberry screen.
    I use example from this link.
    How to write your first BlackBerry application – Lesson 1: UI fields | BlackBerry Cool
    Where i am wrong.

  8. #28
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  9. #29
    Blackberrylerner is offline Senior Member
    Join Date
    Jul 2010
    Posts
    101
    Rep Power
    0

    Default

    when i try to debug then i am getting
    Attempting to connect to VM Please cancel to exit
    If you don't mind then can you give small example?

  10. #30
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Sorry I don't have an example to send to you.

    Try to add some break points in the middle of your code and try again. Seems that you've a connection timeout and ask you to exit.

  11. #31
    Blackberrylerner is offline Senior Member
    Join Date
    Jul 2010
    Posts
    101
    Rep Power
    0

    Default

    Cursor haven't goes in program.

  12. #32
    Blackberrylerner is offline Senior Member
    Join Date
    Jul 2010
    Posts
    101
    Rep Power
    0

    Default

    one more thing when i try to connect handset through this step
    Debug->Attach to->Handheld->USB
    Then show two error
    No debug information found or module 'net_rim_cldc'.Many debugging features will not working properly.

    No debug information found for module 'net_rim_os'.Many debugging features will not working properly.

  13. #33
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    I'm sure about that actually, because each version has different pros and cons. Have to bit look around.

  14. #34
    Blackberrylerner is offline Senior Member
    Join Date
    Jul 2010
    Posts
    101
    Rep Power
    0

    Default

    Quote Originally Posted by Eranga View Post
    I'm sure about that actually, because each version has different pros and cons. Have to bit look around.
    I know different version has different properties.But what i check here.Because i use sample nothing more.

  15. #35
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Samples are not drastically change with the version in most of the cases. Anyway, looking at error you didn't think that some of the debugging modules are not available in your version.

    And also as far as I remember in the sample folder you can find the Java source files as well, may be sample.java. Try to execute it.

    As I said earlier, didn't you found the workspace of that inbuilt sample?

  16. #36
    Blackberrylerner is offline Senior Member
    Join Date
    Jul 2010
    Posts
    101
    Rep Power
    0

    Default

    ok i try to do..

  17. #37
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  18. #38
    Blackberrylerner is offline Senior Member
    Join Date
    Jul 2010
    Posts
    101
    Rep Power
    0

    Default

    Quote Originally Posted by Eranga View Post
    I'll try out your code later, now I don't have required setup with me.
    ok i am also trying to do.

  19. #39
    Blackberrylerner is offline Senior Member
    Join Date
    Jul 2010
    Posts
    101
    Rep Power
    0

    Default

    Hi Good morning

  20. #40
    Blackberrylerner is offline Senior Member
    Join Date
    Jul 2010
    Posts
    101
    Rep Power
    0

    Default

    Hi good morning

    I havn't found any good reason why i am getting error.

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Play audio in the BlackBerry Browser
    By javierrebelde in forum Advanced Java
    Replies: 0
    Last Post: 04-30-2010, 07:51 PM
  2. Replies: 0
    Last Post: 02-01-2010, 08:39 AM
  3. Blackberry JDE javadoc issue
    By badnaam in forum Eclipse
    Replies: 0
    Last Post: 06-25-2008, 08:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •