Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

NTT Docomo scratchpad

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's very difficult to find information when running into trouble with the NTT Docomo api, and I thought writing to scratchpad should be as easy as using the recordStore in j2me. I did exactly as the manual says, but kept getting the same exception - ConnectionException, status=SCRATCHPAD_OVERSIZE (11). Did I miss something, like setting a default size for the scratchpad? Here is what my two lines of code looked like:
DataOutputStream outs = Connector.openDataOutputStream("scratchpad:///0");
outs.writeInt(myCount);
I also trying using OutputStream, with shifting myCount and & 0xff to write out each byte, got the same exception.
I'll appreciate any help or pointer.
Jerry
 
Tomorrow is the first day of the new metric calendar. Comfort me tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic