Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

scratchpad's counterpart in J2ME

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am now working on a game turned from NTT Docomo iApplication to J2me,but scratchpad used in iApplication puzzled me,how can I replace scratchpad in J2me?
Sample code:
/*protected yCanvas() {
try
{
OutputStream out=Connector.openOutputStream("scratchpad:///0");
out.write(gifData);
out.close();
}
catch(IOException e){
System.out.println("Failed write to scratchpad.");
IApplication.getCurrentApp().terminate();
}
*/
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the iAppli 'scratchpad' a way to store information locally on the phone? If so, the MIDP equivalent is the RecordStore (package javax.microedition.rms).
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic