J2me help

Hi
i am new to the j2me tehnology.But i have been working in the j2ee tehnologies for last one year.In my appliacation we want to have mobile features like if any insertion occuerd in our data base we are showing those appoinments in the jsp.But those insertions also we are trying to show in mobile.Whh topic i should prepare?Pls any one help me in this regard or any one pls guide me .

Using GCF (Generic Connection Framework) you can easily do what you want. With GCF in mobile you can send your request to its web counterpart (may be a JSP/Servlet/Bean etc) or an Webservice. When u have the response from the server you have to parse it yourself and show the result using a Canvas or some high-level display.
You can find plenty of tutorials on GCF and also regarding lcdui (the UI) in internet.
Regds,
SD

Similar Messages

  • J2ME Help required (URGENT !!!)

    Hello everyone,
    Well I'm a newbie to this J2ME thing, I am working on a project right now which requires me to develop an application for my mobile phone Sony Ericsson W810i. This application accesses the on board camera and take images after every 1 sec and keep on saving the last 2 images in 2 different files or buffers. Once the images are obtained, Sobel Filter (Image processing) is applied on it for edge detection. Can anyone please help me with this all, I am really desperate and time is running out.
    At the moment, I found this code on Sony Ericsson Developer forums which works perfectly fine with my W810i, the link to the code is as follows,
    http://developer.sonyericsson.com/site/global/techsupport/tipstrickscode/java/p_java_0403.jsp
    Well this takes one image and shows it on the canvas, however I am still trying to figure out a way to remove the question it asks whenever i press the button SNAPSHOT, it asks "Do u want to allow the application to access Camera?", is there a way to remove this as well. Please let me know.
    Last thing, the getSnapshot is used as vc.getSnapshot(null), i read and changed it to vc.getSnapshot("encoding=jpeg");
    This works fine with my mobile as well, but now i cant find any help on how to apply image processing on this encoded jpeg !!! Well please reply, as much as u know, u dun have to answer all the questions, any information regarding this is helpful, I'll be extremely grateful !!!
    Thanks a lot,
    Regards,
    Mubin Khan

    Hi mobeenkhan
    You know, people are helping out voluntarily here. So it always helps to ask nicely. :-)
    This is what you need to know (not really, since you probably won't use it)
    A signed MIDlet may request higher access rights for specific actions by asking for them in the MIDlet-Permissions attribute of the MIDlet’s application descriptor.
    The permission name for audio / video recording is:
    javax.microedition.media.control.RecordControl
    The permission name for camera snapshot is:
    javax.microedition.media.control.VideoControl.getSnapshot
    Try a Google search for "jad permissions midlet media camera".
    And check whether, in your SE W810i, you can set the pernission for camera ( it may be called media access etc.) to 'Ask once per application' or something like that. This will be set from the File Manager (or Application manager, I haven't handled the W810i, only SE I've dealt with is the k700i), not when the app is running.
    If your application isn't digitally signed, you probably won't be able to select a setting like 'Never Ask' -- and a digital signature can be fairly expensive, not something you might want to go for unless you're going to earn something out of marketing your products.
    Be nice to everybody :-)
    Darryl

  • J2ME Help for a Masters Project

    Hi All
    I really need help in relation to J2ME which i am doing for my masters project.I have a web page which resides on my personal web server for windows. I want to connect to this page using J2ME and MIDP. The address of this page is http://localhost/Barry/Query1_1.HTML. This page contains a text box where i enter a number and hit the run query button and this brings me to an asp page with the results from a database displayed.
    Basically all i need to know is how do i connect to this page. I would be really grateful if some kind person would email me at [email protected] with the answer and the code needed.Cheers

    have you tried using java.net.URL?

  • JavaPhone APIs and J2ME help needed lack of information

    Hello all,
    I have been searching now for a while about how to start using the JavaPhone APIs, All the websites i view are older and tho i have code samples of the JavaPhone accessing the Contact database i am lacking documentation on how to set-up this. I have see referance to the PersonalJava Technology 3.1 download however i have downloaded this un-zipped it and have yet worked out how to start building my aplication.
    My second question is that (and sorry if it seems simple) but i am currently building an application with J2ME, which inculde networking, is it possible to also use the JavaPhone API's within this application? from my understand i should beable to import the correct files and away i go but again due to lack of documentation (that i can find) i am unsure how to carry on.
    If anyone can point me in the direction of some websites that might beable to help me i would be very greatful.

    To access Contact information on Mobile Devices you should check if they support JSR-075 PIM Optional Package. This is specifically what this component of JSR-075 was engineered for.
    PIM pim = PIM.getInstance();
    ContactList cl;
    try {
         cl = (ContactList) pim.openPIMList(
              PIM.CONTACT_LIST, PIM.READ_WRITE);
    } catch (Exception e) {
         // security or other exception on open?
    Enumeration contacts = cl.items();
    Bing... all your Contacts

  • J2me HELP MEEEEEE

    I put a file named skin.txt in folder res of wtk22,
    my problem is that i want show this file on display of my phone but i don't know to do it.
    i use this code:
    inputSream is = this.getClass().getResourceAsStream("skin.txt");
    try
    StringBuffer sbn = new StringBuffer();
    int cip ;
    while ((chr=is.read())!=-1)
    sbn.append((char)chr);
    String bc = sbn.toString();
    But don' t see skin on my display
    PLEASE HELP ME!!!!!

    again i'm not sure why you think this is the wrong place for the question. It's a CLDC question... please correct me if i'm wrong about answering this here and not just relinking him to a different forum.
    anyways, the problem is that you need to specify an absolute path for locating your file. the simple solution for you is just that you forgot a slash, so try:
    /** notice the '/' before the file? that means that the file you're looking for
    * is in the root of your jar
    inputSream is = this.getClass().getResourceAsStream("/skin.txt");

  • J2ME HELP ME PLEASE !!!!!!!

    This is my problem:
    i save a file named skin.txt in res directory in my project on wtk22
    this file contains 32768 whole number...
    now i want read it and save all number in an array.
    I CAN'T ABLE TO READ FILE
    PLEASE PLEASE HELP ME!!!!!!

    It's still the wrong forum for that question

  • J2ME Help setLayout

    Hi Imtrying to position an item Gauge at the bottom of my mobile emulator but it moves to the right but doesnt go to the bottom of the screen any advice or help would be appreciated
            this.mForm = new Form( "StartUp" );
            this.mGauge = new Gauge( "Timer", true, 10, 0 );
            this.mGauge.setLayout( Item.LAYOUT_2 | Item.LAYOUT_BOTTOM | Item.LAYOUT_RIGHT);
            this.mForm.append( this.mGauge );

    Moderator action: Thread moved

  • J2ME help needed

    Hello, I have an assignment where I need to create a static application for a hand help device (blackberry)? the question is how do I import / create the background image? Thank you for your help.
    Edited by: rangers27 on Feb 10, 2009 2:00 PM

    [http://www.google.com/search?q=midlet+background+image+example]
    there is a forum for this kind of questions: [http://forums.sun.com/forum.jspa?forumID=76]. You might get better help there!

  • J2ME + message style "rpc/encoding"

    Hi,
    I have a web services with message style "rpc/encoded" and i need consume this web service from a J2ME app. I wrote in the J2ME help that is impossible because it supports the "document/literal" style. How can i call this methods? Is it possible?
    Thanks.
    Bruno

    Rajesh -
    Thanks, that is what I was looking for. Do you know if the sample client
    code follows JAX-RPC? Or is this special API developed for Workshop web
    services?
    Thanks,
    Pat
    "Rajesh Mirchandani" <[email protected]> wrote in message
    news:[email protected]..
    If you look into the test view you will find a link for a java proxy(click the
    "overview" tab and the the "Java Proxy" tab.). If you copy and paste thatcode
    into a java client or a servlet you should be able to invoke the webservice.
    >
    Let me know if you need an example.
    Pat Regan wrote:
    It seems to me that, under the hood, a session bean is always the first
    component called in a Workshop created web service. If this is the
    case,
    then would a Java client always use the JAX-RPC api to call it? Evenfor an
    asynchronous web service? Does anyone have an example Java Client that
    invokes a Workshop created web service?
    Thanks,
    Pat--
    Rajesh Mirchandani
    Developer Relations Engineer
    BEA Support

  • StringTokenizer in J2ME?????

    Hi All,
    I want to know if there is any function in J2ME like StringTokenizer for Java.
    Is there any way to convert a long string into tokens,which can be accessed sequentially.
    Will Vector or any other function in J2ME help.
    Help me out guys,
    Bye,
    Sangram

    Hi
    I tried what you said , but its not working
    I have a java file for stringtokenizer. I tried compiling it in netbeans mobility pack 4.1.But it gives the error as " Cannot find symbol stringtokenizer ".
    So. please can u illustrate more on what u said
    What did u mean by J2SE source?
    Thanks

  • J2me and java card, need help to communicate

    we are trying to put together a reader to read smartcards using j2me and we figure that it would be easiest if we could develop it to work with java cards rather than standard smart cards, the problem is we get garbage when we communicate to it, the chip sends us crap, any suggestions what might be wrong, any calls we might be missing, has anyone worked with j2me and java cards or smart cards, any help would be appreciated.
    einar

    .... reader app and the ME behind it .... smells like mobile ....
    First of all - if you want to have one mobile application running on this just make sure that whatever is written in ME can use drivers from the reader chip ....
    Workin on the PC is something completely different. There was one good example how to develop one host application in Java provided with the JCOP tools long ago ... I don't know if this is now in the new Eclipse tools.
    But - there was a small API provided that can give you good hints what to do - and - once you have it on the reader side - you can easily integrate ME methods with this ...

  • Help needed on J2ME project

    hey,
    i'm trying to built a j2me browser that can access internet from a computer via bluetooth. So does anyone know a decent open source browser where I can modify its default connectivity mode(eg., gprs), so that i can create an interface which helps to connect to a computer through bluetooth and send the web pages back!!

    specifying access point is not at possible in J2ME. Search for GnuBox which was the symbian OS application. It was possible to create bluetooth access point using that software.

  • Need some help with code.. No idea what's wrong! I'm new..(J2ME related)

    Hey there,
    I've just started programming J2ME using Netbeans using the java mobility pack, trying to create a program which interacts with a php webserver..
    I created some code which accessed my php script on my server and returned the contents of the page back, and successfully got it working. However, i did a bit of treaking, and then tried to remove it all.. and now my code won't work. I've been examining it for a good hour and can't seem to find the error! It's annoying me pretty badly.. I'm not liking J2ME already.
    Could someone please look at my code and help me out? I really really want to get this working..
    * VisualMidlet.java
    * Created on 26 October 2007, 19:37
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    * @author Will
    public class VisualMidlet extends MIDlet{
    /** Creates a new instance of VisualMidlet */
    private Display display;
    private Command Submit;
    private Command okCommand2;
    private Command Submit1;
    private Form Form1;
    private StringItem stringItem1;
    String url = "http://people.bath.ac.uk/wal20/testGET.php?type=3";
    public VisualMidlet() {
    System.out.println("initialized");
    display = Display.getDisplay(this);
    Connect();
    public void startApp() {
    public void Connect(){
    try {getViaStreamConnection(url);}
    catch (IOException e) {
    System.out.println("IOException " + e);
    e.printStackTrace();
    public void getViaStreamConnection(String url) throws IOException {
    StreamConnection streamConnection = null; //declares a stream connection
    InputStream inputStream = null; // declares an input Stream
    StringBuffer b = new StringBuffer();
    TextBox textBox = null;
    try {
    System.out.println("Establishing stream");
    streamConnection = (StreamConnection)Connector.open(url);
    System.out.println("Stream established");
    inputStream = streamConnection.openInputStream();
    int ch;
    while((ch = inputStream.read()) != -1) {
    b.append((char) ch);
    textBox = new TextBox("Simple URL Fetch", b.toString(), 1024, 0);
    } finally {
    if(inputStream != null) {
    inputStream.close();
    if(streamConnection != null) {
    streamConnection.close();
    display.setCurrent(textBox);
    public void pauseApp() {   }
    public void destroyApp(boolean unconditional) {  }
    /** This method initializes UI of the application.
    private void initialize() {                     
    getDisplay().setCurrent(get_Form1());
    * This method should return an instance of the display.
    public Display getDisplay() {                        
    return Display.getDisplay(this);
    * This method should exit the midlet.
    public void exitMIDlet() {                        
    getDisplay().setCurrent(null);
    destroyApp(true);
    notifyDestroyed();
    /** This method returns instance for Submit component and should be called instead of accessing Submit field directly.
    * @return Instance for Submit component
    public Command get_Submit() {
    if (Submit == null) {                     
    // Insert pre-init code here
    Submit = new Command("Submit", Command.OK, 1);
    // Insert post-init code here
    return Submit;
    /** This method returns instance for okCommand2 component and should be called instead of accessing okCommand2 field directly.
    * @return Instance for okCommand2 component
    public Command get_okCommand2() {
    if (okCommand2 == null) {                     
    // Insert pre-init code here
    okCommand2 = new Command("Ok", Command.OK, 1);
    // Insert post-init code here
    return okCommand2;
    /** This method returns instance for Submit1 component and should be called instead of accessing Submit1 field directly.
    * @return Instance for Submit1 component
    public Command get_Submit1() {
    if (Submit1 == null) {                      
    // Insert pre-init code here
    Submit1 = new Command("Submit", Command.OK, 1);
    // Insert post-init code here
    return Submit1;
    /** This method returns instance for Form1 component and should be called instead of accessing Form1 field directly.
    * @return Instance for Form1 component
    public Form get_Form1() {
    if (Form1 == null) {                     
    // Insert pre-init code here
    Form1 = new Form(null, new Item[] {get_stringItem1()});
    // Insert post-init code here
    return Form1;
    /** This method returns instance for stringItem1 component and should be called instead of accessing stringItem1 field directly.
    * @return Instance for stringItem1 component
    the code for the php script is:
    <?php
    $response = "Hello";
    if (isset($_GET)) {
    switch ($_GET["type"]) {
    case 1: $response = "Good Morning"; break;
    case 2: $response = "Good Afternoon"; break;
    case 3: $response = "Good Evening"; break;
    default: $response = "Hello"; break;
    echo $response;
    ?>
    I would be grateful for any reply
    Thank you in advance
    -Will

    sorry! i'll repost the code in code format
    * VisualMidlet.java
    * Created on 26 October 2007, 19:37
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    * @author Will
    public class VisualMidlet extends MIDlet{
    /** Creates a new instance of VisualMidlet */
    private Display display;
    private Command Submit;
    private Command okCommand2;
    private Command Submit1;
    private Form Form1;
    private StringItem stringItem1;
    String url = "http://people.bath.ac.uk/wal20/testGET.php?type=3";
    public VisualMidlet() {
    System.out.println("initialized");
    display = Display.getDisplay(this);
    Connect();
    public void startApp() {
    public void Connect(){
    try {getViaStreamConnection(url);}
    catch (IOException e) {
    System.out.println("IOException " + e);
    e.printStackTrace();
    public void getViaStreamConnection(String url) throws IOException {
    StreamConnection streamConnection = null; //declares a stream connection
    InputStream inputStream = null; // declares an input Stream
    StringBuffer b = new StringBuffer();
    TextBox textBox = null;
    try {
    System.out.println("Establishing stream");
    streamConnection = (StreamConnection)Connector.open(url);
    System.out.println("Stream established");
    inputStream = streamConnection.openInputStream();
    int ch;
    while((ch = inputStream.read()) != -1) {
    b.append((char) ch);
    textBox = new TextBox("Simple URL Fetch", b.toString(), 1024, 0);
    } finally {
    if(inputStream != null) {
    inputStream.close();
    if(streamConnection != null) {
    streamConnection.close();
    display.setCurrent(textBox);
    public void pauseApp() { }
    public void destroyApp(boolean unconditional) { }
    /** This method initializes UI of the application.
    private void initialize() {
    getDisplay().setCurrent(get_Form1());
    * This method should return an instance of the display.
    public Display getDisplay() {
    return Display.getDisplay(this);
    * This method should exit the midlet.
    public void exitMIDlet() {
    getDisplay().setCurrent(null);
    destroyApp(true);
    notifyDestroyed();
    /** This method returns instance for Submit component and should be called instead of accessing Submit field directly.
    * @return Instance for Submit component
    public Command get_Submit() {
    if (Submit == null) {
    // Insert pre-init code here
    Submit = new Command("Submit", Command.OK, 1);
    // Insert post-init code here
    return Submit;
    /** This method returns instance for okCommand2 component and should be called instead of accessing okCommand2 field directly.
    * @return Instance for okCommand2 component
    public Command get_okCommand2() {
    if (okCommand2 == null) {
    // Insert pre-init code here
    okCommand2 = new Command("Ok", Command.OK, 1);
    // Insert post-init code here
    return okCommand2;
    /** This method returns instance for Submit1 component and should be called instead of accessing Submit1 field directly.
    * @return Instance for Submit1 component
    public Command get_Submit1() {
    if (Submit1 == null) {
    // Insert pre-init code here
    Submit1 = new Command("Submit", Command.OK, 1);
    // Insert post-init code here
    return Submit1;
    /** This method returns instance for Form1 component and should be called instead of accessing Form1 field directly.
    * @return Instance for Form1 component
    public Form get_Form1() {
    if (Form1 == null) {
    // Insert pre-init code here
    Form1 = new Form(null, new Item[] {get_stringItem1()});
    // Insert post-init code here
    return Form1;
    /** This method returns instance for stringItem1 component and should be called instead of accessing stringItem1 field directly.
    * @return Instance for stringItem1 component
    }

  • Help: forcing use of proxy in j2me and getting value of gateway IP address

    hi everyone,
    #1
    Has anyone tried forcing the use of a proxy for a midlet? If so how did you do this? I was able to connect to a url through the emulator (ktoolbar) by changing the proxy settings under the edit-->preferences on ktoolbar but I want to make sure that my midlet enforces the use of a proxy to connect to a http url (so that I'll know it still uses the proxy even if it is already using a real java-enabled phone).
    somebody suggested to me to take a look at http://java.sun.com/j2me/docs/html/docs/Running.html
    I've tried the instructions from the url but it seems like its just the configuration you run when you test it in your emulator. Similar to changing the preferences on ktoolbar to use a proxy.
    This is what I did:
    I tried changing the config to a working proxy, compiled my midlet, download it into my java-enabled phone and tested if it can connect to a backend server. The result: I was able to get a reply from the backend, however, when I changed the configuration to a non-working proxy, I still get a reply from the backend server. This leads me to believe that the midlet uses the current internet connection profile on the phone.
    If this is the case, then that means I am dependent on the phone settings and I could not change/force the midlet to use the current connection with a proxy server I defined. I've searched the internet and have seen sample codes to use proxy servers when connecting to the intenet but they are not for j2me applications (so far). Is this a limitation of j2me? maybe there is really no way to connect using a proxy defined in an application since there is no api for it? Correct me if I'm wrong though. Is there a workaround for this?
    #2
    Another problem that I am trying to solve is to get the value of the gateway IP address defined on the phone when it connects to the internet. Is this possible? If so, how?
    Any ideas will be very much appreciated. thanks to all.
    -jess

    hi,
    does anyone have an answer to this? hope you can help. thanks again.

  • 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.

Maybe you are looking for

  • Install 2.2 issues

    Before installing 2.2, my iPhone had become very unstable-- crashing frequently, including the phone OS and both Apple and 3rd party apps crashing frequently. So, I figured upgrading to 2.2 might be an improvement. Upon connecting my iPhone to my com

  • File adapter

    Can we use File adapter to connect to SAP Server to read or write the files to SAP Server Kris

  • Final Rebate Settlement - Error

    Hi, When doing final rebate settlement, via RBT_ENH_VB7, it is saying "No condition record found for rebate agreement". But we are able to do partial settlement. What does it mean?

  • Physical Data Service to Oracle Stored Procedure Package

    i'm calling a package with the following signature: PROCEDURE QUERY_ENTITY (      P_TABLE_NAME      IN      VARCHAR2, P_ENTITY_ID      IN      NUMBER, P_USER           IN      VARCHAR2, P_RECORDSET      OUT      CNODB_ENTITY_PKG.C_ENTITY); When defin

  • Spatial Insert Performance

    I'm running 9.2.0.3EE on W2K. Ran some simple performance tests... With a simple non-spatial table (id, lat, lon), I can get inserts up around 12,000 records per second. I setup a similar table for use with spatial: CREATE TABLE test2 ( id number not