Java vs appforge crossfire(Bluetooth)

Hi,
I am new to mobile programming. I want to start developing bluetooth based chat application like bluechat. I have searched on internet and found easy to use tool developed by appforge(www.appfroge.com) called crossfire. They claim to support more than 90% of mobile devices available in market.
My target is to support maximum mobile phones together in chat application. I have doubt that java is still immature and jave api for bluetooth does not support a great no of devices yet. So i want to know which tool shall i be selecting in my applications.

I worked on a project like that once, it worked by not looking at the video feed but in stead it used a snapshot function on the webcam to create pictures which could be analyzed. This was made to work through Java somehow, but in the end some native code was used to do the actual image loading and analysis because the performance wasn't good enough using ImageIO.
On to your question: no you should not use JMF as it is indeed dead as a doornail. A simple google for "java webcam" gives alternatives however, such as this:
http://lti-civil.org/
Forum post with example code:
How to control a webcam in JFX app?

Similar Messages

  • Ubuntu and API bluecove : java and bluetooth

    Hi
    Here is my final project I want study worked with bluecove api (java bluetooth technology) and J2ME you guessed I am looking to make contacts and nokia laptop via bluetooth
    then voila I first exposed my equipment:
    hp laptop duel core processor, 200 gig hard drive, 2 GB rowing bone ubuntu 10.10 and set a date and I installed the bluetooth driver that ubuntu recommended me short I followed this short course:
    http://myexp101.wordpress.com/2011/11/11/develop-java-bluetooth-application-under-ubuntu-linux/
    for the library installed on ubuntu bluecove then I tested a small java program:
    http://www.miniware.net/mobile/programs/EchoServer.java
    to see that Bluetooth is enabled and can detect the presence of mobile phone nokia
    I created a test project in eclipse and I joined the library in my project brief bluecove here is the program:
    import java.io.*;
    import javax.bluetooth.*;
    import javax.microedition.io.*;
    public class EchoServer {
    public final UUID uuid = new UUID( //the uid of the service, it has to be unique,
                   "27012f0c68af4fbf8dbe6bbaf7aa432a", false); //it can be generated randomly
    public final String name = "Echo Server"; //the name of the service
    public final String url = "btspp://localhost:" + uuid //the service url
    + ";name=" + name
    + ";authenticate=false;encrypt=false;";
    LocalDevice local = null;
    StreamConnectionNotifier server = null;
    StreamConnection conn = null;
    public EchoServer() {
    try {
    System.out.println("Setting device to be discoverable...");
    local = LocalDevice.getLocalDevice();
    local.setDiscoverable(DiscoveryAgent.GIAC);
    System.out.println("Start advertising service...");
    server = (StreamConnectionNotifier)Connector.open(url);
    System.out.println("Waiting for incoming connection...");
    conn = server.acceptAndOpen();
    System.out.println("Client Connected...");
    DataInputStream din = new DataInputStream(conn.openInputStream());
    while(true){
    String cmd = "";
    char c;
    while (((c = din.readChar()) > 0) && (c!='\n') ){
    cmd = cmd + c;
    System.out.println("Received " + cmd);
    } catch (Exception e) {System.out.println("Exception Occured: " + e.toString());}
    public static void main (String args[]){
    EchoServer echoserver = new EchoServer();
    here is the result of the execution in eclipse:
    Setting device to be discoverable...
    BlueCove version 2.1.1-SNAPSHOT on bluez
    Exception Occured: javax.bluetooth.BluetoothStateException: Bluetooth Device is not ready. [1] Operation not permitted
    BlueCove stack shutdown completed
    Do you have an idea for solving the problem?
    cordially

    As I can judge, it is not just simple XML. An
    ODS-File contains some XML in just one file. It is
    not enough, just to parse it once with an XML. Is
    there any APIs I could use, to read the field values,
    or I have to write it myself?
    I don't know why, but if I google for java api and
    ods, openoffice etc. there is no information I need
    :-((As I said, I've not had the need to do it myself, but as this is one of the primary benefits of the ODF, it shouldn't be too taxing. The format seems to be pretty well documented (try the OO website.....I'm sure theres a developers section), so even if you had to write a parser yourself, I doubt it would be terribly difficult. Sorry I can't be of more help.

  • Error in using jsr-82 in symbian java

    Dear all,
    I am recently writing java application which require using bluetooth api
    (JSR-82). During the compilation, the program works fine. Unfortunately,
    when I try to run it with the emulator, error does come up. I have tried
    different classpath setting already. But the problem still can't be solved.
    Following is the details:
    epocdrive_j=C:\Symbian\UIQ_21\epoc32\Java\
    epocdrive_t=C:\Symbian\UIQ_21\erj
    classpath =
    C:\Symbian\UIQ_21\epoc32\java\lib\classes.zip;C:\Symbian\UIQ_21\epoc32\java\
    lib\emptyapi.zip;C:\Symbian\UIQ_21\erj\classes;C:\Symbian\UIQ_21\erj\ext\qaw
    t.jar;C:\Symbian\UIQ_21\erj\ext\util.jar;C:\Symbian\UIQ_21\erj\ext\btapi.jar
    ;C:\Symbian\UIQ_21\epoc32\java\ext\javaphone.jar;
    command used for compile : "javac -target 1.1 *.java"
    command used for running emulator: "pjava_g -cp t:\PrintClient PrintClient"
    error : "Exception in thread "main" java.lang.NoClassDefFoundError:
    javax/bluetooth/DiscoveryListener"
    This program I am doing is the PrintClient example in JSR82-spec_1.0a.pdf
    can anyone spot any error in my work??
    thank you very much!

    I could be totally wrong here, but i believe the error given means that "DiscoveryListener.class" can not be found in the classpath given, including as part of the jar files listed in the class path.
    Can you check for that filename on your system and tell us where it is if found?

  • Bluetooth device discovery simple question

    when the master device is discovering all the devices in the local neighbourhood, do the devices being discovered know that the someone is searching for them, even if no contact is made.
    ie. Is there any java code in the bluetooth api's that i can use on the devices being discovered to alert sed device that someone has just searched its bluetooth address and name?
    or is this all underlying in the stack and not accessible to me?
    any minor response will do :)

    i do not think there is. why would you want to do this anyway can i ask.

  • Bluetooth SMS

    I wanted to send a SMS message from a bluetooth device plugged into my USB to a nokia mobile phone...
    I need to do this in Java but the code i have done only sets up the connection and although this is not working, i dont know how to send the SMS to the mobile or if it is even possible...
    I cannot use the SDK which i found but it involves writing in the message yourself, where i want it to be sent from the computer java program to the bluetooth device tot he phone....
    Thanks for anyone who helps me on this,
    Pam

    Search for a suitable forum here: http://forum.java.sun.com/category.jspa?categoryID=23

  • Without Bluetooth api

    Is passible to write midlet in java 2me without use Bluetooth api
    which will connect two or more phones throw Bluetooth.
    Bluetooth API is implemented in a few expensive Phones only.
    Thank for Your Advance

    Hi,
    how do you want to use bluetooth without bluetooth API?
    ...how do you want to paint w/o a grpahics API, how do you want to write w/o a pen? :-)
    There must always be an API for any kind of functionality.
    The L2CAP is not API, it's protocol and there must be an API implementing this protocol. For the Java ME world you have to use the Bluetooth API defined in JSR-82 - which must be implemented by the device you want to run the application on.
    Rada
    PS: I've heard about an option to connect via BT using standard IO connecotr using some special connection string, but I've never tried it and I have no info about it.

  • Building Bluetooth Application

    Dear All,
    I'm new to J2ME programming. I'm interested in building J2ME Bluetooth Application using NetBeans 4.1 + Mobility pack.
    My questions is =
    1. Is there any components / packages / SDK should I downloaded in order to develop Bluetooth App?
    2. What java class / package that Bluetooth routine reside? ex: javax.microedition.* ...etc
    3. Could i build Bluetooth in Netbeans 4.1 + Mobility Pack?
    All answer will be a lot appreciated. Thanks.

    Hi All,
    I have got LabVIEW 8.0. I make a VI for discovering BT targets. It works fine on my computer and also fine when I make a application.
    I don't have any problem with this function and the discovering of BT
    target. I made the test of the PC of my collaegue and It works fine too.
    Two tests done : One with a own Vi and an own application on my PC  ==> everything OK
                                One with the Vi and application of Aquila1981 from the folder "rest.zip" (see first thread)==> everything OK
    My config : Win XP Pro ver 2002  SP2
                      Pentium IV (3,4 Ghz)
                      1 Go of RAM
    Targets : Pocket PC Asus A620 BT
                   Sony-Ericsson Mobile Phone K750i
    BT stuff : BT USB Stick
                    Manufacturer : Broadcom ==> Blutonium BCM2035 BT 2.4 Ghz Single Chip Transceiver
                    Driver version : 5.1.2600.2180
                    Firmware Revision 00.04
    Let me know if you have some problems.
    Julien Roland
    AE of NI Belgium
    www.ni.com/support
    Julien Roland - District Sales Manager
    NI Belgium - Technical Support
    Don't forget to rate a good answer

  • How SUN Bluetooth Inplementation for Desktops programming?

    Hi everyone
    I did read some things about JRS-82 that SUN watches, but it's true that api is only to J2ME?
    I am looking for a Bluetooth implementation for Desktops, and i found Bluecove.
    I would like to continue to code in "SUN Vision" and not to use thirds libraries for my project. It's Bluecove a library watched by Sun?
    Can I use JRS-82 for desktops? It's easy to use JAVA COMM api to bluetooth app?
    What you tell me?
    Thanks very much.
    FightSurf George Maia.
    Edited by: GeorgeMaia on Mar 25, 2008 1:30 PM

    We can start applications in a particular screen, since Snow Leopard, similar to what Linux has been able to do for some time; however, these screens are not really desktops, since we can't dedicate certain shortcuts/icons to only appear on certain screens.
    Thanks, Eric.  Perhaps I wasn't clear in the above.  I realize we can start applications in certain desktops, but that is NOT what I'm after.
    What I would like is the icons (i.e., shortcuts, directories, files) that appear on the desktop, to be different for each desktop.  Such that if I go to Desktop 2, I can place all my game icons/shortcuts there.  Then if I switch to Desktop 3, I might have all my Office programs there, but not my games.  Does that make sense?
    Eventually I might also want my Dock to have different icons based on what desktop I'm using, but I figure that's even more difficult.

  • Sms and java

    i want create an application whith java that send sms

    Wait wait guess what i found:
    Bluetooth Gets Java-Enabled
    Java programmers interested in Bluetooth wireless-enabled devices have a new developmentoutlet -- Zucotto Systems.
    The Java-enabled development tool by San Diego-based Zucotto's Xpresso system-on-a-chip is based on Sun Microsystems' Java2 MicroEdition KVM (K Virtual machine) and is geared specifically toward wireless application development.
    Bluetooth, the wireless chip set expected to make its debut this spring, is led by nine Special Interest Group (SIG) members and over 1,300 developers. The technology will provide short-range radio wireless connectivity to handheld devices and PCs.
    Zucotto said it is forming alliances with SIG members to develop Java applications and said its Xpresso chip is 20 to 40 times faster than comparable chips and consumes less power.
    Man i can't wait to check that out....
    ;)

  • Bluetooth and network

    I'm gonna create a network where people using bluetooth and Java would chat by bluetooth in one building. The problem is that range of bluetooth is up to 100 meters and in closed places - it's up to 10 meters. As the building is quite big I guess I'll have to set up a few servers 'routers' with bluetooth access.
    Please tell me if there is any neccessary equipment (except from bluetooth) for server, and do you think such communication can take place? any suggestions? is it real and would it work?
    thank in advance

    Hi, to answer Trevor's question tovex does appear as a blue ball in a box in the 'network' level. The ball is kinda greyed out not fully shaded like my 'servers' ball. However, when I press 'get info' on tovex it says it is an alias and also I am not allowed to make any changes.
    To answer myhighway, under my system pref > network is shows my 'built in ethernet' as the active connection (green signal). The connection is through a cable modem. I have not installed bootcamp/windows
    BTW there is a new person on there as well called 'fs 20 20's computer', this one just showed up when I turned on my mac today. They disappeared just now but they were on my system while I typed this post.
    Any more help would be appreciated. Tammy
    imac 20 inch   Mac OS X (10.4.8)  

  • J2ME Bluetooth Mac

    Hi. I downloaded the Java ME 2.2 WTK from the Sun website (the Linux version). I decompressed the .bin, but obviously couldn't run the installer (not linux). So, I have the libraries, but any installation that was supposed to happen, didn't. I'm trying to use JSR082 (the Bluetooth library), and 'javac' works fine, but I keep getting this error when I tried to run the program via 'java':
    javax.bluetooth.BluetoothStateException
    at com.sun.kvem.jsr082.bluetooth.LocalDeviceImpl.<init>(LocalDeviceImpl.java:185)
    at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
    The command I execute is: java -classpath $MIDLET_APIS:./ MyClass
    where MIDLET_APIS is a colon ( : ) separated list of JAR files.
    I'm running Mac OS 10.4.8 with Java SE 1.5.0. Any ideas?

    I am having the same problem...... the Bluetooth Mouse will click (if cursor placed over the menu with a different USB mouse) but won't scroll. Naturally I changed the batteries.
    I bought the iMac and Bluetooth mouse and keyboard in November 2005. the mouse failed in May 2006. The keyboard still works fine. I drove for over an hour to take the mouse back to the store from which it was purchased. They tried it, it failed to scroll, and they exchanged it with a new mouse. I drove the new mouse home and it failed immediately. I tried it on my neighbor's Mac and it failed in the same manner..... click, no scroll.
    Apple better get this problem solved. I have been a diehard Mac used at home but if operating system reliability and functionality merge with Windows and the Apple hardware, which historically has been very reliable, deteriorates, then the Intel chip ploy may backfire.
    20" G5 iMac   Mac OS X (10.4.6)   I've used Mac at home since 1984. I use Windows at work. I am literate but not an expert.
    20" G5 iMac   Mac OS X (10.4.6)   I've used Mac at home since 1984. I use Windows at work. I am literate but not an expert.

  • Problems with CLDC

    Hey all,
    I'm having some problems connecting to a simple Bluetooth device. I want to create a Java application that allows a computer to connect to a generic bluetooth device (at this current point and time my cellphone). I'm having problems using the CLDC to connect. Here is a summary:
    I've plugged Bluetooth adaptor into my computer's usb drive allowing it to detect bluetooth devices. When I run it via the Windows GUI it successfully detects my phone. Now I am trying to use NetBeans to create a java program which detects these devices.
    Here is the relative parts of the code:
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    import javax.bluetooth.BluetoothStateException;
    import javax.bluetooth.DeviceClass;
    import javax.bluetooth.DiscoveryAgent;
    import javax.bluetooth.DiscoveryListener;
    import javax.bluetooth.LocalDevice;
    import javax.bluetooth.RemoteDevice;
    import javax.bluetooth.ServiceRecord;
    import javax.bluetooth.UUID;
    import javax.microedition.io.Connector;
    import javax.microedition.io.StreamConnection;
    import javax.microedition.io.StreamConnectionNotifier;
    public class Test {
        public static void main(String[] args) {
          try {
              javax.microedition.io.Connection c = null;
              m_Remote = RemoteDevice.getRemoteDevice(c);
             String remoteAddress = m_Remote.getBluetoothAddress();
    catch (BluetoothStateException ex)
                ex.printStackTrace();
                ex.getMessage();
            catch (IOException ex) {
                ex.printStackTrace();
                ex.getMessage();
            }This leads to:
    Exception in thread "main" java.lang.NullPointerException: null connection
            at com.sun.kvem.jsr082.bluetooth.RemoteDeviceImpl.getRemoteDevice(RemoteDeviceImpl.java:43)
            at javax.bluetooth.RemoteDevice.getRemoteDevice(RemoteDevice.java:192)
            at javaapplication3.ClientServer.SearchAvailDevices(ClientServer.java:116)
            at javaapplication3.ClientServer.InitClient(ClientServer.java:105)
            at javaapplication3.ClientServer.<init>(ClientServer.java:60)
            at javaapplication3.Test.main(Test.java:15)
    Java Result: 1I figured it was a remote device since I was trying to connect to my phone. I've also tried using the local device methods.
    LclDevice = LocalDevice.getLocalDevice();Which leads to:
    BluetoothStateException: nullI've never worked with bluetooth or J2ME before (obviously) and any help would be appreciated. I've also looked up online and seen that I may need to initilize the stack? (The dongle is running Widcomm version5.1 and V6). However, all examples I have seen on that have told me to use the package com.atinav.BCC, and that package is unavailable right now (the website which hosts the package www.atinav.com -> downloads isn't working).
    My overall questions are basically: Do I need to initialize the Bluetooth stack, and if so how? If I do not need to initialize the stack, what am I doing wrong (or what do I need to configure using these libraries in order to make this work).
    Thanks,
    Tim

    Thanks for the response.. unfortunatly I have looked through those examples. They don't give me the same error, instead the examples just seem to detect themselves. When I ask for the address of the local device it found, it spits out whatever UUID I supplied.

  • J2ME on cell phones questions

    Hi,
    I'm in the process of picking a project and wanted to see how doable it is. The project involves a cell phone and a Java program to use Bluetooth. This is real unknown territory for me so my questions are very simple. First does J2ME have packages/classes that allow for bluetooth communication (name)? Or is that a separate package I need to find?
    Second, can you save to files/permanent memory from an application running on a cell phone (to save some program settings etc). On the cheapest cell phone usually how little memroy is available? Also can you name some classes that allow for this in J2ME (other libraries).
    Finally how standard is all this? What's the probability that the program will run on all of the new cell phones? On all new cell phones from same manufacturer?
    Thanks.

    Hi,
    J2ME has JSR 82, that specifies BlueTooth stack. It's bundled with latest WTK releases (and netBeans 4.0 Mobility Pack as well). If it's available on device depends on HW equipment of the device of course.
    For your second Q: RMS storage is defined by MIDP 1.0 itself so yes, you can store some records. Not sure about the size I guess you can count on 8kb. The storage will be more , least I know of is 30kb on Nokia 6310, usual sizes are 1-5 Mb, smartphones use MMC cards, so the size can grow to hundreds of megs.
    Peter

  • Loading multiple instance of a

    Hi,
    I'm trying to develop a Java application with Avetana Bluetooth. This library is a complete stack for Bluetooth in Java. The big problem is the hardware interface: Avetana can get only one instance for each java application running on it. So, if I have multiple hardware interface on my system, I must run multiple JVM with my application...
    This happen because the Avetana library have a lot of static variable to hold some reference to the bluetooth hardware.
    The big question is: can I make some Java code to create & run multiple instance of my Bluetotth code, so each Avetana Library is TRULY loaded in a ISOLATED context (so the static variables are independent each from others)?
    I've tryed with custom classloading but nothing...
    Here is the code from main() on StaticTestClassLoader (a code used for testing).
    MyBT is the Bluetooth class wich load the Avetana library on hardware interface (specified by the method initStack(int hardwareInterfaceID)).
    URL[] url = { new File("subdir").toURL() }; // because MyBT.class is in the "subdir" folder
    URLClassLoader cl1 = new URLClassLoader(url);
    URLClassLoader cl2 = new URLClassLoader(url);
    URLClassLoader cl3 = new URLClassLoader(url);
    Class<MyBT> c1 = (Class<Dummy>)cl1.loadClass("MyBT");
    Class<MyBT> c2 = (Class<Dummy>)cl2.loadClass("MyBT");
    Class<MyBT> c3 = (Class<Dummy>)cl3.loadClass("MyBT");
    Object bt1 = c1.newInstance(); // this is line 22 where exception rise up
    Object bt2 = c2.newInstance();
    Object bt3 = c3.newInstance();
    ((MyBT)bt1).initStack(0); // run my Bluetooth application on hardware interface #1
    ((MyBT)bt1).initStack(1); // the same but on hardware interface #2
    ((MyBT)bt1).initStack(2); // the same but on hardware interface #3No error while compiling, but when running:
    Exception in thread "main" java.lang.NoClassDefFoundError: MyBT
            at StaticTestClassLoader.main(StaticTestClassLoader.java:22)this happen if I didn't add on classpath the MyBT class in the "subdir". If I add it, it works but all three instance are in the same context and the library doen't load the right hardware interface...
    If I omit the obejct assignement with bt1, bt2 and bt3 it works in both scenarios, but I haven't any reference to the new instantiated classes ...(so I can't call methods on there!)
    Any idea, web link or suggestion?
    Thanks in advance, best regards,
    Francesco Pessina.

    I think the question is detalied in an unclear manner. The substance of my question is:
    - I have some code in a library with static variables.
    - if I load (instantiate) this library one, twice or more, this static variables have all the same value because are static and live in the same JVM/context
    - the need is to load & use this library multiple time (two or more "instance" of it) from the same application in a single JVM.
    So my trouble is to write some Java code that create a runtime different context spaces in the (single) JVM so I can run this "static" library more times (one library for each context).
    I've tryed with classloader and singleton but all instantiated class have always the same context, so the library have (in all the created instance) always the same static variable values.
    Sorry for my english, have a good new year!
    Regards,
    Francesco.

  • Does JSR-82 support j2se application?

    Hello everybody.
    As far as I know I can use JSR-82 API to build a MIDP with Bluetooth support.
    However, I was wondering if I can build a j2se using the JSR-82 API.
    If not, is any other API library that support building j2se Bluetooth applications?
    Do I have to use TCP Socket connection(Java object) up to bluetooth hardware?
    I really appreciate any help.

    Yes. You may implement JSR-82 and a communication for your dongle such as USB or Serial Port. But it already exists too. You can research for ATINAV, ROCOCCO, and others. A nice example of this is in www.benhui.net ; BlueCove example.
    Bests regards
    Luis
    Hello everybody.
    As far as I know I can use JSR-82 API to build a MIDP
    with Bluetooth support.
    However, I was wondering if I can build a j2se using
    the JSR-82 API.
    If not, is any other API library that support
    building j2se Bluetooth applications?
    Do I have to use TCP Socket connection(Java object)
    up to bluetooth hardware?
    I really appreciate any help.

Maybe you are looking for

  • Getting the username and Password for networking

    I have a MAC and several PCs at home, and I can see the MAC on the Windows 7 Network. When I try and double click it, it asks for a username and password. Where would I find that on the MAC, or how would I set this up. I want the PC to be able to acc

  • Setting up a system on the web

    We need to upgrade a client/server system to run on the web. We'll be running Forms 6i forms and 8i database on the intranet using NT machines. OK, I've read all the manuals, and am not 100% sure of what steps we need to take. This is what I think we

  • SQL2005 cluster error MDB-05053  Errors when executing sql command: p nr="

    Hi all, We are migrating from 32 bit to x64 bit machines. SQL 2005 database on windows 2003. I am trying to install E 4.7-200 SR1 on the clustered nodes. The installation manuals for 4.7 are very old and there is nothing for SQL2005 installation. Now

  • Generics: Stange error

    Hi I have a strange error using the generics. I define the two method: public void unregisterServices(Collection<ServiceReference> _references); public void unregisterServices(Collection<String> _ids); And i have an error, that the two fonctions has

  • Object Recordings out of synch.... ugh!

    Here is a good one.  I have a 22 slide course that has multiple objects on each slide.  I created recordings that are linked to each object on each slide.  When I preview the slide, they are great, play in order, etc.  When I preview "next 5 slides"