Search Result

Collapse
19 results in 0.0044 seconds.
Keywords
Members
Tags
j2me
  •  

  • How do I display an xhtml file stored on the memory card using platformRequest?

    I want to display an xhtml file called Test.xhtml using PlatformRequest in J2me. I do not know the exact format of the file since it is on mobile phones ..Hpwever I implemented the following code but without much improvement .. It gives me an error local app invalid ..The file is stored in the Memory card E > My Apps>CMS>Test.x html..

    Code:
    this.platformRequest("localapp://gallery/show?folder=E:/My Apps/CMS/Test.xhtml");
    ...
    See more | Go to post

  • What is the best way to kill a thread in a Timer?

    What is the best way to kill a thread in a timer such that every time the timer runs, it kills the previous thread before starting a new one?

    Code:
    public class MapTimer extends TimerTask{
    
    public void run() {
    
    
            try {
    
                connected = startConnection();
                sendMessage(this.message);
                System.out.println("Sending message111
    ...
    See more | Go to post

  • phpuser123
    started a topic How do I send a message to a bluetooth device?
    in Java

    How do I send a message to a bluetooth device?

    Using the bluetooth API in j2me, I want to send a message to another mobile phone. I have been able to discover devices and services on the corresponding devices. I have also been able to connect to the services however when I try to send a message from the server to the client. The message is written but the client does not seem to receive it ..

    Code:
    public void startServer() throws IOException { UUID uuid = new UUID("1101", false);
    ...
    See more | Go to post
    Last edited by Meetee; Apr 6 '11, 06:16 AM. Reason: missing code tags

  • Has anyone ever faced any prob connect to a bluetooth service using j2me?

    I 've been trying to connect to a bluetooth service using j2me but I am getting a null exception..The client is able to identify devices in the nearby regions but not being able to connect to their service.I am pasting my codes and would be highly obliged if any1 could tell me the reason and if the codes are correct..

    Code:
    //Server
    public  void startServer() {
    
    		System.out.println("server is running...");
    ...
    See more | Go to post

  • Why the command button is not being displayed in my emulator?

    I have already added 5 cammands in a form and I want to add a sixth but It does not display the sixth?

    I am posting my codes below.

    Code:
     public Command getOk_Lastjourney() {
            if (Ok_Lastjourney == null) {
                // write pre-init user code here
                Ok_Lastjourney = new Command("Last Journey", Command.OK, 0);
                // write post-init user code here
    ...
    See more | Go to post

  • phpuser123
    started a topic How do I get the image to load ?
    in Java

    How do I get the image to load ?

    The codes below send a request to server and the server sends a response back. Then, the client formats the request and makes it a url that it loads on imageitem. This works fine using the emulator but as I deploy it on my mob, It is able to retrieve the string from my server but as it tries to load the image, it says NegativeArrayEx ception.

    Note:1. I have web already activated on my mob
    2. When I use a static url, it works...
    See more | Go to post
    Last edited by Niheel; Feb 26 '11, 06:01 PM. Reason: gotta close the code tags with [/close]

  • Why the length of image array differs url is static string or returned from a funct?

    Code:
    public void run() {
            try {
                System.out.println("Sending message...");
                stringItem.setText(stringItem.getText() + "1");
                sendMessage("Query,map,$,start,211,Arsenal,!");
               stringItem.setText(stringItem.getText() + "2");
                String unformattedurl = receiveMessage();
                stringItem.setText(stringItem.getText()
    ...
    See more | Go to post

  • phpuser123
    started a topic Why the app gives receive failed message?
    in Java

    Why the app gives receive failed message?

    I am running an app that sends a query to a server and the server returns a string query back. Using the received query, the client formats the string and converts it to URL. Then, loads a map using this url. However, after client receives the string query and formats it, it displays receive failed ..
    Why is it giving this msg?

    Code:
    public void run() {
            try {
                System.out.println("Sending
    ...
    See more | Go to post

  • phpuser123
    started a topic What do I need to use a Google map in J2ME?
    in Java

    What do I need to use a Google map in J2ME?

    What do I need to use a Google map in J2ME?
    See more | Go to post

  • phpuser123
    started a topic What does the 7-Error in HTTP connection mean?
    in Java

    What does the 7-Error in HTTP connection mean?

    I am getting 7-Error in HTTP connection message while trying to connect to the web usig j2me?
    What does it mean?
    See more | Go to post

  • blacktiger
    started a topic play mp3 file j2me
    in Java

    play mp3 file j2me

    hi guys, i want to know how to play a single mp3 file in my program not from the server,but form the local memory stick files, i want some clear details how to give the path for emulator in pc and how to give path in mobile please help me thanks in advance
    See more | Go to post

  • Why my phone gets "You have no message" when I am sending another message string ?

    I am trying to send a message from 1 phone to another and came up with the following codes ..


    Code:
    Main class::
    
    public void commandAction(Command command, Displayable displayable)
    {        
            if (displayable == form1) {
    
                if (command == cancelCommand) {               
    
     exitMIDlet();
                    
                } else if (command == okCommand) {
    ...
    See more | Go to post
    Last edited by Niheel; Dec 21 '10, 07:44 AM. Reason: please use code tags, you've been a member long enough to understand our posting guidelines.

  • phpuser123
    started a topic Can I connect to a computer using J2me?
    in Java

    Can I connect to a computer using J2me?

    I want to connect to a computer using its IP address.. I want to use J2ME to achieve that..
    I investigated a bit and came up with Connector.open( url), however, I also found out that mobile phones have a private IP address..Then, is it possible for me to connect to a computer using its IP address.
    See more | Go to post

  • phpuser123
    started a topic WHy my emulator blocks even when I use thread?
    in Java

    WHy my emulator blocks even when I use thread?

    I am trying some thread tuts in J2me and camee across this code on the Net. Whan I run it, the emulator blocks... What is the use of the thread when the application still blocks...And How do I make this work?

    Code:
    import java.io.IOException;
    
    import javax.microedition.lcdui.Command; import javax.microedition.lcdui.CommandListener; import javax.microedition.lcdui.Display; import javax.microedition.lcdui.Displayable;
    ...
    See more | Go to post

  • phpuser123
    started a topic Why I am receiving null in my output?
    in Java

    Why I am receiving null in my output?

    I want to send a message to my computer from my phone using TCP..My computer is the server and my phone is the client. I am able to send a message from my phone to my computer but in the output, I get null characters ..

    I paste my codes below;;

    Client ::

    Code:
    public void startApp() { try { // establish a socket connection with remote server streamConnection = (StreamConnection) Connector.open(connectString);
    ...
    See more | Go to post
    Last edited by Niheel; Dec 3 '10, 03:02 PM.
Working...