J2ME Accessing File method appart from the StartApp() method

I have been able to access File methods which read/write to file, only when methods are placed within the StartApp() method in the J2ME Midlet.
I have tried placing them inside a command listener and accessing the specific File methods, however they could not execute any button either YES or NO when promted for reading or writting to files, however the process accessing the methods from StartApp certainly works fine.
For an ease of maangement and less coding, I decided to put the methods into another class and access them seperatelly.
I am just curious what would be the appropriate class layout for the methods.
Ex: inside the parent Midlet commandListener I thought I would do something like
if (command == Write) {
            FileClass f = new FileClass();
             f.Write(); 
  } So what would be the correct or the best way to call the Write method from teh Midlet executing the Write method. as to how method should be structured inside the class.... eg my thought
Do I need some sort of Thread ??? My compiler keeps telling me that
public FileClass implement CommandListener {
   public FileClass {
    public void commandAction( ....  )  {
    public void Write()  {
}cheers

Hi NImesh,
Thanks a lot. You are correct. Once I assigned to the same enhancement implementation, the enhanced parameters started appearing in the pre-method.
Best regards,
Amar

Similar Messages

  • HT1918 I cannot access files I uploaded from an old computer.  The email account to which some tracks are connected is deleted. For some reason my birth date doesn't work either. Is there some way to transfer the files to my current address?

    I cannot access files I uploaded from an old computer. The email account to which some tracks are connected is deleted. For some reason my birth date doesn't work either. Is there some way to transfer the files to my current address and username?

    Most likely you have Office 2004 which are PPC-only applications and will not work in Lion. Upgrade to Office 2011. Other alternatives are:
    Apple's iWork suite (Pages, Numbers, and Keynote.)
    Open Office (Office 2007-like suite compatible with OS X.)
    NeoOffice (similar to Open Office.)
    LibreOffice (a new direction for the Open Office suite.)

  • I'm about to transfer the contents of my existing HDD in my (dead PSU) iMac to another computer. I'm just wanting to know if and how I will be able to access my files and documents from the old hard drive once I've made the backup?

    I'm about to transfer the contents of my existing HDD in my (dead PSU) iMac to another computer. I'm just wanting to know if and how I will be able to access my files and documents from the old hard drive once I've made the backup?

    You are not going to be able to run your old system from the backup on this old computer as the hardware is incompatible.
    You need to get a new computer or a refurbished one.

  • How to transfer files to and from the BB PlayBook

    Overview
    The following sections outline different methods of transfering files to and from the BlackBerry® PlayBook™.
    Wi-Fi® Sharing
    Complete the following steps to share files over a Wi-Fi connection:
    From the BlackBerry PlayBook home screen, select the settings icon.
    Select Storage and Sharing.
    Toggle Wi-Fi Sharing to ON.
    Tap Properties to verify network identification information. (PlayBook name, password etc)
    From a Windows or Mac based computer on the same network as the BlackBerry PlayBook, navigate to the IP address of the PlayBook which can be found under Settings > About > Network.
    On a Windows computer, open the Run dialog box and type \\127.1.1.1 (where 127.1.1.1 should be replaced with the actual IP address of the BlackBerry PlayBook)
    On a Mac computer, select Go -> Connect to Server... and type smb://127.1.1.1 (where 127.1.1.1 should be replaced with the actual IP address of the BlackBerry PlayBook)
    Users will then connect to the media folder which contains several subfolders such as documents, music, photos, videos etc.  Users can then move files between the computer and these folders.
    File Sharing with a Mac via USB connection
    To share files between a Mac and the BlackBerry PlayBook, BlackBerry® Device Manager will need to be installed. Complete the following steps to install BlackBerry Device Manager:
    Connect the BlackBerry PlayBook to the Mac.
    On the desktop or within Finder, double click BlackBerry PlayBook CD.
    Double click the BlackBerry Device Manager Installer to start the installation process.
    After reviewing the Read Me and License Agreement click Continue Installation.
    Reboot the computer when prompted.
    After the reboot is complete and the PlayBook is started, a message may be presented stating that a new network interface has been detected.  If this is the case, click on Network Preferences and click Apply.
    You may receive the error message  "You can't install the 'Network' preferences pane because it is already installed". *** If you receive this message,  See the additional notes for further steps, otherwise continue to step 8.
    After the PlayBook has been setup in Network Preferences, the PlayBook share will appear on the desktop whenever the PlayBook is connected to the computer.
    Click the Playbook icon on the desktop to display the PlayBook share.  Users can then move files between the computer and the PlayBook.
    File Sharing with a Windows® PC via USB connection
    To share files between a Windows based PC and the BlackBerry PlayBook, BlackBerry Device Manager will need to be installed. Complete the following steps to install BlackBerry Device Manager:
    Connect the BlackBerry PlayBook to the computer via USB cable.
    If BlackBerry Device Manager is not yet installed, the PlayBook will display a screen entitled Installing Drivers.
    On the computer, double click the BlackBerry PlayBook CD drive icon.
     Open the Drivers folder.
    Double click Setup.exe
    After selecting the appropriate region and accepting the License Agreement select Install.
    Select Finish and then OK to the prompt confirming that the PlayBook will need to be disconnected and then reconnected prior to use.
    Once reconnected to the computer, the BlackBerry PlayBook will be mounted as a Network Drive labelled PlayBook [PIN: 500AAAAA].  Double click the network drive icon to access the PlayBook folders.  Users can then move files between the computer and the PlayBook.
    Environment
    BlackBerry® PlayBook™
    Additional Information
    If you receive the error message  "You can't install the 'Network' preferences pane because it is already installed" while attempting to install the Network Device, complete the following steps:
    1. Click Ok and Navigate to System Preferences > Network
    2. Click Ok to accept the network changes. If you do not see the acceptance prompt, continue to the next step.
    3. Click the "+" under the listed device.
    4. Click Create on the RIM Network device interface screen
    Additional Notes:
    File and Folder creation is only available on the playbook within the sub directories of the file structure.  No folders can be created on the root folder of the drive.  This is by design.
    The main folders of the playbook are not meant to be modified renamed deleted or changed.  This is by design.
    While any file type can physically moved to the playbook the files capable of being opened by the playbook are still limited to KB26606, as well as KB26518.
    PLEASE DON'T FORGET TO GIVE KUDOS BY CLICKING THE STAR BELOW. THANKS

    After you connect your tablet via wifi in the network, you can also share files doing this:
    I personally have windows 7 in my laptops, and when I need to transfer files using my laptop, I open network and sharing center, then I click on see full map and finally I click on the icon  playbook-a185, the next screen will show you 2 folders: certs and media.
    Another way is opening windows explorer and on the left under network, see the computers listed on the network, find playbook-a185, click on it and will open the folders.
    Note: make sure you have file sharing and wifi sharing ON on the playbook. I turn OFF password protect so will be easier to access your files, and when you are done, you can turn password protection ON.
    Give kudos by clicking on the start please.
    Thanks!!

  • How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed and you don't know what it is now?

    How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed by the former husband and you don't know what it is now?  And you set up your own new ID and account but can NOT access the updates, from the App store for the many apps that you already have, because they require that you sign in with that former now inaccessible ID and account and password?  Call it a problem of modern times and changing relationships, if you want to be charitable.

    So I guess it will only be new apps that I download that are allowed to give me their updates while 13 updates wait for me on an ID I can no longer access.
    Yes...  sorry.
    In the future, if need be, you can re download your purchases for free  >  Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Good rule of thumb is to back up your purchases regardless  >  Mac App Store: Backing up your app purchases

  • Unable to access files with spaces in the path

    Hi all, I am accessing files which reside on the server using a java applet.
    The typical path of a file could be:
    http://192.168.0.2/agat/data/AF190701 0003.agt
    (not the space in the filename).
    When I try to open this file using a URL object:
    URL file = new URL(filename);
    BufferedReader in = new BufferedReader(new InputStreamReader(file.openStream()));
    I get exception 400 ( I think) whihc I assume is file cant be found.
    However when I rename the file (to get rid of that space) and also change the filename variable to suit. The file is opened as expected.
    What should I do to make the applet able to open paths with spaces? Or is this just not possible.
    I did try including quotes with the special characte precessor:
    filename = "/"http://192.168.0.2/agat/data/AF190701 0003.agt/""
    But this didnt work either, please could someone tell what I need.
    Thanks.

    Thanks guys, although before I got your replies I did the following - it seems to work, but shall try your suggestions.
    while (file.lastIndexOf(" ") >0)
    String temp;
    int num = file.lastIndexOf(" ");
    temp = file.substring(0, num) + "%20" + file.substring(num+1, file.length());
    file = temp;
    }

  • Office 2010 & 2007 - Excel and Access File Locking Out On the Network With Multiple Users

    This is also posted in the Office 2010 - IT Pro General Discussions, but was suggested to repost here, since a definitive answer was not found.
    Hi,
    An issue that's happening is that Excel and Access files are locking on the network. We're currently using Office 2007 and 2010.
    Here are some different scenarios that are happening:
    When opening the file it is locked out by “User X” which is the person that has the file locked out and no one else can open the file.
    When opening the file it is locked out by “User Y” which is NOT the actual person, but is locked out by “User X” and no one else can access the file.
    When opening the file  it is locked out by “…another user” which is generic and no one else can access the file.
    The two more common events are incident 1 and 2 with 3 happening the less common.
    This message will continue until the sessions are closed through computer management on the file server.
    The file server is running Windows Server 2003.
    This does happen on both Windows XP and Windows 7 clients.
    This does happen for users using Office 2007 and Office 2010.
    There are two sets of Office 2010 Users when it comes to patches. Everyone has the most current patches with Office 2010 SP2 while anyone that has Microsoft Project 2010 is using all the current update before Office 2010 SP2.
    All users that are using Office 2007 have all the current patches and service packs.
    Another variable is that we have users that will leave a file open on the network for 3+ days and after a while it will lock the file out.
    Also we have Shadow Copy that runs daily on the system which I'm not for sure if that impacts anything if a file is opening during that time.
    Any ideas on how to mitigate the lock out issues would be appreciated.
    Thanks,
    Binary Process
    Edit November 12, 2013: This issue can occur if and if not another person actually has the file open. If the person doesn't have the file open then there is a hung connection which needs to be disconnected by going to the Computer Management of the File
    server.

    Hi Binary,
    I know that the description of the hotfix does not relate to the issue. The purpose is to install it for upgrading SMB related file.
    A similar issue I encountered before:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/b7fcc59b-52d9-4a02-863a-1a529bcb8cb1/temp-doc-etc-files-dont-close-after-a-file-closes-this-causes-locked-files?forum=winserverfiles
    It is resolved by upgrading SMB files so maybe it will help on your case.
    Another hotfix which may related:
    http://support.microsoft.com/kb/983458
    If you have any feedback on our support, please send to [email protected]

  • I installed the system update to 10.7.3. After re-booting, my mail file was missing from the dock.  Looked in applications and the mail application is missing. Any thoughts?

    I installed the system update to 10.7.3. After re-booting, my mail file was missing from the dock.  Looked in applications and the mail application is missing. Any thoughts?

    Thanks Paul; but, taking your suggestion didn't solve the problem.  As mail is part of the OS, the updates don't have the capacity to reinstall applications; so, I had to reinstall the OS.  I now have my mail back (although it didn't appear on the dock--I had to go to applications and activate it and then put it back in the dock.  Thanks again for trying.

  • How to save files (example:csv) from the different subVI to the same folder of main VI?

    I would like to save files (example:csv) from the subVI to the same folder of main VI? Please help! Thanks.

    CP_AT wrote:
    I would like to save files (example:csv) from the subVI to the same folder of main VI? Please help! Thanks.
    I don't understand the problem. You write in the program where to save files, and it saves them there. Do you mean something else?
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • How to get file input stream from the client machine by JSF Fileupload API?

    Dear Friends,
    How to get the file input stream from the client machine by JSF HtmlFileupload or fileupload API. At present, if i execute the file upload code in the client machine, it is able to get the local path of the file and looking for the file in server machine. So i am getting FileNotFoundException.
    E.g., If a file is located at client machine at following location means "C:\Test\Test.txt",
    uploadClass.getFileuploadComponent().getFilename().toString() returns "C:\Test\Test.txt". But it is looking for that file in server and throwing FileNotFoundException.
    Please post your replies soon.
    Thanks,
    JP

    Depends on which version of JSF you're using. If JSF 1.2, I wouldn't even bother trying to hack this into JSF itself unless you can use something like Seam 2 or richfaces.
    http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/rich_fileUpload.html
    http://docs.jboss.org/seam/2.2.1.CR3/reference/en-US/html/controls.html#d0e29259 (look for s:fileUpload)
    But if I were you, a simple non-jsf form with a servlet works best for taking file uploads.
    As for JSF 2.0, there are other ways of getting it done.
    http://balusc.blogspot.com/2009/12/uploading-files-with-jsf-20-and-servlet.html

  • I got a java excutable file and document from the instrument supplier I want to use it in labview , I want to Know how to do it , step by step

    I got a java excutable file and document from the instrument supplier I want to use it in labview , I want to Know how to do it , step by step
    Attachments:
    this is a java file changr the jpg to jar .jpg ‏101 KB

    I'd recommend searching the forums to find your answer.  http://forums.ni.com/ni/search?submitted=true&q=java+labview

  • I upgraded to the new IOS, but lost data and apps. When I try and restore the only backup I see is the one made AFTER the lost data. How can I access an older backup from the cloud?

    I upgraded to the new IOS, but lost data and apps. When I try and restore the only backup I see is the one it made AFTER the lost data. How can I access an older backup from the cloud?

    Why don't you talk to apple and find out if backup exists? That conversation with apple will stop your guessing.

  • How do I access photoshop and illustrator  from the creative cloud on my i mac?

    how do I access photoshop and illustrator  from the creative cloud on my i mac?

    Log in to your Cloud account to be able to download and install
    Some general information
    http://www.adobe.com/products/creativecloud/faq.html
    http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall
    http://forums.adobe.com/community/download_install_setup/creative_cloud_faq
    what is http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
    Cloud Getting Started https://helpx.adobe.com/creative-cloud/topics/getting-started.html

  • New user...how do you drag or move or copy a file or folder from the desktop to an external drive?  I have tried dragging and copy/pasting.

    new user...how do you drag or move or copy a file or folder from the desktop to an external drive?  I have tried dragging and copy/pasting.

    My guess the problem you are running into is the drive is formatted for a PC as NTFS. OS X can read files from NTFS however it cannot write to it. Check the formatting on the drive, if it's NTFS then it should be reformatted to Mac OS Extended (Journaled), you can use Disk Utility to do this.
    If you still have a PC and want to share the EHD with the PC and Mac please read MacWorld's Share an external drive between a Mac and a PC article.

  • Hi, I can not delete files Film / video from the desktop it wants my password I write but Ando I can not float to Trash

    Hi, I can not delete files Film / video from the desktop it wants my password I write but Ando I can not float to Trash

    This topic has a fix for that problem: Desktop to Trash Problem: "Finder wants...: Apple Support Communities
    OT

Maybe you are looking for

  • Frames?

    Hi I want to be able to display a page from another website and display the contents in a HTML region with my APEX application. How would I go about this? I've tried normal HTML for opening a website in a frame and it doesnt display anything. Help pl

  • KSII default settings.

    Hello Gurus, This transaction is always defaulting to All cost centers. How to change the default settings to cost center group from All cost centers or How can block the price update only for cost center group ? Any help will be highly appreciated T

  • Wake to music on iphone?

    Anyone know how to get it to wake to a song file or album or playlist? Like with a regular Ipod you can do this but not on the iphone? Any help is appreciated

  • Must duplicate my photo because "this photo was previously edited with another application..."

    I've always used both iPhoto and Adobe Photoshop Elements for editing my photos. Previously, I could edit in the external application (Adobe PE), save the photo (back to iPhoto), go back into iPhoto and then still edit that photo within iPhoto if I w

  • Macbook Pro keeps shutting down after a period of inactivity

    I don't know if my problem is related to this but after trying to set up Apple's 1Password, my laptop now shuts down after some time after I put it to sleep or even if I don't put it to sleep but don't use it for awhile.      Any ideas?