Start MIDlet from external event (Push Registry)

Hi All,
I am doing a MIDlet on capturing snap. Is it possible to start MIDlet from
outside event (like sms from particular IP/mobilenumber)?
What is the minimum requirement to do so if it is possible?
From,
Nirav

Hi
Do a search on this forum for PushRegistry.
Mihai

Similar Messages

  • Starting up from external partitioned firewire drive

    Hi all,
    I have a lacie external firewire drive. I have it partitioned. One partition has a copy of OSX. If i start up on my main drive and set the "start up disk" preferences to the OSX partition on the external drive my G5 will start up on the OSX partition.
    However, if i don't set the "start up disk" preferences to the partitioned firewire drive and i try holding down the "option" key during a cold start the G5 won't recognize the partitioned OSX as an option.
    I want to have this external copy of OSX as an emergency start up using the "option" key during a cold start.
    For the last two years i've used a non-partitioned external firewire drive with OSX installed as an emergency start up disk and the G5 has always recognized the drive while holding down the "option" key from a cold start.
    Now that i have OSX on a partitioned external drive, a cold start holding down the "option" key won't recognize the external OSX.
    Any ideas?
    Also, if i'm not able to start up from this partitioned firewire drive, are there any special instructions for creating a DVD copy of OSX to use as an emergenct start up disk?
    Paul

    Allan,
    I can boot fine from the external, partitioned firewire drive if i first set my "start up disk" preferences to the external drive.
    But i if have my "system startup disk" preferences set to the internal drive (as it is normally), shut the machine down, then try a cold start holding down the "option" key, the G5 won't recognize the external drive (partitioned) as an optional system from which to start up from.
    In the past, i've dedicated an entire external firewire drive (NOT partitioned) as my emergency start up disk and when i did a cold start of the G5 holding down the "option" key, the G5 had no problems recognizing the external (not partitioned) drive as an optional system for start up.
    I'm wondering if by partitioning the external firewire drive i have some how rendered the external drive useless as an alternate start up device.
    Questions, questions ...
    Paul

  • Starting up from external Drive???

    Have cloned my on board Drive with CCC, on a brand new JOURNALED external drive.
    All went well.
    Checked copied data.. it all seems fine.
    Now testing the External Drive is creating a bit of anxiety as I have never attempted that before.
    I know what and how to do it but am concerned that booting my computer FROM the ext.Drive, especially if slightly corrupted may cause me an issue to re-boot internally.
    Also
    Does updating the CLONE require as much time on follow ups, I truly hope it does NOT start all over again, just amends newly modified data...RIGHT?
    I thank you for any input.

    Basically all you should have to do is;
    1) with external drive connected and powered on Open System Preferences->Startup Disk & select your External Drive.
    2) Restart using the Restart... button.
    There are things to keep in mind. The external drive must the appropriate type of Partitioning for the Mac CPU architecture that you are trying to boot (GUID Partition Table for Intel, Apple Partition Map for PPC). Up until somewhat recently Macs would only boot off of Firewire, and even then only certain Firewire chipsets. Newer Macs (I believe this includes all Intel Macs, but not sure) can boot off of Firewire or USB 2.0. I do not know about the very latest Macs, but obviously the new MacBooks won't boot off of Firewire because they do not have that interface available.
    As far as I know unless you start accessing your internal drive and doing damaging changes there is little or no risk trying to boot off of your external clone. Worst case if it doesn't boot properly, power the mac down with the power button, disconnect the drive, and start up with your internal disk. If you do need to take this action make sure to go into Startup Disk and select your internal drive, otherwise your Mac spends time looking for bootable disks every time you power it on.

  • Start-Up from external hard-drive with Time Machine

    I am using a 500GB Firewire/USB-2 external drive as my back-up, using Time Machine. I've looked all over (and read Bob Levitus's book) for an answer:
    How do I set up this external drive to automatically boot, in the event of internal drive (iMac) failure?
    I've looked in the preferences for Time Machine, but don't see anything, and am not sure how to set this up, if necessary. Would my iMac automatically look for and resort to another drive, if the main drive failed?
    Thanks

    Time Machine backups aren't bootable until restored with the Time Machine application on a Mac OS X install DVD or installation or migrated from following setting up an OS manually. A Time Machine backup drive can be partitioned to include a Mac OS X system, but as before, the backed up system needs to be restored before it can be booted from.
    (50848)

  • Remove start time from Calendar events

    The new Maverick system displays the event time in all of the events I've created. I don't want this displayed, how do I remove it? One thing to note, some events have it and some don't.
    Also, how do I get it to stop auto-populating an event location?
    Thanks!

    sberman Southern California
    This solved my questionRe: Calendar Travel Time Starting from Work when I want to Start from Home Oct 23, 2013 8:43 PM (in response to theglenlivet12)
    From Calendar's help:
    To set your starting location, Calendar first looks for your location in any events that are up to three hours before this event. If Calendar doesn’t find a location, it uses your work address during work hours and your home address during other hours. (Your work hours are set in Calendar preferences using the “Day starts at” and “Day ends at” menus.) If your card in Contacts doesn’t have your addresses, Calendar uses your computer’s current location.

  • Can't start up from external drive

    I have cloned my startup drive to an external firewire drive. I made the clone using Carbon Copy Cloner, with the "Make Bootable" preference checked. It's my intention to be able to use this drive as the startup drive should there be a problem with my internal drive.
    I selected the external in System Preferences as the startup drive and restarted. I got a gray screen, and no further activity, so I pressed the Restart button and tried again, to no avail. Then I tried to restart holding the Option key. I got the Select Drive screen, but there were no drives on it, and after a few minutes I pressed the Restart button again.
    What am I doing wrong? The external drive is an ATA drive in a firewire case, and I have booted from it in the past.
    Thanks
    BC

    Now that I think of it, I did NOT boot from this external drive in the past. this is a new drive in a new case. The old case had the Oxford chip set, this one has the Prolific chip set. Does this make a difference?
    Anyone? Anyone? Bueller?

  • Push Registry is not starting the MIDLET automatically

    I am not being able to start my MIDLET using the push registry mechanism. I am using the netbeans emuluator to execute the program.
    In the startApp of my application I have
         connections = PushRegistry.listConnections(false);
    and whenever a connection comes it starts a new thread. My Client keeps sending SMS requests but the server midlet in which the
    push registry is initiated does not start.
    In the application Descriptor I have added the following
    MIDLET class : Server.SMSReceive_S
    Sender IP : *
    Connection String : sms://:5000
    and in the API permissions I have added the following API permissions
    javax.microedition.io.PushRegistry, javax.wireless.messaging.sms.receive, javax.wireless.messaging.sms.send
    I have even tried to start the MIDLET dynamically by calling
         PushRegistry.registerConnection(smsConnection,this.getClass().getName(),filterName);
    but that too doesnt work?
    So what am I doing wrong in starting the MIDLET automatically using push registry?

    Hi, Malte
    I have given individual nodes address in db2nodes.cfg,  as per your instruction I have run the db2 list database directory I have got the following output
    System Database Directory
    Number of entries in the directory = 1
    atabase 1 entry:
    Database alias                       = SOP
    Database name                        = SOP
    Local database directory             = /db2/SOP
    Database release level               = b.00
    Comment                              = SAP database SOP
    Directory entry type                 = Indirect
    Catalog database partition number    = 0
    Alternate server hostname            =
    Alternate server port number         =
    => db2 list node directory
    => SQL1027N  The node directory cannot be found
    Regards

  • Need to run midlet from another midlet

    Need to run midlet from another midlet
    How to do it?
    In my midlet user get link to web-page, and i want to start mobile browser with this page.

    Hi,
    In order to run midlet from another midlet you may use push registry. Go through the API of that I am not sure but as far as I know push registry is the only solution to that
    Sunil
    Software Developer - J2ME

  • Push Registry : MIDlet  activated by servlet ?

    hello, i have been trying to figure this out for days now could someone please help. I am trying to get the MIDlet to by activated by a Servlet which resides on a apache webserver , is this possible?
    how do you go about in getting the MIDlet to register a connection which waits for some activity sent via HTTP? do you register a socket to listen on a port on the device and get the servlet to send data to that port via HTTP?(if so how is this done?)
    Basically all i am trying to do is get a servlet to send data to the midlet. The MIDlet is installed from the webserver with ease, i want the midlet to wait till the server decides to send some data. the servlet will activate the midlet (this is the problem) , so then the midlet will open the http connection to the servlet.
    Please ask if the question needs clarifying, I would be very thankful for any advice provided.
    cheers
    Max

    thanks for info
    i have been trying for a while now and cant seem to get this working what i have got is a MIDlet that listens on port 90 of a socket connection. i am trying to create a Servlet that sends data onto port 90 so the midlet can be activated via the push registry. i am having the trouble with the servlet(which i cant get working, i assume that the code is wrong), i cant seem to get a socket connection working, i have tried to open a socket connection but have had no luck.
    i have posted some code, the MIDlet is there and so is my attempt at a servlet.
    what i want to do is get the servlet sending the midlet data on a specified port
    and the midlet recieveing that data and displaying it on the mobile emulator
    (so far all the MIDlet code does is listen for some activaty on port 90 and then send some data to the browser on the following url : http://localhost:90/)
    if anyone can get this problem on this example code i am testing on, fixed it would be much appreciated!!
    Thanks
    Max
    import java.io.*;
    import javax.microedition.io.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.pki.*;
    public class PatchyMIDlet
        extends MIDlet
        implements CommandListener, Runnable {
      private Display mDisplay;
      private Form mForm;
      private ServerSocketConnection mServerSocketConnection;
      private boolean mTrucking = true;
      public void startApp() {
        mDisplay = Display.getDisplay(this);
        if (mForm == null) {
          mForm = new Form("PatchyMIDlet");
          mForm.addCommand(new Command("Exit", Command.EXIT, 0));
          mForm.setCommandListener(this);
        Thread t = new Thread(this);
        t.start();
        mDisplay.setCurrent(mForm);
      public void pauseApp() {}
      public void destroyApp(boolean unconditional) { shutdown(); }
      private void log(String text) { log(null, text); }
      private void log(String label, String text) {
        StringItem si = new StringItem(label, text);
        si.setLayout(Item.LAYOUT_NEWLINE_AFTER);
        mForm.append(si);
      private void shutdown() {
        mTrucking = false;
        try { mServerSocketConnection.close(); }
        catch (IOException ioe) {}
      public void commandAction(Command c, Displayable s) {
        if (c.getCommandType() == Command.EXIT) {
          shutdown();
          notifyDestroyed();
      public void run() {
        try {
          mServerSocketConnection =
    (ServerSocketConnection)Connector.open("socket://:90");
          log("Startup complete.");
          SocketConnection sc = null;
          while (mTrucking) {sc =
    (SocketConnection)mServerSocketConnection.acceptAndOpen();
            log("client: ", sc.getAddress());
            // Strictly speaking, each client connection
            // should be handled in its own thread. For
            // simplicity, this implementation handles
            // client connections inline.
            Reader in = new InputStreamReader(sc.openInputStream());
            String line;
            while ((line = readLine(in)) != null) ;
            // Ignoring the request, send a response.
            PrintStream out = new PrintStream(sc.openOutputStream());
            out.print("HTTP/1.1 200 OK\r\n\r\n");
            out.print(getMessage());
            out.close();
            in.close();
            sc.close();
        catch (Exception e) {
          log("exception: ", e.toString());
      private String readLine(Reader in) throws IOException {
        // This is not efficient.
        StringBuffer line = new StringBuffer();
        int i;
        while ((i = in.read()) != -1) {
          char c = (char)i;
          if (c == '\n') break;
          if (c == '\r') ;
          else line.append(c);
        if (line.length() == 0) return null;
        return line.toString();
      private java.util.Random mRandom = new java.util.Random();
      private String getMessage() {
        int i = Math.abs(mRandom.nextInt()) % 5;
        String s = null;
        switch (i) {
          case 0: s = "Above all the others we'll fly"; break;
          case 1: s = "There is no reason to hide"; break;
          case 2: s = "I dreamed about Ray Charles last night"; break;
          case 3: s = "Someone keeps moving my chair"; break;
          case 4: s = "Joseph's face was black as night"; break;
          default: break;
        return s;
    }the Servlet code, which i cant get working:
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.io.*;
    import java.net.*;
    import java.lang.*;
    public class Servlet extends HttpServlet {
      private int mCount;
      public void doGet(HttpServletRequest request, HttpServletResponse response) throws
          ServletException, IOException {
        String message = "Hits: " + ++mCount;
        String connectString = "socket://:90";
        SocketConnection sc = null;
        DataOutputStream dos = null;
          // open a socket connection with the remote server
          sc = (SocketConnection) Connector.open(connectString);
    // an OutputStream is created on top of the
          // OutputConnection object for write operations
          dos = sc.openDataOutputStream();
    // perform write operations
          dos.writeChars("hello");
      }

  • Copying or moving video from your Event Library to an external hard disk

    I have a Network Drive where I'm used to putted all my iMovie08 files.
    I'm start using iMovie09 and i'm no longer able to have my *files/library in a network drive*. Did apple remove this functionality? If this is true this is unbelievable because now a days everything goes to network storage. On iTunes i can have my library virtually anywhere. I need to have the same behavior when i'm using iMovie.
    Can someone help me?
    with my best regards,
    Paulo
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Copying or moving video from your Event Library to an external hard disk
    If you want to save space on your computer’s hard disk, you can move your stored video in your Event Library to a compatible external hard disk connected to your computer with a FireWire or USB 2.0 cable.
    You can also copy Events to another hard disk. You might do this, for example, if you want to create a duplicate copy of your video library or an Event on a friend’s hard disk.
    NOTE:When using an external hard disk with iMovie, make sure it has been formatted as Mac OS Extended (Journaled).
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    - If i understood correctly, the solution you propose will replace completely my hard disk library with NAS location.
    - What i need (because when i'm travelling i dont have my NAS) is to have both. My hard disk library and the ability to copy/move (drag & drop within iMovies09 ) events and projects to my NAS at my description as i use to do on iMovies08.
    And yes all my NAS locations appears with and yellow flag on iMovies09.
    best regards,
    Paulo

  • Push Registry - "ping ponging" midlets

    i am currently trying to build test apps that utilizes push registry using sockets
    basically, i have 2 midlets, let's name them midlet1 and midlet2
    1. i launch midlet1
    2. then i exit midlet1
    3. exiting midlet1 triggers the push for launching midlet2
    4. midlet2 launches by itself
    5. i then exit midlet2
    6. similarly, exiting midlet2 triggers the push for launching midlet1
    7. midlet1 launches by itself
    8. i tried repeating everything from step 1, but it doesnt work..
    anyone familiar with this situation?
    i tried closing the socket connection during destroyApp() and of course the threads are stopped as well, but obviously they didn't worked for me..
    Edited by: novarian_brian.balote on Sep 26, 2008 1:22 AM
    Edited by: novarian_brian.balote on Sep 26, 2008 1:23 AM
    Edited by: novarian_brian.balote on Sep 26, 2008 1:24 AM

    sure, so yes its only on midp2, the JAD stuff you're talking about is only for the pushregistry in midp2.
    how it works? you tell the AMS (application management system) on the phone that when it installs MyMIDlet it should attach it to some port (say... 5444 for example).
    cool so now its installed.
    now when your phone gets an SMS nothing happens... UNLESS that SMS is directed at port 5444. At that point, the AMS will invoke MyMIDlet.
    but ya, you need MIDP2.0

  • Signed midlet with push registry

    hi,
    one midlet application was trused (ex:- signed from verisign)
    application code using alaram based push registry
    so when alaram puch activate then will it ask any alert question ? for trusted midlet (alert is like myMidlet have need to open?)
    i was cheaked for untrusted midlet so their asking the alert question
    (i forget the alert matter exatly)
    if it is trusted then what happen?
    can any one help me who ever experiance with this
    thanx in adv

    plz help me

  • To transfer time events from external time recording system to sap r/3

    hi all,
          I have a task to make an interface program between external time recording and sap r/3, and then to transfer the time events from that external system to sap system with the help of an rfc, i have got some information like the data first has to be transferred to the table CC1TEV and then from this table the data will be uploaded to 2011 infotype with the help of a standard program, but i am unable to find a solution for making the interface program and the RFC or BAPI which will transfer the records from external system.
        if anybody has any information on this plz help me out to solve this problem.

    Which recorgding terminals using to capture time events? They should have give some guidelines about this?
    Regards
    niranjan

  • How do you start up from an external hard drive

    I read the one post about this but i was un clear. Im trying to find out how to do this for my friend with a G3 that is no longer working. They have an external hard drive that is firewire and the newest version of tiger. So if someone could give me a step by step guide how to install tiger on the external hard drive and then run it that way, that would be great. Thanks to anyone who answers and helps.

    I was fooling around with my iBook and an external harddrive where I used CarbonCloner to clone my system. When that was done I found this link:
    http://docs.info.apple.com/article.html?artnum=75459
    Here it says I should:
    Press Option-Command-Shift-Delete during startup
    Bypass primary startup volume and seek a different startup volume (such as a CD or external disk)
    I tried this and my iBook started up from my external harddrive....I think.....i actually couldn't tell the difference by looking at the desktop, everything seemed exactly the same, I guess because I booted from a cloned system....but when I used the keyboard sequence above, I noticed my external harddrive spinning and thought it was doing the work to start up my computer.
    I don't think starting your computer using Target disc mode is right for you....

  • ESTK external objects, push text from library to script

    hi everyone,
    is there any way to push the message from external objects without any request from javascript.
    so that there should be 2 way entry points, scripts should allow C++ objects to enter.
    or is there any other way to accomplish this ?
    thanks of your efforts.

    Huh?
    You're going to have to explain what you are after a little better...
    Harbs

Maybe you are looking for

  • How Can I Set the Search Field in iTunes?

    In applescript... In another app - I have copied a song title to the clipboard... Q: Now - How Can I Set the Search Field in iTunes to the clipboard contents? Q: Also how can I also open the main library itunes window?

  • When you buy a buy at the itunes store do you get access to closed caption on like a DVD

    I would like to know if the movies you purchase from the Itunes store allows you to have closed caption.  We have purchased a lot of amazon but the closed caption is not an option there and we would love to switch over to Itunes for movies.

  • HR to SRM Org Structure Language

    Dear all;   We are using PFAL to replicate HR data to EBP. Recently we made some changes in HR system to have the descriptions of the Org Unit, Positions in multiple languages apart from English. All the languages would be valid at a given date and d

  • Still no luck downloading Encore, please advise.

    I am new to the cloud, noticed Encore is not available.  I have a full year for all apps in the Cloud and not a trial version.  After reseaching I learned about the solution.  However, I don't have a drop down menu to choose between CC and CC6 as sho

  • Reproducable PNG Save Crash (CS2)

    PhotoShop fails to save PNG image - subsequent attempts to save write 0 byte files without error message. This has reproduced on two unrelated machines so far (it was reported to me by a friend, I tried his image, confirmed it, then tried to come up