Need a help in j2me-send file to a bluetooth address(mobile to mobile)

Dear All;
I am new in J2ME programing...
I have an application, in which i want to send a copy of my application (application.jar) to other bluetooth enabled mobiles.
I have code for searching and listing other bluetooth mobiles.
i want to send file to this bluetooth address..i have the address..
Please help me if anybody can..
It is so urgent..

Siyampa, don't multipost. I've deleted your other threads.

Similar Messages

  • I need a help in reading video file of 80MB into ...

    Hello,
    I need a help in reading video file of 80MB into a vector storing ByteArrays in it.Please help me soon.
    Thank You

    Hello,
    I was able to solve my problem by thinking & my code goes as follows.I am trying to read a video file in my program.
    public Vector getFileMediaContent(RandomAccessFile fileObj){
         Runtime runtime = Runtime.getRuntime();
    System.out.println ("Free memory : inside Boolean Type Panel" + runtime.freeMemory() );
    dataContent.removeAllElements();
    System.out.println("dataContent :"+dataContent.size());
    try{
    int size=(int)fileObj.length();
    if(size<2000000){
    byte[] data = new byte[size];
    fileObj.read(data);
    dataContent.addElement(data);
    data=null;
    System.gc();
    else{
    int fixedsize=2000000;
    int startindex=0;
    int read=0;
    int remaining=0;
    while(read!=-1){
    byte[] data=new byte[fixedsize];
    read=fileObj.read(data,0,data.length);
    dataContent.addElement(data);
    startindex=startindex+data.length;
    remaining=size-startindex;
    fileObj.seek(startindex);
    data=null;
    System.gc();
    if(remaining>0 && remaining<2000000){
    byte[] data1=new byte[remaining];
    read=fileObj.read(data1,0,data1.length);
    dataContent.addElement(data1);
    data1=null;
    System.gc();
    System.out.println("outside while");
    System.out.println("dataContent 1 :"+dataContent.size());
    System.out.println ("Free memory : inside Boolean Type Panel" + runtime.freeMemory() );
    fileObj = null;
    System.gc();
    }catch(Exception e){
    e.printStackTrace();
    return dataContent;
    Now I am not facing the problem of IndexOut of Bounds Exception But I am getting Out of Memory Error.
    Can You suggest me to come out of this,.
    As I know I have two solutions.
    1.Make the objects Null which is using more space & call System.gc();
    2.Increase the Virtual Memory of my System.
    Any solutions other than this?
    And How to Increase the Virtual Memory?Please do reply.
    ThankYou

  • Need urgent  help on J2ME Bluetooth.

    Hi all,
    I really need help about run example code of j2me bluetooth.
    I'm doing a MSc project about bluetooth for delivery system, I just want to use bluetooth to send an object to PDA.
    I,ve tried example on "Bluetooth for Java" with Atinav library but, it couldn't work.
    Do you have an example code that can run on NetBeans 5.0 with
    - AvetanaBluetooth Library (purchased)
    or
    - normal Bluetooth.java library
    I need some examples for develop on it. and also please advice me on how to run and test the programs. I really need urgent help Please help me. my email is [email protected] or [email protected]

    Hi Hari,
    I think that the logic needs to be build up in the DISP part of the Search help exit.
    What you can do is also get the Plant in the search help as an export parameter.
    Then in the Return Tab you can check if the plant = 'AA', delete the data.
    e.g.
          LOOP AT record_tab.
            IF RECORD_TAB-STRING+22(2) = '90'.
              DELETE record_tab INDEX sy-tabix.
            ENDIF.
          ENDLOOP.
    Hope this helps.
    Regards,
    Himanshu
    Message was edited by:
            Himanshu Aggarwal

  • Need urgent help with creating .war file ...

    My boss gave me one day to create an app. that runs on Apache Tomcat 4.0.6. I managed to get it done, but now I'm trying to move it from my machine to the web server. Each time I try to create a .war file I get an error saying "no such file or directory". Am I missing a step here??
    What I do is: go to the webapps/<appname> directory where the app. is located, type in jar cvf * path/to/application/appname.war.
    I then get the "no such file..." message, then a message that says "added manifest" then lines on the screen that say adding: blah blah file. It goes through all the files in my app directory but I get no resulting .war file.
    I'm so frustrated and confused at this point, any help would be greatly appreciated.

    >
    What I do is: go to the webapps/<appname> directory
    where the app. is located, type in jar cvf *
    path/to/application/appname.war. No need to create an intermediate zip file, or to use JDeveloper to create a simple war file.
    You just need to put the WAR name before the list of files.
    jar cvf appName.war *

  • I need a help to generate new file

    Hi Guys
    I need your help. I have two text box in my form, the first one takes the file name to read, and then when user type in another file name in the second textbox, result should be saved as a typed file name in the same path.
    What I really want to do is, when the file is exist already (for instance, I'll name it as result.txt), my program scan through the result.txt file and append the new data at the end of the file. But result.txt file doesn't exist, it has to generate new file and save the data into the new one. I think I need to implement these in the OpenFile1() function, but I dont' know how.
    Does anybody have idea to solve this?
    private void saveFile() {
    textArea.append("SAVE FILE\n---------\n");
    if (openFile1())
         try {
              outputToFile();
    catch (IOException ioException) {
              JOptionPane.showMessageDialog(this,"Error Writing to File",
                   "Error",JOptionPane.ERROR_MESSAGE);
    private boolean openFile1 ()
         // Display file dialog box
    title=textfield1.getext();
    path=fileName_in.getPath();
         File file_out = new File(path, title);
    if (fileName_out == null || fileName_out.getName().equals("")) {
         JOptionPane.showMessageDialog(this,"Invalid File name",
                   "Invalid File nmae",JOptionPane.ERROR_MESSAGE);
         return(false);
         else {
    try
    boolean created = file_out.createNewFile();
    if(true)
    fileOutput = new PrintWriter(new FileWriter(fileName_out));
    return(true);
    else
    catch (IOException exc) {
    System.err.println("# Error: " );
    private void outputToFile() throws IOException
    // Initial output
         textArea.append("File name = " + fileName_out + "\n");
         //process();
         // Test if data exists
         if (data != null)
         Date now = new Date();
    DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT);
    String s = df.format(now);
    //long nowlong=now.getTime();
    fileOutput.println(s);
    fileOutput.print(fileName_in.getName() +" of slope value:" + slope);
    textArea.append("File output complete\n\n");
         else
    textArea.append("No data\n\n");
         // End by closing file
         fileOutput.close();
    Thank you so much!

    There's a lot of unnecessary code there, and anyway it isn't formatted in a readable way so I am not going to look too closely at it. But if you want to append to the file if it already exists and create the file if it doesn't, then all you need is this: fileOutput = new PrintWriter(new FileWriter(fileName_out, true));Note the "true" parameter there which (if you look in the API documentation) says that new data will be appended at the end of the file.

  • Using Flyer to send files over a Bluetooth connection

    import mx.utils.Delegate;
    import com.flyer.Bluetooth;
    var connection_str:String = “127.0.0.1″;
    var port_num:Number = 9100;
    var connection_bt:Bluetooth = new Bluetooth();
    var filePath_str:String = “E:\\photo_001.png”;
    function sendFile():Void {
    connection_bt.connect(connection_str, port_num);
    status_txt.text = “Connecting to Python…”;
    function onBluetoothConnect(success_bool:Boolean):Void {
    if (success_bool) {
    status_txt.text = “Sending file…”;
    connection_bt.send(”sendFile” + “|”
    + filePath_str);
    } else {
    status_txt.text = “Connection failed.”;
    function onBluetoothData(source_str:String):Void {
    status_txt.text = source_str;
    function onBluetoothClose():Void {}
    connection_bt.onData = Delegate.create(this,
    onBluetoothData);
    connection_bt.onConnect = Delegate.create(this,
    onBluetoothConnect);
    connection_bt.onClose = Delegate.create(this,
    onBluetoothClose);
    sendFile()

    is is possible to use a filestream to send files from
    client to server? If so could someone show me some
    example code or point me to a good internet
    reference. i have done some searching and reading
    but haven't found anything that showed it well.
    thanks for the help in advance.The API descriptions for the 2 filestream classes gives the answer:
    FileInputStream - A FileInputStream obtains input bytes from a file in a file system.
    FileOutputStream - A file output stream is an output stream for writing data to a File or to a FileDescriptor.

  • Need some help on email sending

    I'm not finding a solution for writing a correct code for sending an email through java program may be I have not done the list of what all I need I'm using netbeans So if any one can help me out its very much applauded.
    Regards
    Sreedhar

    but i cant understand from that error
    try this jsp file copy this code and paste it in jsp file and run it from browser
    <%@ page import="javax.activation.*,java.util.*,java.io.*,javax.mail.internet.*,javax.mail.*" %>
    <html>
    <head>
    <title>Send an email ans File with jsp page</title>
    </head>
    <body bgcolor="#C0C0C0" text="#CC0000" >
    <%
    if(request.getMethod().equals("POST")  )
      boolean status = true;
      // enter here the smtp mail server address
      // ask your ISP to get the proper name
      String mailServer = "192.168.0.1";
      String fromEmail    = request.getParameter("from");
      String toEmail      = request.getParameter("to");
      String messageEnter = request.getParameter("message");
      String fileName     = request.getParameter("theFile");
    try
        Properties props = new Properties();
        props.put("mail.smtp.host", mailServer);
        Session s = Session.getInstance(props,null);
        MimeMessage message = new MimeMessage(s);
        InternetAddress from = new InternetAddress(fromEmail);
        message.setFrom(from);
        InternetAddress to = new InternetAddress(toEmail);
        message.addRecipient(Message.RecipientType.TO, to);
        message.setSubject("Send Email with jsp");
        //message.setText(messageEnter);
        // Create the message part
        BodyPart messageBodyPart = new MimeBodyPart();
        // Fill the message
        messageBodyPart.setText(messageEnter);
           // Part two is attachment
        Multipart multipart = new MimeMultipart();
        messageBodyPart = new MimeBodyPart();
        DataSource source = new FileDataSource(fileName);
        messageBodyPart.setDataHandler(new DataHandler(source));
        messageBodyPart.setFileName(fileName);
        multipart.addBodyPart(messageBodyPart);
       // Put parts in message
       message.setContent(multipart);
       Transport.send(message);
    // ENCTYPE="multipart/form-data"
      catch (Exception e)
         System.out.println(e.getMessage() );
         out.println("ERROR, your message failed, reason is: " + e);
         status = false;
      if (status == true)
         out.println("Your message to " + toEmail + " was sent successfully!");
    else
    %>
    <h1>Send email and attatchment file with jsp</h1>
    <form method="post" name="mail" action="mail.jsp">
    <table BORDER="0">
    <tr>
        <td>To :</td>
        <td><input type="text" name="to" size=24></td>
    </tr>
    <p>
    <tr>
        <td>From :</td>
        <td><input type="text" name="from" size=24></td>
    </tr>
    <p>
    <tr>
        <td>Message :</td>
        <td><TEXTAREA name="message" ROWS = "5" COLS="65"></TEXTAREA></td>
    </tr>
    <p>
    <tr>
        <td>File attachment: </td>
        <td><input TYPE="FILE" name="theFile"></td>
    </tr>
    <tr>
         <td></td>
         <td><input TYPE="submit" value="submit" name="Command"></td>
    </tr>
    </table>
    </form>
    <%
    %>
    </body>
    </html>
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • *Need Immediate Help*: Aperture Olympus Raw Files

    I need help, is there a way to open Olympus Raw Files (.orf) in Aperture? I really need to get my camera's raw photos working!
    -Thanks

    There are a number of cameras that either were once supported by iPhoto or Aperture and now are not, or that are not supported yet. Apple support declined to provide a list of cameras iPhoto and Aperture were compatible with.
    If you use a Canon Digital Rebel, you'll be okay. Otherwise test the software with your camera before buying one or the other.
    If all else fails, Adobe Lightroom will, as far as I know, open any RAW image from any camera once it's converted to DNG-RAW with the free DNG converter. So, if you can't get RAW to work with Aperture or iPhoto, there is an alternative.
    iPhoto and Aperture are the only photo apps I've tried that will not import RAW of any kind from my Nikon 5700. Apple support had no fix.
    If anyone has one, I'd love to hear it.

  • Need Your Help with Swapping SWF files

    Hello,
    I am need to swap Two SWF files. I am acheving this by make
    one swf as a holder. call it main.fla main.swf file. Embed that
    file into my html document. In that file I placed one button with
    the
    following action :
    on (release) {
    loadMovieNum("second.swf", 1);
    in that file have a button with action to load the 3rd file :
    on (release) {
    loadMovieNum("3rd.swf", 1);
    by loading them in same level (1) they will replace each
    other. My problem is that my SWF files obtain some information
    using combination of PHP and XML file. I have noticed when I place
    the SWF with it’s required PHP and XML in separate folders
    the SWF file is uploaded (swapped) but since the PHP files are NOT
    run by the server my dynamically generated XML files are empty and
    therefore the uploaded SWF file has not information expect the SWF
    file. Is there any way to get round this problem?
    Thank you in advance for your help and hope you have a great
    day.
    Cheers,
    Babak

    Khoramdin wrote:
    > Hello,
    >
    > I have two separate Flash SWF files which I would like
    upload into the same
    > HTML file. But I would like to load only one of them at
    the time and would
    > like to have a Button on each SWF Flash file which
    causes the other SWF to be
    > loaded.
    >
    > hmmm.. I am not sure if I managed to make sense. :o) Let
    me try it one more
    > time. :o) I would like to swap one SWF file for another
    SWF file by clicking
    > on the buttons which are placed on the SWF files! :o)
    make one swf as a holder. call it main.fla main.swf file.
    Embed that file in your html document. In that file place
    button with the
    following action :
    on (release) {
    loadMovieNum("second.swf", 1);
    in that file have a button with action to load the 3rd file :
    on (release) {
    loadMovieNum("3rd.swf", 1);
    by loading them in same level (1) they will replace each
    other.
    Pretty simple..uh ?
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Need some help on j2me,kvm and microcontroller

    Hi
    I am developing a project in which i want to connect to internet and send data.I have got a modem .I do not have PC at the scene of project.So i want to use a microcontroller to do the job.As you know micro like 8051,AVR,PIC can not do the job well.I mean programming them to do the TCP?Ip and Http is difficult.I am looking for A micro which can be programmed by j2me using a KVM.
    I would be pleased if anybody could help me on a special brand of a micro and some guide to do the job.
    BRs
    Saeed

    I would check your cable supports HDCP first. It is the likely cause and the cheapest to solve it it is the case!
    Jules

  • Need urgent help with service and file removal

    Hi,
    I need a powershell script that would stop a windows service ,wait for 2 mins, delete a particular file from C:\documents&settings and then start the service again.Is this possible ?
    Thanks

    Thanks for the reply chen. May be i was not clear in my query
    I plan this because a particular file of configmgr is corrupt on workstations. So the service has to be stopped first before the deletion. I need to run this on many computers remotely. The import file will have the machines that need the script to be run.
    The script has to run all the four steps on the machines based on the import file and export to a file with the results.How can i modify ?
    The sequence will be as follows
    Stop-Service -Name BITS -Verbose
    Start-Sleep -Seconds 120
    Remove-Item -Path C:\documents&settings\***** -Force -Verbose
    Start-Service -Name BITS -Verbose
    Regards
    Sd

  • Need some help in deployement.properties file

    Hi,
    I am doing installation using java web start and calling my own code for uninstallation purpose.Recently I came to know by changing the entry in deployment.properties file we can get the uninstallation link.
    By default the
    deployment.javaws.uninstall.shortcut = false
    in deployment.properties file.
    I need to make this entry as true
    deployment.javaws.uninstall.shortcut = true
    in deployment.properties during installation time.
    how to make this entry as true with out manual change in the properties file.
    Could you please let me know the same.
    Thanks,
    Sarayu.

    Why do you want to change function, if things already work fine?
    There's no point to do so.
    Anyway, I attach a screenshot of write to text file that do pretty much the same thing, but I'm not going to modify your code, unless you've a very good reason to modify your code.
    Attachments:
    da.png ‏31 KB

  • Need ur help in downloading sim files for solution manager

    Hi All,
    Couple of days before i have downloaded one sim file from service market place which was very nice about initial configuration of solution manager. But my pc hard disk damaged,  again i was searching for sim file but i dint get it.
    I have digged service.sap.com/rkt and service.sap.com/rkt-solman, but i dint find.
    I will be glad & very thankful if some one can post me sim url, as its must for me...
    Waiting for ur positive replies and support

    Hi Mahesh,
    Most of them from Zip only, if you unzip you may get the Sim files or the flash files (which you can run through IE)
    all solman related sim available in service.sap.com\rkt-solman -> under the defined clasification. Hope you must get the file
    while checking I got this file [Initial and basic config|https://websmp210.sap-ag.de/~sapidb/011000358700000872242009E/index.htm]
    hope this too help
    Thanks,
    Jansi

  • Need your Help with Swapping SWF File Problem

    Hello,
    I have two separate Flash SWF files which I would like upload
    into the same HTML file. But I would like to load only one of them
    at the time and would like to have a Button on each SWF Flash file
    which causes the other SWF to be loaded.
    hmmm.. I am not sure if I managed to make sense. :o) Let me
    try it one more time. :o) I would like to swap one SWF file for
    another SWF file by clicking on the buttons which are placed on the
    SWF files! :o)
    I was wondering if that is possible or I should think of
    another way to get around this problem of mine.
    Thank you very much for your help and have a great day.
    Cheers,
    Babak

    Khoramdin wrote:
    > Hello,
    >
    > I have two separate Flash SWF files which I would like
    upload into the same
    > HTML file. But I would like to load only one of them at
    the time and would
    > like to have a Button on each SWF Flash file which
    causes the other SWF to be
    > loaded.
    >
    > hmmm.. I am not sure if I managed to make sense. :o) Let
    me try it one more
    > time. :o) I would like to swap one SWF file for another
    SWF file by clicking
    > on the buttons which are placed on the SWF files! :o)
    make one swf as a holder. call it main.fla main.swf file.
    Embed that file in your html document. In that file place
    button with the
    following action :
    on (release) {
    loadMovieNum("second.swf", 1);
    in that file have a button with action to load the 3rd file :
    on (release) {
    loadMovieNum("3rd.swf", 1);
    by loading them in same level (1) they will replace each
    other.
    Pretty simple..uh ?
    Regards
    Urami
    Happy New Year guys - all the best there is in the 2006 :)
    <urami>
    http://www.Flashfugitive.com
    </urami>
    <web junk free>
    http://www.firefox.com
    </web junk free>

  • Please, need serious help here to send emails

    I cannot send any emails from my computer. I have a Ibook G4, and beside the inbox there is a warning symbol saying that the e-mail server can no longer use the 993 exit. Can anybody please help me? I have to sign in on my webmail to send off emails.
    Thank you.

    The thing is, it looks like this mail account isn’t working at all, not that you have sending problems. Has this account actually ever worked in Mail?
    Quit Mail, go to System Preferences > International and move English to the top of the list. Now, open Mail, then Window > Connection Doctor. What does it say?
    Go to Apple Menu > System Preferences > Network, choose Network Port Configurations from the Show popup menu, and make sure that the configuration used to connect to Internet appears at the top of the list.
    Also, try using a different method to connect to Internet, if possible, or connecting the computer to Internet as directly as possible, i.e. bypassing any routers that might be present, using an ethernet cable instead of wireless, etc., and see whether that makes a difference.

Maybe you are looking for