This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can store image and text in rms seperately but not together

 
Leo Max
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://mycapp.clanteam.com/src.zip

The zip file has 3 files.
TextOnly shows the code to storing textfields like name age number and so on
ImageOnly shows the code to storing images. I'm using netbeans
Midlet is an attempt to store both types in the same RMS.

When you run Midlet, it'll create a recordstore and insert 3 records. Each record is composed of several strings and the locaiton of a picture ie /pic.JPG which I've added to the resources folder. I'm using netbeans. After the recordstore is created, the names of every record (composed of first and last names) appear in a list on the screen. I simply choose one of the names then click MENU then OPEN and it will take me to a new form where I can view that person's picture.

I can't get it to work. I attempted combining both TxtOnly and ImageOnly but failed. I just don't see where it's going out.

Thanks in advance.
 
Gopinath Karyadath
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

use png instead of JPG


Regards
 
Leo Max
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sorry for mix up. I had posted a different version of the midlets I created. Yes, after adding some images, RMSMidlet works. It shows the pics and everything.

correctsrcfiles
Like I said in my first post, images only works and txt only works. But when I try to store the image and the txtfields in the same RMS i fail.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic