Parameters on a j2me app

Hi, I must develop a general app to communicate with a PC, this app must be used by several custom programs on the devices. I want to know how can I call to a java app from another app inside a mobile device and send it parameters.
For example:
From an app I must call to this program and send a variable amount of parameters so my j2me app can analize those parameters and send the data to the pc.
analizing the data and comunicating with the pc is the easy part, but I have no clue on how to initialize the j2me app.
In a PC you can do it qith the java or javaw commands.

mmmmm, what?
I am new to j2me, can you please explain it better.
I have also made all the connection system to comunicate from the mobile to the PC and also have made the plugin based working system on my PC, now it really need to achieve on this to continue the project.

Similar Messages

  • Are there any ways to package a J2ME app and let people view via computer?

    Are there anyways to packaged a J2ME app with the emulator?
    So that when people click on a bat file, that emulator will run along with the J2Me app?
    I saw this in the jbuilder console
    C:\WTK21\bin\emulator.exe -classpath "C:\MyApp\classes;" -XdeviceefaultColorPhone -Xdescriptor:"C:\MyApp\jad-temp\MyApp.jad"
    I belive it can be done?
    Please advise. Thanks

    What? An .exe? What is this? Do you know that you are coding in Java? Especially in J2ME? What do you want with a windows executable on your mobile phone?
    Once more:
    1) pack your project and generate the jad/jar files. This contains your code, the app you wrote.
    2) To run this, you need a phone or an emulator. (like you need windows to run an exe). So either you transfer these to a phone and run it from there or use the emulator that comes with the WTK or SunONE or whatever. And for running on an emulator, you can write a .bat for starting. Of course, you can write a .exe but it will do nothing else than calling the emulator with its parameters.
    Thats the Java principle btw:
    Bytecode (i.e. jad/jar in mobile environment)
    Java VirtualMachine (i.e. an emulator)
    OS (i.e. Win32)
    hth
    Kay

  • How to access loudspeaker in J2ME app

    How to access loudspeaker in J2ME app and know a status of a call which is initiated through app.

    so are you saying that pointerpressed doesnt work after setting Setfullscreen mode?

  • [jsr82] can a j2me app be a Bluetooth server and client role in parallel?

    I want to make my j2me app register a special service channel and listen to it, meanwhile, I also want to start a client to connect to other handset which has the same services. In Bluetooth protocol side, this is obviously OK, but in J2me is this design possible? some people said that in jsr82, the Bluetooth device is exclusive for J2me app, app cannot be both server role and client role at the same time. Can anybody give me a definite answer?

    No this design is not possible with JSR 82. Because when the device acts as a server it can't be used as a client as whenever you will run the client code the server mode will disappear.
    But what maximum you can do is when you need the client to run close the server and switch into the client mode but I think you don't need this solution.
    Shan!!!

  • Update J2ME Apps (Updating Existing jar with latest updates)

    Hi ,
    I am new to J2ME. I had created a jar(One J2ME App). I need to update the existing jar with some of my newly added & edited class file. I can do this for desktop apps "jar uf jar-file input-file(s)", there is an option to put all the updates in a batch file (.bat) and update the existing jar. I need same functionality need to be achieved in Mobile Apps (J2ME Jar). (Simply like, if i click a file(jar, exe, or etc) all the updates should go to the existing jar file). Kindly help me to find a way to solve this issue.

    Thanks for reply,
    So, if my jad application is installed in mobile, i don't want to reinstall it again, need update this installed jad itself, is it possible with this ?. Actually something like how Service Packs given by the windows(SP1, SP2..), Like that in Mobile i need to upgrade my jad application by giving my patch to it(additionally added classes).

  • Passing Parameters within a DPS App

    I have a DPS App with 2 slots. One slot contains embedded code which is suppose to show a list of assets. One slot contains code that launches an external site in a frame within the DPS app. 
    As per this article New Consumer Marketing APIs | Adobe Developer Connection, it is possible to pass parameters from an external app to a DPS app.
    I am running an issue. In my external site I am trying to call the DPS app like so dpsapp://v1/slot/storefront?path=/content/test.pdf via a button.  What I have noticed is that when I do that, the app does switch to the storefront side but queryingthe urlPath or urlQueryString will return a null value.
    It seems like I am unable to pass a parameter to the DPS app within the same app. If I load the external website in Safari, I am able to query for the parameters.
    Am I missing a step here or is it not possible?
    Thanks

    Hi,
    Do you use the adobeDPS.configurationService.applicationContext.urlQueryString to call the parameter? adobeDPS.configurationService.applicationContext.urlQueryString
    //Sample code to get a parameter from the query string, com.adobe.CustomDPSViewer://v1/slot/store?companyName=Adobe
    var companyName = adobeDPS.configurationService.applicationContext.urlQueryString.companyName;
    alert(companyName); //Alert box will appear with 'Adobe' in the description
    Adobe DPS - Library and Store SDK 2.32 : adobeDPS-ApplicationContext : JsDoc Reference
    What is the Adobe DPS version of your app?
    Cheers
    Mike

  • What are the ways to download j2ME app to j2ME phones

    Hello Friends,
    What are the ways to download j2ME app to j2ME phones, is there any method that all phones supports.
    I am downloading app to different phone in different ways, i.e using infrared, bluethooth, cable (different cable for different phones), URL (WAP)... offff.....
    Can any one let me know is there any one way that we can download app to phone... i mean is WAP URL support on all phone?
    Thanks
    Kumar.M.R

    The following Java tip may help:
    How to install a J2ME aplication on a mobile device
    http://www.java-tips.org/content/view/617/73/

  • Networked J2ME app hanging on send

    Hello there,
    So, I have a network aware j2me app that does a LOT of talking with a server in order to stay synched (yes, we realise lots of network traffic could be expensive for the consumer -- this app is being developed at the request of a carrier..heh).
    I, like many people here, was having LOTS of problems using POST. The errors were frequent and insanely difficult to track down. So, at someone's suggestion, I switched to GET (pass the packet data as a parameter in the query string). Performance is definatly better...but still not perfect..
    The problem I have now is very strange: After several minutes (anywhere from 2 to 5) of sending data packets to the server without incident, my sending thread will just freeze. Its still running, only no data is able to get sent to the server. This, of course, basically breaks my application.
    If I leave it running for several minutes, eventually I will get an "IOException: malformed response message" error, and then it will start sending again. Generally speaking, though, once this first freeze has occured, subsequent freezes are frequent.
    Has anyone experienced a problem like this before? I would have sworn I read a thread about this issue on a J2ME forum recently, but I can't, for the life of me, track it down again.
    If anyone has any ideas, I would be greatly appreciative.
    Many thanks, in advance,
    Ben Mattes.

    Me again.
    Ok, let me try to be a little more precise in what exactly I need. :)
    What is happening is that after several minutes of succesfull data transfer between client/server, a connection is being opened to the server succesfully, but data isn't getting transfered. Sometimes it takes up to 5 minutes for this data (a string less then 100 bytes long) to get transfered. Something is obviously getting hung up somewhere.
    Checking deeper we can confirm that there is indeed a hang in the connection object. However, we don't know what to do about it.
    The device we are working with has a maximum of 2 concurrent connections allowed, and we currently use both already (one for incoming, one for outgoing). We can't just open another connection and wait for the stalled connection to timeout.
    Is there any way we can force a connection to just STOP whatever its doing? It is not our method that is caught in a loop. Its most definatly something in the connection class. Will setting the connection in question to null then forcing a garbage collection cause it to stop whatever it is doing, allowing us to open a new connection and re-attempt the data transfer with the server?
    Not sure if this makes it a little more clear.
    Any help would be greatly appreciated.
    -Ben Mattes

  • How to use pointerPressed() in j2me app running in Windows mobile

    Hi
    Can someone tell me how to add pointerPressed() support in command area(the bottom rectangle enclosiing the keyboard icon) in windows mobile.
    Our J2ME app is running in windows mobile(5.0) however even after setting fullscreen mode to true,pointerPressed() does not work on the bottom area of the screen where the keyboard icon is.It however works on all other screen region.
    Thanks in advance.
    Abhishek

    so are you saying that pointerpressed doesnt work after setting Setfullscreen mode?

  • Wireless connection speed for J2ME app on Palm VIIx device

    I have just developed a J2ME app on Palm VIIx device. Everything works exactly as what I have designed, except that the wireless communication to send and receive infomation is painfully slow. It takes about 1 min. to send and receive 300 charactors on the Palm VIIx device. As for comparisons, it only takes few seconds on the simulator(connected through LAN/WAN) for the same application. And for other defaultly installed non-J2ME wireless applications on the Palm VIIx device, e.x., ABC News, Amazon, etc., it also only takes few seconds to retrieve 500~600 characters.
    Does anybody know why the J2ME wireless communication on Palm VIIx device is so slow? Any solutions?
    My code is like in the following:
    private String getWirelessQueryResult(String urlStr) {
    StringBuffer sb = new StringBuffer();
    InputStream is = null;
    StreamConnection c = null;
    try {
    c = (StreamConnection)connector.open
    (urlStr,Connector.READ_WRITE);
    is = c.openInputStream();
    int ch;
    while((ch = is.read()) != -1) {
    sb.append((char)ch);
    } catch (IOException e) { sb = new StringBuffer("error"); }
    finally {
    try
    if(is != null) { is.close(); }
    if(c != null) { c.close();}
    catch (IOException e) {}
    return sb.toString();

    You've done nothing wrong with your code that I can see. I have run into the same problem on both the Kyocera and the Samsung palm OS phones. If you take the same code you have written here and put it on a motorola phone you will see a huge difference.
    I can only suspect it has to do with the single threaded nature of the palm OS itself. Luck.

  • Problems to upload an j2me app  to Motorola c650

    Hi everybody!!
    I m using the software Midway (v2.8) to upload an j2me app to the celular device (an Motorola c650). I upload an app generated with the wireless toolkit, and it uploads ok... but when i try to upload any j2me app generated with netbeansMobilityPack to the device, it shows this message:
    "Failed
    Invalid Document"
    I dont know why it uploads ok, an j2me app generated with wireless toolkit, and why it can't upload any j2me app generated with the netbeansMobilityPack ... any ideas or suggestions? PLS HeLp
    Thanks
    Bye bye

    Hi..
    I am loading a .png file in this way
    Image shipImage=Image.createImage ("/ship.png");
    take care of the "/". I put the .png file in the class directory nad everything work fine.

  • How to print directly to printer using USB and Bluetooth from Java (J2ME) app.

    I write mobile phone apps in Java (J2ME). I want to print directly to a printer via USB and via Bluetooth. I cannot use a print job with the Java available to me. Once upon a time you could just send text and print control characters to a printer. I would like to be able to do that again. Alternatively could you provide a 'skeleton' data stream into which I could insert my code to produce what is sent to the printer when a print job is used with Java on a laptop or PC. I just want to sent simple text with a little formatting. 

    Hi,
    As far as printing to devices not all devices support Bluetooth. Many devices support Bonjour protocal, IPP. The main print port is 9100. Additionally you can see what IO protocols are supported on a product by looking at the EWS (Embedded WebServer) there should be a networking page with that information.  Port 9100 is your basic print port and different devices will support different formats (PDF, JPEG, PCL5, PCL6). If there is an API you can find (i am not familiar with J2ME availible calls, then you can use those and send the data to port 9100. Again that is the basic path most printers will accept. not all devices support bonjour not all device support bluetooth etc... Hope that helps and good luck.
    I am an HP Employee.

  • Best practice tunning parameters for tunning ADF apps?

    Hi all,
    I am tuning our 11g ADF app for around 3 billions (can be up to 10 billions records) and the concurrent connections up to 100. The app is running on a 16 core Intel chip and 8GB of RAM. The Weblogic used Rockit JDK. Any one have this experience please share and help me! I am considering what is the top ten crucial parameters for this tuning. Up to now I just have tunned some parameters from OS layer to app layers:
    - indexing for queries
    - open cursors, processes and pga memory
    - share pool for app module and jdbc pooling.
    - heap size of JVM memory only max value 1024 because of 32 bit Windows (Perhaps I must upgrade to 64 bit OSs to use more memory)
    The app was tested with Jmeter with only 10 concurrent connection and the test case is logging in and query and logging out. It ran very slow. I found out that the weblogic server did not use CPUs equally (only 1-2 CPus were used)
    Thank you and best regards.
    Elton Son.

    Hi,
    maybe this of interest:
    http://download.oracle.com/docs/cd/E12839_01/web.1111/e13814/toc.htm
    http://download.oracle.com/docs/cd/E15523_01/core.1111/e10108/adf.htm#CIHHGADG
    http://www.oracle.com/technetwork/articles/systems-hardware-architecture/tuning-adf-t-series-168445.pdf
    http://andrejusb.blogspot.com/2009/08/oracle-adf-tuning-preventing-sql-query.html
    Frank

  • Support J2Me app for multiple language

    Hi,
    Does any one know how to support multiple language in J2ME application?
    Like I have the text box in my app, and I have set the language to German, it should display German characters in the text box ?
    Thanks

    Hi,
    Searching encoding schemes for displaying different lanugae characters would help you.
    Regards,
    Omar Rehman

  • Why a J2ME App dosen`t work similar on all mobiles?

    Hi there!
    I`ve an app that it simulates a mobile shoping center that shopers are register to it and them`s products will shown in them`s list.
    People register too and select them`s favorite and finish, it sends SMS to SMS center and report to sellers that "you have new request"
    It works corectly but not always!!!
    I have a Motorola L6 that works succesfully, but my manager has a Sumsung X700 that dont work, in additional sometimes it dont install and many cooperator`s phones deny to accept an install jar file...!
    Could you help me pls?
    likefull!

    Tahnk you dear MAGIC
    I found that his phone dont suports WMA.
    You know I`m flying and taking off cause of happyness!!
    Thank you again and thank SDN Forum, best forum, #1 forum.
    I registered to more than 14 forum that all of them`s subject was J2ME but only SDN`s leaders response me!
    I love you SUN.
    I`m a VB & C#.net programmer but when i feel Hibernate, Ajax and most important J2ME , never think about MS`s Programming language ! I`m a JAVAer now.
    regards.
    Message was edited by:
    Honey

Maybe you are looking for

  • BAPI_SALESORDER_CREATEFROMDAT2 with reference to a contract item

    Hi all, i'm having troubles creating an order with reference to a contract item on item level. My order is created and also a reference to the contract item is created on item level, but no conditiions are copied from the contract item (no conditions

  • Why am i getting the itunes has stopped working message on my windos 7 laptop?

    I just installed the latest itunes version on my new laptop running windows 7 professional.  The installation goes fine.  I can open itunes and even log into my account, but as soon as I click on the itunes store button, it looks like it's loading on

  • Problem in fch5

    Problem in fch5. at time of manual check creation i got one error this document is not a payment document . can any help me Edited by: anjaneyulu.N on Feb 16, 2011 6:05 PM

  • Deleting or omitting Special characters in PI mapping

    Hello ,     My scenario is , SAP ECC to legacy , ie. IDOC --> XI/PI -BPM --> Legacy(XML) ,   here in Idoc we have a field which gives has a special character '§'  which I need to remove this before it goes out from PI. how to handle this , Is there a

  • Using xmlgen in a trigger -HELP

    We are trying to use xmlgen in a trigger, actually a insteadOf on a view but that is really secondary. The problem we have is that xmlgen doesnt seem to work from a trigger or any other background process. There is no reall erro messgae it just fails