Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8146103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:52:53+00:00 2026-06-06T13:52:53+00:00

I am currently using Java ME to extract Addressbook (ContactList) fields in a device

  • 0

I am currently using Java ME to extract Addressbook (ContactList) fields in a device via PIM (JSR75 Spec). I am having problems on getting the value’s maximum length of a field if the field’s datatype is a String. I initially thought there’s a method in the API that is like getFieldLength(int fieldId) but unfortunately found none.

Is there a way I can get this?

I need to know the field’s data length because I only read the field definition itself. Not the values. I need to collect all the supported fields in a device. From the those fields, I need to get the field’s name, data type and maximum length. We are putting the said infos to our server application for device porting purposes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T13:52:54+00:00Added an answer on June 6, 2026 at 1:52 pm

    Retrieving the maximum length of a field is not part of the PIM API.

    You can however work around that by attempting to write content of increasing length to the field.

    Failure to write content will throw an Exception.

    For each field you want to test, write 512 bytes, then 1kb, 2kb, 4kb…

    My guess is that most phones will allow you to write all the data you want.

    Remember to delete fields between write attempt.

    If you really need to be precise to the byte, you can use dichotomy once you have found an upper limit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently using Java lucene for one of the project and getting OK
I'm making a simple game in Java using swing and am having problems with
I am currently using Java to communicate with device through Serial communication. I have
I am currently in a Java class using Java: How to Program, Ninth Edition
I am currently looking in to some file uploading using Java Server Faces. I've
we are currently working on a new web application using Java and MySql. We
I am working on an IMAP client using java mail. We currently have a
I am using the URLUTF8Encoder.java class from W3C ( www.w3.org/International/URLUTF8Encoder.java ). Currently, it will
This is my first time using JFileChooser in Java and I'm currently attempting to
I'm currently trying to add the facebook apps request from our java server using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.