08-01-2008 11:26 AM
Hi,
I have a question related to Article Number: DB-00570
In this article I changed "BrowserConfig" to "IPPP"
ServiceRecord[] records = sb.findRecordsByCid("IPPP");
the utility methods throw a null pointer exception. Also, what does the number "4" mean in the following method:
private String getTransportUID(ServiceRecord record)
{
return getDataString(record, 4);
}
What I want to do is read the Transport UID (The one which start with S ...) of all the records in the service book. Please guide me if there is a better way to do this. The same thing also happens to CMIME records.
thanks in advance,
yosoh.
Solved! Go to Solution.
08-01-2008 02:32 PM
That method is returning the field of "type" 4, which maps to the transport UID in the byte array returned from record.getApplicationData().
The ServiceRecord.getUID method should return the value you are looking for as a String.
08-04-2008 04:30 AM
Thanks Mark, that worked !!
regards,
yosoh.