J2ME RMS and Palm OS

I am trying to capture data entered by the users in RMS. I have no trouble doing so in the phone emulators of the J2ME Wireless Toolkit, but the Palm emulator does not save the data. I tried blocking flush()- as someone suggested to me, but no success. Can someone look at my code or give me some ideas? Thanks
if (command == saveCommand) {
String vt = vType.getString();
int vtID = Integer.parseInt(vTypeID.getString());
String shp = shape.getString();
String mk = make.getString();
try
writeRecord(vt, mk, shp, vtID);
public void writeRecord(String vt,String mk, String shp, int id)
try
ByteArrayOutputStream baos = new ByteArrayOutputStream();
DataOutputStream dos = new DataOutputStream(baos);
byte[] record;
dos.writeUTF(vt);
dos.writeUTF(mk);
dos.writeUTF(shp);
dos.writeInt(id);
//dos.flush();
record = baos.toByteArray();
valveTypeStore.addRecord(record, 0, record.length);
//baos.reset();
baos.close();
dos.close();

did u call the closeRecordStore() method of RecordStore??

Similar Messages

  • Wireless connection speed for J2ME app on Palm VIIx device

    I have just developed a J2ME app on Palm VIIx device. Everything works exactly as what I have designed, except that the wireless communication to send and receive infomation is painfully slow. It takes about 1 min. to send and receive 300 charactors on the Palm VIIx device. As for comparisons, it only takes few seconds on the simulator(connected through LAN/WAN) for the same application. And for other defaultly installed non-J2ME wireless applications on the Palm VIIx device, e.x., ABC News, Amazon, etc., it also only takes few seconds to retrieve 500~600 characters.
    Does anybody know why the J2ME wireless communication on Palm VIIx device is so slow? Any solutions?
    My code is like in the following:
    private String getWirelessQueryResult(String urlStr) {
    StringBuffer sb = new StringBuffer();
    InputStream is = null;
    StreamConnection c = null;
    try {
    c = (StreamConnection)connector.open
    (urlStr,Connector.READ_WRITE);
    is = c.openInputStream();
    int ch;
    while((ch = is.read()) != -1) {
    sb.append((char)ch);
    } catch (IOException e) { sb = new StringBuffer("error"); }
    finally {
    try
    if(is != null) { is.close(); }
    if(c != null) { c.close();}
    catch (IOException e) {}
    return sb.toString();

    You've done nothing wrong with your code that I can see. I have run into the same problem on both the Kyocera and the Samsung palm OS phones. If you take the same code you have written here and put it on a motorola phone you will see a huge difference.
    I can only suspect it has to do with the single threaded nature of the palm OS itself. Luck.

  • DELETE J2ME RMS after replace application

    Hi,
    I would like to ask about RMS
    When J2ME application uninstaled the RMS is uninstaled too,
    What heapend when i just replace application? what can i do if i want to delete the RMS when i replace application?
    Thanks

    Ok
    I understand now. On the user's phone you want to delete the RMS. My bad. Well, the only solution I could come up to right now, is to incorporate into the application a 'one time task' which at the beginning of the application, looks for the RMS and deletes it. Remember, it should be a one time task, maybe done in a separate thread than the main one.
    This could be done in my opinion in 2 ways:either by using a permanent RMS which you will not delete when you update, and where you will keep a field which tells you if the desired task whas performed or not, or by accessing a file from the application (file which you will put in the 'res' directory) where you keep a some text which tells you if you need to delete the desired RMS or not.
    Sadly, this will be done every time the application is started; even if the RMS is deleted only once, the check-up is still done.
    Hope this helps.
    Mihai

  • Communication between J2ME MIDlet and J2SE server

    In my project I need to be able to exchange SMS messages between a J2ME MIDlet and a J2SE server? Is that possible? I tried the following:
    I included the CLDC, MIDP and WMA libraries in the classpath of my J2SE server and tried to use the wireless messaging API in the J2SE server. I get the following error message while trying to establish a MessageConnection:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: com.sun.midp.Configuration.getProperty0(Ljava/lang/String;)Ljava/lang/String;
         at com.sun.midp.Configuration.getProperty0(Native Method)
         at com.sun.midp.Configuration.getProperty(Configuration.java:34)
         at com.sun.midp.io.InternalConnector.<clinit>(InternalConnector.java:91)
         at javax.microedition.io.Connector.open(Connector.java:158)
         at javax.microedition.io.Connector.open(Connector.java:138)
         at javax.microedition.io.Connector.open(Connector.java:120)
    Can anybody provide any suggestions?

    The communication should be done through these ports: https://social.technet.microsoft.com/Forums/windowsserver/en-US/6de9c3f0-2841-4a74-80bb-46a02779124b/which-tcp-ports-does-a-workstation-use-to-authenticate-to-ad-and-get-group-policy?forum=winserverNIS
    To have better visibility, you can setup a network sniffer like Wireshark and observe the traffic.
    As the ADFS and DCs will be located in the same LAN then it should be okay as no filtering should be done (Unless if this is done on local firewalls of the servers).
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • Could I upgrade software in Palm III and Palm V?

    As the topic says, can I update firmware in Palm III and Palm V?
    Could a Palm III update package be beamed to Palm III from Palm V?
    If Palm V can be updated, plz post a link to an update pack and a short explanation how-to-update (if the forum rules don't ban posting links to update packs, of course)
    Post relates to: Palm III

    If the information is in iTunes on the computer you have synced with in the past another sync, being sure you select the items you want on the iphone, should copy those things back to the iPhone.

  • Can DRM protected document be read in Pocket PC and Palm ?

    Hi,
    For Pocket PC and Palm, Adobe Reader have some special
    version (2.0) for these platform.
    Are these Adobe Reader compatible with the DRM mechanism
    of Adobe Policy Server (APS) and Document Security Server (DSS) ?
    (I guess it maybe work if Asynchronous or WI-FI could be applied)
    Could anybody give some suggestion about this?
    Thank you very much.
    Regards
    Joseph

    Unfortunately the version of the handheld products we have today do not support the Policy Server. I have passed your comments onto the Product Manager for future consideration.

  • Synching Zire 31 with both Outlook 2003 and Palm Desktop

    I use Outlook at work but not at home so I synch my Zire 31 with Palm Desktop at home.  It works fine synching with both.  I like the Memos and Tasks features better on Palm Desktop, so I would like to use them at work. I'd like my Zire to Synch at work with Outlook for some features (i.e. Contacts and Calendar) but with Palm Desktop for others (i.e. Memos and Tasks). 
    When I use the setup CD, it asks if I want to synch with "Palm Desktop" or with "Outlook and Palm Desktop".  Based on this, it sounds like I should be able to choose the 2nd one and synch with Outlook and Palm Desktop, but I can't get it to do that.  When I choose that option and then go into Custom for synch setup, the only options there are for Outlook.  How can I get it use Palm for Memos and Tasks?
    Post relates to: Zire 31

    Hi..  Welcome to the Palm forums.  What it is asking is, for Calendar, Contacts, Tasks and Memos do you want them to sync with palm desktop OR outlook?   Its all four or nothing.  When it is both what it means is if you sync with outlook, calendar, contacts, tasks and memos will sync to outlook all others, media, all your settings etc will go to palm desktop.  The main 4 can NOT be seperated its all or nothing.

  • J2ME framework and design patterns

    Hi everyone.
    I'm thinking of building a few J2ME applications, and was wondering if there are any frameworks for this (i.e. for building midlets)? For web applications you have frameworks like Struts (Jakarta/apache), but I've not found anything for J2ME.
    Also, any known and proven J2ME design patterns would be of great help!
    Thanks for all your help!
    Best regards,
    Arnt

    Hi
    AFAIK there r no frameworks, you dont need them - everything you code should be as simple and straightforward as possible.
    Hmmm... proven design patterns, well, as I've found standard Java DP can't be used in J2ME, cause you need to do everything with small amount of memory and processing power. Object programming is cool, but it makes big impact on speed of code and on size of generated classes.
    And believie me, sometimes those 2-3 kb make difference (eg. on Nokia 6310i, where you have 30 KB of memory, on 3510i it's about 60KB...)
    So, one patter of which I can think about is - make your code simple :)
    regards
    Leszek

  • ISync and Palm : difficult

    Hello,
    There are 2 pbs :
    * there is no way to have the palm icon being displayed in the isync front windows
    * when the sync is started directly from the palm, it does not sync properly the phone number : as there is no more any way to reinitialise the palm with the data from the computer (as isync can't access the palm), it syncs in the 2 directions. Then the data from the palm generate a resynchro for 250 phone numbers (the home phone are ste as work phone in address book) out of my 560 contacts.
    I have accepted once these modifications, then changed all the numbers in adress book to set them back as home phone... But on the next sync, it asks me again to resynchro the 250 numbers, as if it was syncing only from the palm, and not taking in account the adress bokk modifications...
    I have already tried the followings :
    * destroying the palm sotware and reinstal it
    * destroing the "app support" for isync and palm
    * destroyng the pref for isync and palm
    I have tried to reinstrall isync, but the 2.3 version seems not available on apple site... (only 1.5, an 2.1 on another site)
    Context :
    I have re-used my palm after may be 1 year without any use.
    I was then in a previous version of OSX on the last sync 1 year ago (I have read things about first isync and 10.4.6... Too late ! )
    I have a Palm zire 31

    There is no easy way to do this. You must manually reconfigure the conduits each time you want to move from one environment to the other. [But, see the note of caution at the end of this message.] Also, reinstalling the Palm Desktop after iSync is installed and configured can create problems, so if you want to move from one evironment to other, do this:
    Locate the active Conduits and Disabled Conduits folders, here:
    Macintosh HD:Library:Application Support:Palm HotSync
    To activate the Palm Desktop, move this conduit to the Disabled Conduits folder:
    • Apple [that's the Finder name of the iSync Palm Conduit]
    To activate the Palm Desktop, move ONLY these conduits to the active Conduits folder:
    • Calendar Conduit
    • Contacts Conduit
    • Memos Conduit*
    • Tasks Conduit
    The analagous but outmoded Address, Datebook, Memo and ToDo conduits should remain in the Disabled Conduits if they are present at all in your configuration.
    *If activated, the Memos conduit will synchronize memos with the Palm Desktop. iSync has no memo function, and the older Memo [singular] conduit should always remain inactive if present.
    To reverse the process, do just the opposite to restore iSync and deactivate the Palm Desktop. As explained above, however, leave the Memos conduit active if you wish to synchronize memos at all.
    A word of warning: the SyncServices framework is complex, and subject to sudden and unexplained data errors due to corruption of actual data or the handlers which push and pull it to and from the truth database. Every time you act in a manner which increases this complexity—such as moving back and forth from one synchronization environment to another—you greatly increase the likelihood that you will corrupt your data, and you place your synchronization scheme at greater risk of failure.

  • What do early adapters think about the Pre (and Palm in general) now?

    So, CES 2010 has come and keynotes have been made.  For those of us who have been though the early days when EAS Pin lock wasn't supported, running into application install limits, finding peace within Preware, Fair Dinkum and File Coaster today couldn't come fast enough.
    As I race though the streets in "Need For Speed: Underground" on my Pre (my very first purchased application), I actually feel that Palm may indeed be back in the running.  Is it too little, too late?  I don't know.  All I know is that for the first time in the last five months, I don't feel like swapping out my Pre for an Android device, I don't feel like the iPhone is completely immovable from it's perch and I sure as heck won't feel odd about showing anyone (especially iPhone owners) the games I have installed!
    It's still early but what I've seen so far I like.  I'm actually excited to see what more can be accomplished with WebOS and Palm.
    Any other thoughts from my fellow early adapters (not-so-early adapters are welcome to comment as well!)?
    Post relates to: Pre p100eww (Sprint)
    Post relates to: Pre p100eww (Sprint)

    Very excited in what Palm has accomplished in so short a time. I've remained much more positive than you seem to have become prior to CES, but I'm definitely as excited after. Maybe more so.

  • Courses about RMS and RIB

    Hi.
    You know the name of a company that offers courses of RMS and RIB besides Oracle
    Regards

    Hi Vijay,
    Go to the Log files of the respective installations. You can find the URL's of those applications in the log files.
    Regards,
    Anvesh Reddy

  • DC component measurement using BasicDC-RMS and AvgDCRMS

    Hello,
    I am planning to calculate the DC component from a noisy signal.Both the BasicDC-RMS and AvgDCRMS vi's will the give the ouput as the waveform but how to get them as a constant instead of showing it with the waveform.As the DC component of the signal obtained will be used for the later calculation with a formula.
    Thanks in Advance.
    Solved!
    Go to Solution.

    I just use the Basic Averaged DC-RMS.vi.  It returns the DC value of a waveform.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Rms and ad fs 2012 integration

    I am trying to follow the documentation with AD RMS and AD FS integration. The TechNet articles, videos, and blogs are all dated. For example,
    http://technet.microsoft.com/en-us/library/ee256071(v=WS.10).aspx
    Even the new posts reference the old ones on this subject - i'm looking for a step-by-step on how these two are integrated.  The UI in ADFS 2012 is different and I don't know AD FS well enough to translate.  I would love a TechNet Lab
    Guide on these procedures but so much of the new documentation focuses on just the new features. Some help or a link would be appreciated.
    TIA
    Jason Yates

    Hi Jason,
    I suggest you download this word document:
    AD RMS with AD FS Identity Federation Step-by-Step Guide
    http://www.microsoft.com/en-us/download/details.aspx?id=17279
    In addition, here is another article:
    Federating AD RMS
    http://technet.microsoft.com/en-us/library/ee256071(v=WS.10).aspx
    I am sorry that I wasn’t able to find step by step documents which are dedicated to Windows Server 2012, though most steps in above documents should also be applicable.
    Best Regards,
    Amy

  • ICal and Palm TX no longer syncing properly in 10.4.7

    I have a Palm TX and have always been able to update the calendar on my Palm with the events in my iCal. Now it claims that the sync was successful, but not a thing has changed on either device. I doesn't matter what I choose in the conduit settings, they simply won't update each other, despite the fact that both devices say they did. I've tried resets on the Palm and such, but no luck. And there is absolutely no useful information on the Palm site. Even when you try to get Mac info, you are often directed to Windows articles and such. Everything worked until I updated to 10.4.7. Anyone familiar with this?

    So I'm not the only one!!!
    I have the exact same problem. I have a new MacBook, iPod, and Palm TX. I set them all up (using Missing Sync for the TX, and iTunes for the pod), and everything worked like a champ until one day I opened iCal and discovered it had dumped everything (ALL calendars), so I recreated the calendars & events (didn't have a backup yet), and since then, both Missing Sync and iTunes both show the old (now non-existent) calendars to sync -- not any of my new calendars are avaliable in either program's menu to sync.
    I too have emailed MarkSpace (no answer yet) thinking it was originally a Missing Sync issue, but then discovered that iTunes was doing the same thing, so the problem must be in iCal? My updated Address Book contacts sync on both the TX and the iPod like a champ, so the issue must be with iCal I guess...
    Glad to hea I'm not the only one who's run into this; thanks in advance for any ideas!

  • Reinstall WinXP and Palm Desktop - Don't Want to Lose Data ??

    Hi - searched for this in the forum, but didn't find any answers to my particular situation.  Just need to make absolutely certain I don't lose anything.
    Had to perform a format/reinstall of XP in December.  All up-to-date with service packs, etc.
    Now need to reinstall all my Palm stuff.
    I have all the files from my pre-format stored in a massive hard drive backup on a separate drive.
    My Centro is up-to-date as of December right before re-install; I have added some additional contacts/appts in the Centro since then.
    I have added some other data in Outlook 2003.
    Now, after I install the Palm desktop:
    How would I perform my first hot-sync?
    How do I get all my programs etc. back?  They are on the Centro right now - I don't want to lose them.  Some don't need to sync with computer and some do.  I can't afford to lose the data in these programs.  Will syncing with the phone (overwriting the desktop) allow my programs to stay the way they are on the Centro right now?
    Do I need to do something with the backup I made?  Is it even useful?
    Thanks in advance, and let me know if I'm not making sense.
    Melody
    Post relates to: Centro (Sprint)

    Hello!
    Fresh reinstall of Windows and Palm Desktop?  If so then all you need to do is plug the cable into the phone and hit the black button.  Palm Desktop will prompt create new user, just hit yes and your all set!  The hotsync process auto does a handheld overwrite sync style for this inital process.  If you already created the username in Palm Desktop that is the same as the Centro and have not yet hotsynced, rename that user to whatever and then do that sync.

Maybe you are looking for

  • I have forgotten my password for my iphone 4s and can not back up the phone? I do not want to lose what I have on the phone

    HELP I can not remember my password and trying to back up my phone after a long time but it wont do it becuase it needs a password... how can I either reset my password or back up my phone without losing all the information and photos on it.

  • Flash Error #1009 -- NEED HELP!

    Okay.  I am relatively new to AS3 and I have been working on creating a visual timer.  My code is very simple, and I can't figure out why Flash Pro CS6  is giving this error message in the Output: TypeError: Error #1009: Cannot access a property or m

  • Picts vs Tiffs for FCP 5?

    I'm doing a project where I'm using graphic overlays that super over my video. Based on a suggestion from one of the FCP threads, I followed the directions from a site <http://fcpbook.com/Photoshop1.html> that suggested using PICTs. I am very familia

  • 256 Colors/Old Games

    is there anyway to fix this manually, i have tried everything i can think of except using the start up disk to try and revert to an older version for leopard so i can play fallout again i have the GMA X3100 Graphics card witch Ive heard had the most

  • Plz send me the differnce between XD01,VD01&FD01

    Hi Friends, Pls send me reply immediatly, pls telle me what is the difference between XD01, VD01,FD01 Thanking you, With regards Lux.