• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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).
 
I will suppress my every urge. But not this shameless plug:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic