Trapped at  "Is it OK to use Air time?", HELP!

I finished a MIDlet program but I was stooped at the "Is it OK to use Air time?" warning even I clicked 'Yes'. However, when I run this program at the server machine, the warning doesn't show up.
What's the problem indeed? Can I disable this warning?
following is my codes:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.io.*;
import java.io.*;
* An example MIDlet with simple "Hello" text and an Exit command.
* Refer to the startApp, pauseApp, and destroyApp
* methods so see how each handles the requested transition.
* @author  Ken_2
* @version
public class GetNpost extends MIDlet implements CommandListener {
    private Display display;    // The display for this MIDlet
    private Form fmMain;
    private Alert alError;
    private Command cmGET;
    private Command cmPOST;
    private Command cmExit;   // The exit command
    private TextField tfAcct;
    private TextField tfPwd;
    private StringItem siBalance;
    private String errorMsg = null;
    public GetNpost() {
        display = Display.getDisplay(this);
        //Create Command
        cmGET = new Command ("GET", Command.SCREEN, 2);
        cmPOST = new Command ("POST", Command.SCREEN, 3);
        cmExit = new Command("Exit", Command.SCREEN, 1);
        // Textfields
        tfAcct = new TextField("Account:",  "", 5,  TextField.NUMERIC);
        tfPwd = new TextField("Password:", "", 10,  TextField.ANY | TextField.PASSWORD);
        //Balance string item
        siBalance = new StringItem("Balance: $","");
        // Create Form, add commands & Components, listen for events
        fmMain = new Form("Account Information");
        fmMain.addCommand(cmExit);
        fmMain.addCommand(cmGET);
        fmMain.addCommand(cmPOST);
        fmMain.append(tfAcct);
        fmMain.append(tfPwd);
        fmMain.append(siBalance);
        fmMain.setCommandListener(this);
     * Start up the Hello MIDlet by creating the TextBox and associating
     * the exit command and listener.
    public void startApp() {  
        display.setCurrent(fmMain);
     * Pause is a no-op since there are no background activities or
     * record stores that need to be closed.
    public void pauseApp() {
     * Destroy must cleanup everything not handled by the garbage collector.
     * In this case there is nothing to cleanup.
    public void destroyApp(boolean unconditional) {
     * Respond to commands, including exit
     * On the exit command, cleanup and notify that the MIDlet has been destroyed.
    public void commandAction(Command c, Displayable s) {
        if (c == cmGET || c == cmPOST) {
            try
                if (c == cmGET)
                    lookupBalance_withGET();
                else
                    lookupBalance_withPOST();
            catch (Exception e)
                System.err.println("Msg: " + e.toString());
        else if (c == cmExit)
            destroyApp(false);
            notifyDestroyed();
     * Access servlet using GET
    private void lookupBalance_withGET() throws IOException
        HttpConnection http = null;
        InputStream iStrm = null;
        boolean ret = false;
        // Data is passed at the end of url for GET
        String url = "http://ismt.no-ip.com/servlet/DRMfypGroup2.GetNpostServlet" + "?" + "account=" + tfAcct.getString() + "&" + "password=" + tfPwd.getString();
        try
            http = (HttpConnection) Connector.open(url);
            // Client Request
            //  1) Send request method
            http.setRequestMethod(HttpConnection.GET);
            //  2) Send header information - none
            //  3) Send boday/data - data is at the end of URL
            //  Server Response
            iStrm = http.openInputStream();
            // Three steps are processed in this method call
            ret = processServerResponse( http, iStrm);
        finally
            // Clean up
            if (iStrm != null)
                iStrm.close();
            if (http != null)
                http.close();
        // Process request failed, show alert
        if (ret == false)
            showAlert(errorMsg);
     * Access servlet using POST
    private void lookupBalance_withPOST() throws IOException
        HttpConnection http = null;
        OutputStream oStrm = null;
        InputStream iStrm = null;
        boolean ret = false;
        // Data is passed at the end of url for GET
        String url = "http://ismt.no-ip.com/servlet/DRMfypGroup2.GetNpostServlet" + "?" + "account=" + tfAcct.getString() + "&" + "password=" + tfPwd.getString();
        try
            http = (HttpConnection) Connector.open(url);
            oStrm = http.openOutputStream();
            // Client Request
            //  1) Send request method
            http.setRequestMethod(HttpConnection.POST);
            //  2) Send header information. Required for POST to work!
            http.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
            // If you experience connectoin/IO problems, try removing the comment from the following line
            //http.serRequestProperty("Connection", "clsoe");
            //  3) Send boday/data
            // Write account number
            byte data[] = ("account=" + tfAcct.getString()).getBytes();
            oStrm.write(data);
            oStrm.flush();
            //  Server Response
            iStrm = http.openInputStream();
            // Three steps are processed in this method call
            ret = processServerResponse(http, iStrm);
        finally
            // Clean up
            if (iStrm != null)
                iStrm.close();
            if (http != null)
                http.close();
        // Process request failed, show alert
        if (ret == false)
            showAlert(errorMsg);
     * Process a response from a server
    private boolean processServerResponse(HttpConnection http, InputStream iStrm) throws IOException
        // Reset  error message
        errorMsg = null;
        //  1) Get Statis Line
        if (http.getResponseCode() == HttpConnection.HTTP_OK)
            //  2) Get header information - none
            //  3) Get body (data)
            int length = (int) http.getLength();
            String str;
           if (length != -1)
               byte servletData[] = new byte[length];
               iStrm.read(servletData);
               str = new String(servletData);
           else  // Length not available...
               ByteArrayOutputStream bStrm = new ByteArrayOutputStream();
               int ch;
               while ( (ch =iStrm.read()) != -1)
                   bStrm.write(ch);
               str = new String (bStrm.toByteArray());
               bStrm.close();
            //Update the string item on the display
            siBalance.setText(str);
            return true;
        else
            // Use message from the servlet
            errorMsg = new String ( http.getResponseMessage() );
        return false;
     * Show an alert
    private void showAlert(String msg)
        // Create Alert, use message returned from servlet
        alError = new Alert("Error", msg, null, AlertType.ERROR);
        // Set Alert to type model
        alError.setTimeout(Alert.FOREVER);
        // Display the Alert. Once dismissed, display the form
        display.setCurrent( alError, fmMain);
}

Ooops - adding to my own reply: this is valid for latest Sun Java studio Mobility (available at http://developers.sun.com/prodtech/javatools/jsmobility/index.html). Older versions have different wtk directory - search for _policy.txt in the install directory.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • How do i use air sync to sync with my iTunes on my computer

    How do i use air sync to sync with my iTunes on my computer

    You cannot use ActiveSync for that, but there are SharePoint clients for the iPhone. Windows Mobile 7 natively supports SharePoint with SharePoint Workspace Mobile, part of Microsoft Office Mobile. Android and BlackBerry might also have some apps.
    Use Microsoft SharePoint Workspace Mobile
    http://www.microsoft.com/windowsphone/en-us/howto/wp7/office/use-office-sharepoint-workspace-mobile.aspx
    iPhone SharePoint Apps Shootout
    http://www.codeproject.com/KB/iPhone/iPhoneSharePointApps.aspx 
    Comparing SharePoint iPhone Apps
    http://blog.praecipio.com/2010/11/02/comparing-sharepoint-iphone-apps/
    MCTS: Messaging | MCSE: S+M

  • HT201335 What causes the TV screen to freeze but sound continue on TV when using Air Play from I Phone?

    What causes TV screen to freeze but sound continue on TV when using Air Play from I Phone 4?

    First try rebooting ATV and router. Beyond that, it's probably something within the network, typically interference.
    To get a report of the network go to istumbler (Mac) or netstumbler (PC). Look for signal strength and noise.
    If on wifi try ethernet.

  • I'm trying to print  an Ancestry document from an iPad 2 using air print onto a Canon 5350 (one of the printers ok'd by Apple) I am unable to change the print orientation from portrait to landscape.  That is I change it in printer settings but no use.

    I'm trying to print an Ancestry document from an iPad 2 using air print.  The printer is a Canon MG5350 (on the Apple approved list) I have no difficulty printing but only in portrait format.  I've tried changing printer preferences from my computer but even though the Canon accepts the changes it will not print landscape - can anyone advise please?

    Hi,
    How do you connect the printer to the XP machine ? If USB, you need to make that machine as a Print server. Please try this:
       http://techtips.salon.com/make-windows-computer-pr​int-server-11914.html
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Can I use air play to mirror anything that's on the screen of my iPad

    I have the nfl gamerewind app on my iPad. I'd like to use air play to mirror the games from my iPad to my TV screen.  Is this possible?
    Or, is it possible to mirror the screen of my Windows 7 laptop to my TV using Apple TV?
    Thanks for any help, I am very new to this, have never used Apple TV before.

    There are 2 kinds of Airplay - one which 'mirrors the display' on AppleTV (in iPAd 4:3 aspect ratio).  Mirroring is only available on iPhone4S and later and iPad 2 and later and certain newer Macs.  Mirroring is processor intensive as it compresses each display frame and sends the video to AppleTV as well as having to do what an app is doing.
    The other kind of Airplay available on some older devices essentially sends a pre-rendered compatible file to AppleTV to play rather than a mirror of the screen.
    Note - content providers can and do block certain things from working with Airpolay so check if it's a particular app, game or website you want to airplay.
    You might want to check out Airparrot which might be able to mirror your Windows laptop to AppleTV.

  • I have Ipad and Mac air. How do I use face time between them

    I have Mac air and Ipad 3. when i take I PAD while travelling, can I connect to Mac air using face time. Guest account doesn't show face time.

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • I recently bought two iMac quad core i5 processor speed 2.5 Ghz. Every time I use Air Drop and I send a file from one iMac to the other, a black curtain drops and I am asked to restart the computer!!! What can I do?

    I recently bought two iMac quad core i5 processor speed 2.5 Ghz. Every time I use Air Drop and I send a file from one iMac to the other, a black curtain drops and I am asked to restart the computer!!! What can I do?

    That's a kernel panic and indicates some sort of problem either with the computer's hardware or software. Visit The XLab FAQs and read the FAQ on diagnosing kernel panics. It would help to post the panic log: Mac OS X- How to log a kernel panic.
    Meanwhile, try booting the computers into Safe Mode then restarting normally. If this is simply a disk repair or cache file problem then this may fix it.
    You can also try creating a new admin account on each computer then booting into the new account. This would help determine if the problem is related to a bad file in the user accounts.

  • Can I use a Time Capsule for ADDITIONAL storage for a Mac Air which has run limited storage space

    Hi
    I am looking at purchasing the current MacBook Air but am aware of its limited storage space in terms of files, photos etc.
    Was wondering if I could use a time Capsule for both back-up and as an additional storage device.  Ie: would I be able to store photos and files on the Time Capsule that I do not wish to store on a MacBook Air and be able to retrieve them as and when - or would these be deleted after a period of time?  Is there any way of protecting certain files on the Time capsule to prevent them from being deleted?
    Many thanks in advance

    Welcome to Apple Support Communities
    You can but it's not recommended, because you can damage the Time Machine structure.
    Toffey wrote:
    would I be able to store photos and files on the Time Capsule that I do not wish to store on a MacBook Air and be able to retrieve them as and when - or would these be deleted after a period of time?  Is there any way of protecting certain files on the Time capsule to prevent them from being deleted?
    Only files backed up with Time Machine are deleted from your Time Capsule when there's no enough storage. If you store other files, they are not deleted. However, for what you want to do, I recommend you to buy a big external drive and make two partitions, one for Time Machine and another one to store files, or get two external drives

  • I have used Airport Time Capsule with my iMac for several years. I recently purchased a MacBook Air and when it tried to backup to Time Capsule it couldn't because Time Capsule is full. How can I now use the 3TB Airport Time Capsule to back up both?

    I have used Airport Time Capsule with my iMac for a couple years. I recently purchased a MacBook Air and when it tried to backup to Time Capsule it couldn't because Time Capsule is full. How can I now use the 3TB Airport Time Capsule to back up both the iMac and MacBook Air? I don't mind losing earlier backups. I have excluded some items from backing up, but since the Airport Time Capsule is full, I can't even begin to back up the MacBook Air.

    On your Mac.......
    Open Finder > Applications > Utilities > AirPort Utility
    Click on the Time Capsule icon, then click Edit in the smaller window that appears
    Click on the Disks tab at the top of the window
    Click Erase Disk
    On the next window that appears, select the Quick Erase option, then click Erase
    The operation will only take a few minutes.
    Now you are ready to start new backups of both Macs.  Back up one Mac first, then back up the other.  Do not try to back up both Macs as the same time.

  • Building a desktop app - use AIR or not?

    Hello, I'm guessing that the keyword "desktop" would make you recommend I use Adobe AIR if I'm building with Flex.  Basically, we're building a desktop application that will occasionally sync with the server where a separate but related application resides.  Most of the time, the desktop app needs to be able to function with or without network connectivity. 
    So far, we have begun by playing with Flex and running it in a browser on a local machine.  We could simply use XML files for local storage instead of a database, and it seems like we can get a fair amount of functionality implemented this way.  However, I'm wondering if we should definitely be using AIR instead. 
    I'm coming with a server-side Java background, so I'm also trying to figure out how people write the business layer in this world (the business logic tier in between the presentation and data/service layers).  A lot of places I'm finding online keeping talking about Flex being for presentation only, but with an Adobe AIR app, do people often write business objects that sit between the GUI components and the database?  In some of the AIR programming guides, I'm not seeing any mention of that.
    I'm trying to make a case for AIR, so I need a little bit of help from you...
    Thanks!

    I'm coming with a server-side Java background, so I'm also trying to
    figure out how people write the business layer in this world (the
    business logic tier in between the presentation and data/service
    layers).  A lot of places I'm finding online keeping talking about Flex
    being for presentation only, but with an Adobe AIR app, do people often
    write business objects that sit between the GUI components and the
    database?  In some of the AIR programming guides, I'm not seeing any
    mention of that.
    I'd like to add a "me too" to this.  I haven't done a lot of research into AIR yet and it's not immidiately obvious what's involved with getting offline functionality.  I think I basically have the same question as the OP; do I end up (re)writing a bunch of business logic in the Flex client (I don't want to).
    I'm still using Java EE on the server for a (business logic) data access layer.  Specifically, I'm using a DTO inheritance strategy and setting up to auto-generate (mirror) .as DTOs with (Maven) flexmojos (I think flexmojos uses GraniteDS, but I use BlazeDS - the code generation tool shouldn't matter AFAIK).  So far, I'm quite happy with how the whole setup works.  However, I'd love to hear what kind of Java + Flex + AIR development strategies others have been finding successful since a significant portion of the online resources and documentation I've found tend to be somewhat trivialized.
    I hope I'm not hi-jacking the OPs question here (if so, I apologize), but what I'd like to know is if AIR is capable of any 'for free' type offline capabilities (like the way BlazeDS and LCDS 'just work').
    Ryan

  • I received this error message when trying to use my time capsule.  MacBook Air.sparsebundle is already in use.  What does this mean?

    I received this error message when trying to use my time capsule.  Macbook Air.sparsebundle already is use.  What does this mean?

    First, restart the MacBook Air and the Time Capsule. In most of the cases, this solves the problem.
    If not, see > http://pondini.org/TM/C12.html

  • I am out of space on my Macbook Air and have a Time Machine Backup. I want to complete reset my mac, but wonder if I can pick and choose what I restore to my computer? Can I also use my time machine backup and external storage as well?

    I am out of space on my Macbook Air and have a Time Machine Backup. I want to complete reset my mac, but wonder if I can pick and choose what I restore to my computer? Can I also use my time machine backup as external storage as well for the files I don't need everyday?

    If you are using "Restore from Time Machine Backup" option from OS X Recovery, you can only choose from the broad categories presented.
    ... Can I also use my time machine backup as external storage as well for the files I don't need everyday?
    To be clear, if you are asking if you can use the volume containing your Time Machine backup to store additional, non-Time Machine files, the short answer is yes.
    It's not a good idea though, since the Time Machine backup will eventually fill all available space, after which it begins to remove old, "expired" backups to make room for newer ones. The presence of additional files doesn't change that fact, and Time Machine will not erase them, but you will encounter a dilemma should you want to store additional files on that volume when there is no remaining space. You will have to make room for them on your own, by deleting existing files. Furthermore, since Time Machine cannot back up its own volume, those additional files will not be backed up by Time Machine.
    The easy solution for what you describe is to purchase additional external storage. External USB hard disk drives have become very inexpensive; about $55 will buy a perfectly suitable 1 TB drive.
    You can also choose to replace your MacBook Air's internal storage with a larger capacity one. Look for a suitable replacement from OWC / MacSales:
    http://eshop.macsales.com/shop/SSD/OWC/Air-Retina
    That gets a little more expensive but it is the optimum solution.

  • I would like to inquire how to use air 2.7 sdk in flash cs5.5.

    I would like to inquire how to use air 2.7 sdk in flash cs5.5.
    I have searched some solutions online and tried to copy air2.7 content in air2.6 folder(replaced the old one). I then did some efficiency tests but I don't see any improvements at all. Did I miss anything?
    Besides that, There's a display ratio problem if I publish the ipa in landscape mode. I can't interact with the program either. But it is not a problem if the ipa is published in portrait mode.

    http://forums.adobe.com/thread/864964?tstart=0

  • HEY, i have some issue i am using macbook air i5...the problem is that without doing anything 1.5gb of ram out of 2gb always in use ..please help me how to make it normal.

    HEY, i have some issue i am using macbook air i5...the problem is that without doing anything 1.5gb of ram out of 2gb always in use ..please help me how to make it normal....
    and my battery back up is max 3 to 3.5 hours in normal use with web ....is this normal or need some betterment!!!!

    ADEEL UR REHMAN wrote:
    ...the problem is that without doing anything 1.5gb of ram out of 2gb always in use
    No computer can do a thing without using memory. 1.5 GB is very little. It's normal.
    3 or so hours from a full charge may also be normal, for what you are doing. As batteries age, they don't last as long on a full charge as they did when they were new. All batteries eventually wear out, and are easily replaceable.

  • I have a macbook air and  and hdmi that i have used many times, but not all of a sudden the tv won't recognize the hdmi. The computer flashes when it is plugged into the hdmi but the tv says "no signal" and the airplay displays option says "no device"

    I have a macbook air and  and hdmi that i have used many times, but not all of a sudden the tv won't recognize the hdmi. The computer flashes when it is plugged into the hdmi but the tv says "no signal" and the airplay displays option says "no device detected" and the drop down bar is grey and locked.

    I have a macbook air and  and hdmi that i have used many times, but not all of a sudden the tv won't recognize the hdmi. The computer flashes when it is plugged into the hdmi but the tv says "no signal" and the airplay displays option says "no device detected" and the drop down bar is grey and locked.

Maybe you are looking for