Running on emulator or on phone?

Is there any way that I can determine If my application is running on the emulator or on an actual phone?

Is there any way that I can determine If my application is running on
the emulator or on an actual phone? Well, i'm not exactly clear about the question, still i hope this helps you.
Emulator is just a simulation..........application may work fine and according to the requirement on the emulator however that doesn't say that it will work good on the phones. You should always test your application with the phones too.

Similar Messages

  • How can I get Firefox to run KIOSK mode on Android phone? I am trying to use rKiosk but have not been successfull. I'm running 10.0.3 on the phone.

    How can I get Firefox to run KIOSK mode on Android phone? I am trying to use rKiosk but have not been successfull. I'm running 10.0.3 on the phone.

    Found an app to lock down the phone. SUREFOX!!!

  • Wrong ELF class error when trying to run the emulator

    Hello, I've downloaded and installed both the JDK 6 Update 2 (Linux 64) and WTK 2.5.1 as described in the website and everything seems to be fine. However, whenever I try to run an examples, I get the following error:
    java.lang.UnsatisfiedLinkError: /home/myuser/WTK2.5.1/bin/sublime.so: /home/myuser/WTK2.5.1/bin/sublime.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
         at java.lang.Runtime.load0(Runtime.java:770)
         at java.lang.System.load(System.java:1005)
         at com.sun.kvem.Sublime.<init>(Unknown Source)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at java.lang.Class.newInstance0(Class.java:355)
         at java.lang.Class.newInstance(Class.java:308)
         at com.sun.kvem.Lime.createLime(Unknown Source)
         at com.sun.kvem.KVMBridge.<init>(Unknown Source)
         at com.sun.kvem.KVMBridge.getBridge(Unknown Source)
         at com.sun.kvem.midp.MIDP.run(Unknown Source)
         at com.sun.kvem.environment.EmulatorInvoker.runEmulatorImpl(Unknown Source)
         at com.sun.kvem.environment.EmulatorInvoker.main(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.kvem.environment.JVM.main(Unknown Source)
    I'm running Fedora 7 x86_64
    My Java environment is:
    java version "1.6.0_02"
    Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
    Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_02-b05, mixed mode)
    My jre is a 64-bit version but the ktoolbar seems to be compatible with 32-bit versions only. is there a way to fix this?
    Any help is appreciated.

    Hi there,
    I'm having the same problem when running the emulator. I've tried changing the emulator file as suggested but have had no luck! I'm using Ubuntu and the java version im using is
    java version "1.6.0_03"
    Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
    Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)
    I have the latest version of the WTK also. The error message I get is
    ava.lang.UnsatisfiedLinkError: /home/john/Progs/WTK2.5.2/bin/sublime.so: /home/john/Progs/WTK2.5.2/bin/sublime.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
         at java.lang.Runtime.load0(Runtime.java:770)
         at java.lang.System.load(System.java:1005)
         at com.sun.kvem.Sublime.<init>(Unknown Source)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at java.lang.Class.newInstance0(Class.java:355)
         at java.lang.Class.newInstance(Class.java:308)
         at com.sun.kvem.Lime.createLime(Unknown Source)
         at com.sun.kvem.KVMBridge.<init>(Unknown Source)
         at com.sun.kvem.KVMBridge.getBridge(Unknown Source)
         at com.sun.kvem.midp.MIDP.run(Unknown Source)
         at com.sun.kvem.environment.EmulatorInvoker.runEmulatorImpl(Unknown Source)
         at com.sun.kvem.environment.EmulatorInvoker.main(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.kvem.environment.JVM.main(Unknown Source)
    Any help with this would be much appreciated!
    John

  • Can I run the emulator in -Xautotest mode with an external API?

    Hello,
    I am currently creating an implementation to a JSR and I want to test the implementation with the test harness.
    I start the harness and then the test agent. I want to start the agent in autotest mode, using the -Xautotest switch, like this:
    emulator.exe -Xautotest:http://localhost:8080/test/getNextApp.jad
    This will download the test JAD and JAR and run them.
    The problem is this: When running, my class path must also contain my JSR implementation (the implementation I am testing). But the JSR implementation is not part of the downloaded JAR.
    Is there any way I can run the emulator in autotest mode, and have an external API in the classpath? The classpath should contain both the downloaded JAR and my JSR implementation JAR.
    Any help with this would be greatly appreciated!

    Hello,
    I am currently creating an implementation to a JSR and I want to test the implementation with the test harness.
    I start the harness and then the test agent. I want to start the agent in autotest mode, using the -Xautotest switch, like this:
    emulator.exe -Xautotest:http://localhost:8080/test/getNextApp.jad
    This will download the test JAD and JAR and run them.
    The problem is this: When running, my class path must also contain my JSR implementation (the implementation I am testing). But the JSR implementation is not part of the downloaded JAR.
    Is there any way I can run the emulator in autotest mode, and have an external API in the classpath? The classpath should contain both the downloaded JAR and my JSR implementation JAR.
    Any help with this would be greatly appreciated!

  • My source code compiled on Emulator works, on Phone doesnt

    Hello, Im using mpp sdk to compile and emulate java code. It works fine but when I download it to my phone, it doesnt work.
    Im sure the problem is somthing in the code that my doesnt support that the emulator does, I just dont know what it is.
    My phone is a sony ericsson k500i but Im hoping that this code will work on any phone with a jvm.
    The code is here
    http://www.geocities.com/ed72678954/Life.java
    http://www.geocities.com/ed72678954/LifeCanvas.java
    Thanks very much...

    I am having a similar problem with my program working on the emulator but not on the phone. I did the example:
    Wireless Development Tutorial Part 1
    (http://developers.sun.com/techtopics/mobility/midp/articles/wtoolkit/)
    I have java sdk: 1.5.... on my windows xp home box and am trying to run the program on my Cingular 2125
    The example builds and then works well on the emulator however when I transfer the jad and jar to my cingular 2125 I get back:
    Error
    Invalid Java archive (jar)
    I am new to playing with this and so am up three without a paddle any help would be appreciated.
    thanks,
    Stephen

  • Running midlets on a cell phone

    Hi all
    How do I run my MIDlet on my cell phone? The app works fine on the emulator. I sent the .jar file of my application to my cellphone via IR but my phone keeps displaying it as an invalid app and it doesn't run. Am I doing something wrong?

    Hi !
    now I can specify:
    # 1 - your local folder ------ where you put your .class ( or your packages ) and everything else needed by the midlet ( images ... ) ------ must contain empy folder "META-INF" where the jar construction puts its "MANIFEST.MF" file taken from your original jad file:
    original jad file ( put in a different folder ):
    MIDlet-1: MidletCamera, /res/images/Midlet.png, MainCamera
    MIDlet-Name: MidletCamera
    MIDlet-Vendor: Xxxxxxxxxx
    MIDlet-Version: 1.0
    MicroEdition-Configuration: CLDC-1.1
    MicroEdition-Profile: MIDP-2.0
    MANIFEST.MF file written by program jar in the folder META-INF, so included in the output MidletCamera.jar:
    Manifest-Version: 1.0
    MicroEdition-Configuration: CLDC-1.1
    MIDlet-Name: MidletCamera
    Created-By: 1.4.2_05 (Sun Microsystems Inc.)
    MIDlet-Vendor: Xxxxxxxxxx
    MIDlet-1: MidletCamera, /res/images/Midlet.png, MainCamera
    MIDlet-Version: 1.0
    MicroEdition-Profile: MIDP-2.0
    # 2 - the ( MidletCamera ).jar must be in ( or moved to ) the folder from which you choose ( left panel ) using Nokia PC Suite and that is all PC Suite needs in order to install the midlet on the phone.
    I hope this is clear and that helps solve your problems. Carlo

  • Black screen when running MIDlets on a real phone (motorola V330)

    Hello.
    I'm developing a simple Java ME application as a part of my senior project in college. Up until this point I've been working with emulators and everything works fine. Yesterday I tried to upload and test my application on my old phone - Motorola V330 (CLDC 1.0 MIDP 2.0).
    I can upload and install MIDlets without problems. (Using unlocked application loader and a USB cable). When I try to start them, the screen goes black and stays black. If I hit the "exit" softbutton or the red power button, I can see my application for a split second before the program exits. For example if I try to run a game, I see the game screen for a split second, if I try to run a form, I see that form. That tells me that the application can start, but I dont know why I get a black screen.
    I tried that with a bunch of applications, even for a simple form with "hello world" on it, the screen goes black.
    I also tried some games from SUN examples and I have the same problem.
    Anybody can give me any hints on how to solve the problem? Could this be the phone issue or is it some sort of security certificate issue?
    I tried googling the issue and searching these boards but I cant find any concrete solutions.
    PS. The phone is old and is no longer connected to the network, but it still has a sim card.

    Yeah, it's CLDC1.0 and MIDP 2.0.
    I've looked at the phone again and found out that in "Java settings" menu the "backlight" option was turned off by default. Turning it on allows me to see my java apps. So the problem is solved.
    When I had similar problems with my laptop (black screen, barely visible text) it took me a ridiculous amount of time to talk to technicians over the phone and try to explain to them what I'm seeing. Apparently the problem was the same - the backlight on my laptop's display was malfunctioning. I hope this info will help some of you or at least will help you googling stuff if you ever encounter the same problem.

  • Display of Custom Item in Emulator and Nokia Phone are different

    I'm creating a Custom Item which will either display text or image depending on the parameter. I tried with both displaying of text and image on the emulator and it looks reasonably well. However, when i install in my Nokia 6210, the display is not the same. The longer text (more than 30 characters including space) appears to be truncated as the Nokia 6210's screen width seems to be smaller. Then, i increased the minimum height in my code and break the texts to 2 lines to be displayed. Again, it's displayed well in the emulator but on the phone, the 2 lines of texts are overlapping.
    For image, i can position the image by changing the anchor of the image and x & y in g.drawImage. Again, it's displayed correctly on the emulator but it's not well aligned on the phone and the image looks to be smaller with the background rectangle of the Custom Item.
    What i want to achieve is to display the texts or image well aligned horizontally and vertically in various J2ME devices. Can anyone give me some clues like what parameters to change or to take note?
    Below are my code:
    import javax.microedition.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    public class BCItem extends CustomItem implements ItemCommandListener {
        private MyMidlet midlet;
        private String linkURL;
        private boolean isText;
        private String bannerText;
        private Image image;
        private final static Command CMD_OK = new Command("Visit Ads", Command.ITEM, 1);
        private String [] displayText;
        private String displayTextPart;
        private int displayableWidth;
        public BCItem (String title, MyMidlet midlet, String linkURL, boolean isText, String bannerText, Image image) {
            super(title);
            this.midlet = midlet;
            this.linkURL = linkURL;
            this.isText = isText;
            this.bannerText = bannerText;
            this.image = image;
            displayableWidth = midlet.getWidth();    
            setDefaultCommand(CMD_OK);
            setItemCommandListener(this);
         public int getMinContentWidth(){
        return 240;
      public int getMinContentHeight(){
        return 20;
      public int getPrefContentWidth(int width){
        return displayableWidth;
      public int getPrefContentHeight(int height){
        return getMinContentHeight();
      public void paint(Graphics g, int w, int h){
          if (isText) {
              g.setColor(0x000000);
              g.setFont(Font.getFont(Font.FACE_MONOSPACE, Font.STYLE_UNDERLINED, Font.SIZE_SMALL));
                g.drawString(bannerText,1, 1,
                       Graphics.LEFT| Graphics.TOP);
          else {
               try {
                g.drawImage(image, getMinContentWidth()/2 + 20, 1, Graphics.RIGHT| Graphics.TOP  );
            catch (Exception e) {
                e.printStackTrace();
      public void commandAction(Command c, Item i) {
          if (c == CMD_OK) {
              try {
                  System.out.println(linkURL + " visited");
                  if (midlet.platformRequest(linkURL)) {
                      System.out.println(linkURL + " visited");
              catch (Exception e) {
                  e.printStackTrace();
    }

    This forum isn't the complaints department, it's a place where users help each other. Obviously a fellow user cannot help you to resolve this.
    What you need to do is call nokia care in India and ask for the official complaints address. You will then need to write a polite letter (not an email) detailing your issues. They will respond to you and try to resolve the situation.

  • Is there a Firefox Mobile version that will run on Windows 6.5 phones?

    I am using a Samsung Omnia II (SCH i920). Is there a Firefox Mobile program that will run on my phone. It is a Windows 6.5 device.

    Sorry, Mozilla stopped development on the Windows CE OS platform almost a year ago, and has no current plans to pick it up again.

  • Program works in emulator, minimized on phone

    Any ideas?
    It works fine in the midp emulator (of the J2ME Wireless Toolkit), but on my phone (SonyEricsson K750i) it minimizes as soon as I start it. If I try to maximize it, it minimizes itself again, etc.
    Quite a lot of source code so posting wouldn't be a good idea, but does anyone have any idea what might cause it? If so I could post a few parts of the source.

    Nevermind, I solved it... I don't get why it worked in the emulator though!
         protected void startApp()
              display.setCurrent(mainMenu);
    //          display.setCurrent(fForm);
         }I have no idea why I had that second line there, but it caused lots of trouble ;)

  • Run two Skype accounts, same phone

    How can I run two Skype accounts on the same Android phone?

    In order to use 2 Skype accounts on the same phone, you need to switch between accounts back and forth by signing out of one and signing into the other. 
    To do that, press on the phone menu button while you are in Skype page then choose Sign Out from the menu that will appear. You will be directed to the sign in screen. Enter the other username and password

  • Running PC Emulator on Tiger

    I am a bead designer who can not find bead designing software for Mac's. So I am looking at a PC program which I have been told may be accessed by using an PC emulator. The one I am looking at is iEmulator 1.7.8 (http://www.iemulator.com/) to be used to access the Bead Cellar software (http://www.beadcellar.com/tbcpd.asp). iEmulator says it works with Windows 98, Me, Windown NT & 2000 and Windows XP, as does the Bead Cellar software.
    I had never heard of a PC emulator software until yesterday so I am a bit leary. Is there anything I should be aware of. My Mac is running very smoothly right now, can a PC emulator program cause problems?
    Any help or advice would be greatly appreciated

    Hi, B.E.
    Most folks that need to run PC / Windows software on Mac OS X use Microsoft Virtual PC for Mac. More expensive than iEmulator, but probably more widely used.
    PC emulators can cause issues. Sometimes your PC app doesn't like the emulator because the emulator isn't well-written. Sometimes the emulators can cause other problems: they're programs, emulating a complex bit of hardware, i.e. an PC processor chip. Running PC apps in an emulator won't give you the same performance as running the PC app on a PC. Since they let you run Windows, you're then generally exposed to the same security problems as Windows.
    To see if there's a Mac app that will meet your needs instead of running the PC app under an emulator, search MacUpdate or Version Tracker. The user-submitted reviews accompanying the listings are helpful in sorting the wheat from the chaff.
    If there's no Mac app that does what you want, then using Virtual PC and your PC app would be my advice: VPC has good support and is widely used.
    The MacWindows site has several reports on different versions of Virtual PC which you might find helpful. See the list of these under "Emulators" in the right margin. The current version of Virtual PC is VPC 7.x, so you may want to review the MacWindows Virtual PC 7 Report. They also have a report on alternatives to VPC, including a few Reader Reports on iEmulator.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Emulator for mobile phone

    Hi all,
    I am new in working with mobile phones.
    I want to develop emulator which will communicate with mobile phones connected to PC using data cable.
    This connection would be a two-way connection and any change in either cell phone or GUI of emulator should be reflected in other component.
    Please let me know how to go for this.
    Thanks.

    you dont seem to want to do any of the thinking yourself here. Perhaps you should read more widely on the topic before wading into a complex task like this.

  • How can i "find my iphone" if the charge has run out so the "lost phone" can't be ONLINE?

    How can I "Find my iphone" if the charge has run out so the phone that is lost can't be ONLINE?

    You can't.  Place it in lost mode and it will be implemented if and when the lost device is recharged by someone and connects to the internet.

  • Is a Macbook2, Core2 duo, 2GB ram enough to run iPad emulator?

    Trying to switch over from this terrible Android Emulator on a Windows box to developing for the iPad.  I am looking at the above used laptop and just want to make sure that before I buy it, it will run the newest xcode and the ipad simulator with no problems. 
    The android tablet emulator is not even useable and I really want to check my apps on an iPad anyway since that will be the eventual target.
    Snow Leopard 10.6.7 is the OS.
    Can anyone help me with this?
    Thanks!
    T

    You're definition of 'fine' is unknown compared to mine.
    I said basically because you only spec'd 2GB ram. Xcode alone doesn't task the processor. Dev'ing is rarely Xcode alone.
    What is your work style? Will you also run Safari, docs in PDF, edit video and audio for use in an app, run multiple apps/projects at one time, check weather, flights, stocks, FB, edit text in 3 apps, craft HTML, download betas, run multiple versions of Xcode, keep several devices docked for testing, use FaceTime to collaborate, run Time Machine backups on the hour, support multiple external monitors, test to Apple TV and constantly re-index projects?

Maybe you are looking for