Discussion Board

Results 1 to 15 of 15
  1. #1
    Registered User longmilk's Avatar
    Join Date
    Jul 2010
    Posts
    8
    I'm a very new in JME, now I have a project which required :" SEND TEXT FROM MOBILE TO PC VIA BLUETOOTH (Usb port)"

    Like this Bluetooth USB: http://www.coolgear.com/images/169745pro.jpg

    I don't know how to implement it. I've searched, but the results are complex than my simple project.
    Can you help me a sample Midlet code of the Client (mobile) and the Server(PC) .Many thanks
    Last edited by longmilk; 2010-07-04 at 05:16.

  2. #2
    Registered User kamalakshan's Avatar
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998
    Agreed that it would be complex for a beginner. But you need to start somewhere with some project. Start with this one and post when you have any queries or unable to understand something.

    But the most important thing is you need to try first.

  3. #3
    Registered User kamalakshan's Avatar
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998
    btw Welcome to Forum Nokia DiBo

  4. #4
    Registered User longmilk's Avatar
    Join Date
    Jul 2010
    Posts
    8
    I've tried the sample program as Nokia provided.
    A Midlet named ChatMidlet.
    I run it successfully in my phone, but the PC program, they provided me Source file known as:

    (This packet provides: http://sw.nokia.com/id/85b9d2ee-83f1...le_v1_0_en.zip)

    PCSoftware/src/chat/BluetoothSettings.java
    PCSoftware/src/chat/ChatApplication.java
    PCSoftware/src/chat/ConnectionProtocol.java
    PCSoftware/src/chat/DiscoveryThread.java
    PCSoftware/src/chat/Log.java
    PCSoftware/src/chat/ServerThread.java
    PCSoftware/src/chat/SwingUI.java

    But I can't compile and run it
    Last edited by longmilk; 2010-07-04 at 08:02.

  5. #5
    Registered User kamalakshan's Avatar
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998
    Well in that case post what error's you are getting while compiling. Someone might help you only after knowing what errors you are encountering. Generally, these examples are known to work properly.

  6. #6
    Registered User longmilk's Avatar
    Join Date
    Jul 2010
    Posts
    8
    Can you tell me how to Compile the PC Server of this packet? I use Netbeans IDE, can I compile ??

  7. #7
    Registered User kamalakshan's Avatar
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998
    I Think the wiki might help you.

  8. #8
    Registered User kamalakshan's Avatar
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998
    Also read the accompanying PDF document in the example.

  9. #9
    Nokia Developer Champion rahulvala's Avatar
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,293
    Hi, longmilk
    Just go through the below two article about chat application , it might help you :

    http://wiki.forum.nokia.com/index.ph...hat_HelloWorld
    http://wiki.forum.nokia.com/index.ph...r_more_devices

    Best regards,
    RaHuL

  10. #10
    Registered User longmilk's Avatar
    Join Date
    Jul 2010
    Posts
    8
    By the way, can you help me how to create An InputText Dialog in my Midlet. Thanks to all of you. Love all you.

  11. #11
    Registered User ektasrv's Avatar
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941
    See the FN Wiki Example for the same at http://wiki.forum.nokia.com/index.ph...put_in_Java_ME
    Thanks,
    Ekta

  12. #12
    Registered User longmilk's Avatar
    Join Date
    Jul 2010
    Posts
    8
    But it is the jar file, how can I use custom jar library in Netbeans?? Plz

    Oh. I've known how to use jar file in Netbeans, but how to use CustomInputApp class???
    Last edited by longmilk; 2010-07-04 at 14:30.

  13. #13
    Registered User ektasrv's Avatar
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941
    Quote Originally Posted by longmilk View Post
    But it is the jar file, how can I use custom jar library in Netbeans?? Plz

    Oh. I've known how to use jar file in Netbeans, but how to use CustomInputApp class???
    The link I gave below, contains the entire source code for Text Input on Canvas, include that in your project and use it.
    Thanks,
    Ekta

  14. #14
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    Quote Originally Posted by longmilk View Post


    Oh. I've known how to use jar file in Netbeans, but how to use CustomInputApp class???
    Hey just put the class inside the src folder of the working directory..and just in the other classes....please take care of the packege too if you have other classes in the pakege.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  15. #15
    Nokia Developer Champion im2amit's Avatar
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    2,903
    As Raj has said, just the put the class(CustomInputCanvas.java) inside the src folder of your project... just like other java classes;
    March the Package name with other .java classes of your project in the same work directory.

    Now when you want to text text input from use, just call this class pass the instance of the calling class to it, in the paintmethods after painting currentString - set it back to some variable of your calling class, for further use.
    thanks,
    ~Amitabh
    (Poster of the Month -Dec'12)
    Follow me on my blog for Innovative Mobile Apps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved