• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scratchpad's counterpart in J2ME

 
Mike Kao
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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();
}
*/
 
David Price
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • 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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic