j2me application to send file via bluetooth - Page 2


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 31

Thread: j2me application to send file via bluetooth

  1. #16
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Quote Originally Posted by mait
    tell me how can i build a application which can send messages to a mobile phone from a pc via bluetooth or viceversa....
    Build it using what?

  2. #17
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Here is something you might be interested in reading.

  3. #18
    Join Date
    Apr 2008
    Posts
    6
    [QUOTE=sayfrndship]
    Quote Originally Posted by dogman
    Hi!
    My quote is toward dogman:
    well Mr. can u tell me have u created this application
    "I would like to create an application in J2ME which allows to transfer files between two mobile terminals via bluetooth...."
    if so plz tell me as soon as possible as i m going to build my final project, and i need this thing as a part of my software application that i may add this option: send via bluetooth

    Any one other can suggest me about add option(send via bluetooth) in my application..............
    hi
    you can use obex to send a file with j2me
    search "Obex j2me file transfer" to find very more code about it

  4. #19
    Join Date
    Feb 2009
    Location
    Bangalore
    Posts
    1
    [QUOTE=forumname;475378]Hi!!
    my quote is to furumname
    i ve to develop a application..in my project to transfer data from mobile to pc and back forth.
    I ve no idea how to start...can u provide me with d code so tht i can strt with it.
    Thank you!!

  5. #20
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Welcome to DevX

    Who is this forumname that you refer to?

    What language will you be using for this app?

  6. #21
    Join Date
    Mar 2009
    Posts
    2

    please help meeeeeeeee

    please my final project is to create an application in J2ME which allows to transfer text file between PC and mobile via bluetooth..
    please help me if there any one can help me

  7. #22
    Join Date
    Mar 2009
    Posts
    1

    transfering messages via bluetooth using j2me

    Hello,

    I am a newbie for java. My project is to transfer messages
    between a laptop and mobiles (back and forth) via bluetooth
    rather than using SMS service.
    Now I am using Jcreator and Java Wireless Toolkit2.5.2 and
    trying on a simple Hello World application. It has been
    successfully worked by the following code:

    [Code]
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;

    public class First extends MIDlet {
    private boolean paused;
    private Display myDisplay;
    private HelloCanvas myCanvas;

    public First() {
    paused = false;
    }
    public void startApp() throws MIDletStateChangeException {

    if (paused) {
    myCanvas.repaint();
    }
    else {
    myDisplay = Display.getDisplay(this);
    myCanvas = new HelloCanvas();
    myDisplay.setCurrent(myCanvas);
    }
    }

    public void pauseApp(){
    paused = true;
    notifyPaused();
    }
    public void destroyApp(boolean unconditional){
    notifyDestroyed();
    }

    class HelloCanvas extends Canvas {

    public void paint(Graphics g){
    int ctr;
    int y_loc = 0;

    g.setColor(0x0FFFFFF);
    g.fillRect(0,0,getWidth(), getHeight());
    g.setColor(0);
    if (paused){
    paused = false;

    g.drawString("Welcome Back",0,0,Graphics.TOP | Graphics.LEFT);
    }
    else {
    for (ctr = 1; ctr<=6; ctr++){
    g.drawString("Hello World",0,y_loc,Graphics.TOP | Graphics.LEFT);
    y_loc+=25;

    }
    }
    }

    }
    }
    [\Code]

    Could you please give me some example code so that I can
    do the project further?

    Any help would be highly appreciated.

    Regards

  8. #23
    Join Date
    Sep 2009
    Posts
    1

    Post Transfer file from mobile to pc or vice versa

    Hi. I want to transfer data from mobile (phone,sim,memory card)memory to pc.what is the procedure and code of that.plz any body can help me

  9. #24
    Join Date
    Jan 2010
    Posts
    1
    hello,
    i am new to this side please provide code for j2me application to send file via bluetooth
    its very urgent
    my emil id is Removed By Mod

    thanks
    swarna
    Last edited by Hack; 01-28-2010 at 08:24 AM. Reason: Removed EMail Address

  10. #25
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    @gswarnal: I have edited your post and removed your email address.

    You should never post your email address in an open post on an open forum. Mail spam bots can pick that up and before you know it, your mailbox is full of junk mail. If you wish to share your email address with other forum members, please do so via our PM system.

    But even more importantly than that, we prefer all answers to questions be publically posted rather than sent via EMail or PM. That way, everyone with a similar problem can benefit.

    Thanks.

  11. #26
    Join Date
    Mar 2010
    Posts
    1
    please my final project is to create an application in J2ME which allows to transfer song from mobile to (link matik connected to pic18) via bluetooth..
    how i can do this ????????

    please help me
    my project is radio transmitter by mobile...

  12. #27
    Join Date
    Apr 2010
    Posts
    1
    Quote Originally Posted by mait View Post
    hello everyone...
    i just read all this conversation and i too is interested in doin a similar project as my final tear project...
    i wanted to know if any 1 of u cn tell me how can i build a application which can send messages to a mobile phone from a pc via bluetooth or viceversa....
    i want 2 know from the beginning....
    thanx....
    Well is this possible, how do you display the msg on your computer?

  13. #28
    Join Date
    May 2010
    Posts
    1
    Hi guys,

    sorry for bringing back this topic to the top but i have similar problems like most of the other users here.
    I'm trying to write an application for sending a file via bluetooth from my mobilde device (handy) to my pc. With several tutorials I was able to reach the following:
    discover nearby devices
    get supported services from a selected device
    start a connection to a service of a device

    If I am using btspp://[...] I am able to send a data string to the server (my pc) with help of OutputStream.write
    To get the answer of the pc I use InputStream.read but if I display the answer there are only zeroes within the buffer where the answer should be stored. My pc didn't even notice that there was data sent to him.

    The other way I used btgoep://[...] for sending my file but here I have no idea how to create the sending part after connecting.

    I hope anybody has an idea how to reach my goal.

  14. #29
    Join Date
    Jul 2010
    Posts
    1
    hello everybody and dogman
    i have same project as dogman have.
    i want source code about this project.can anyone help me?
    PROJECT--->I would like to create an application in J2ME which allows to transfer files between two mobile terminals via bluetooth.i am using netbeans 6.9

  15. #30
    Join Date
    Apr 2011
    Posts
    1

    Send files using OBEX Bluetooth Java

    I found an excelent Example of how connect PC and J2ME Mobile phone in this blog.

    http://mobile-programming-and-games....hone-over.html

    and include code source for testing!...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center