Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6924499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:40:15+00:00 2026-05-27T10:40:15+00:00

Please can someone give me a small sample of how to use the Storage

  • 0

Please can someone give me a small sample of how to use the Storage class in LWUIT? I have tried implementing by emulating the system used in the Recipe Hands-on-Lab, but my application does not need to have multiple objects, as it is within the sample.
Recipe sample allows user to add more and more samples, but all I want to do is add ONE entry of information.

Also how do I retrieve the info stored?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:40:15+00:00Added an answer on May 27, 2026 at 10:40 am
    com.sun.lwuit.io.Storage.init("MobileApplication1");
    if(com.sun.lwuit.io.Storage.isInitialized()) {
        com.sun.lwuit.io.Storage.getInstance().writeObject("MobileApplication1","My first string");
        String myStr = (String)com.sun.lwuit.io.Storage.getInstance().readObject("MobileApplication1");
        System.out.println(myStr);
    } else {
        System.out.println("Storage not initialized");
    }
    

    The above code will create a storage of name ‘MobileApplication1’, add an object ‘My first string’ and reads the string.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can someone please give me an example on the internet of how the system
Can someone please give an example of how to use the HashMap forall() method?
Can someone please give me a small piece of code where we display data
Can someone please give some fair idea about how to use JSON?
Can someone please give me a good tutorial on screen scraping. I have a
Can someone give me a hand with this please? I have been using jquery-validate
Can someone please give regular expression for a word, which should have: length in
Can someone please give me an idea of how the WIRED Magazine on iPad
Can someone give me a simple example involving threads in this manner, please. Problem
What is the difference? Are these the same? If not, can someone please give

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.