wood burning stoves 2.0*
The moose likes Java Micro Edition and the fly likes Modification of an application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Modification of an application" Watch "Modification of an application" New topic
Author

Modification of an application

Baris Turkkorkmaz
Greenhorn

Joined: Feb 12, 2012
Posts: 1
Hello.

I have an Java Mobile Phone English-Turkish Dictionary Application.

In the installation file of this mobile application there is a db/ph folder. In this folder there are database files having extensions a-z contain phonetic transcriptions of English words. These phonetic databe files were saved in ANSI format. But, when these phonetic database files are saved in UNICODE format, mobile application program can't run these phonetic database files.

I think that this problem arises from "paramString" string, but I can't do anything for it.

Could you modify this mobile application to run phonetic database files saved in UNICODE format, please?

Thank you.

NOTE-1: The installation file and text files which contains codes of decompiled Java Class Files of the installation file, are compressed to a zip file. But I can't attach this Zip file to my thread because of its big size, so this Zip file can be downloaded from https://rapidshare.com/files/1771617311/MODIFICATION.zip link.

NOTE-2: Here is function, which is in codes of CepIngilizce Java Class File, shows phonetic transcriptions of English words:

private void b(String paramString)
{
this.jdField_a_of_type_JavaLangStringBuffer.delete(0, this.jdField_a_of_type_JavaLangStringBuffer.length());
this.jdField_a_of_type_JavaLangStringBuffer.append("/db/ph/pdb.");
this.jdField_a_of_type_JavaLangStringBuffer.append(paramString.substring(0, 1));
InputStream localInputStream = getClass().getResourceAsStream(this.jdField_a_of_type_JavaLangStringBuffer.toString());
int i1 = 1;
int i2 = 0;
try
{
this.jdField_a_of_type_JavaLangStringBuffer.delete(0, this.jdField_a_of_type_JavaLangStringBuffer.length());
this.jdField_a_of_type_JavaLangStringBuffer.append(paramString);
this.jdField_l_of_type_Int = 0;
Object localObject;
while (i1 != 0)
{
localObject = new StringBuffer();
while (((i2 = localInputStream.read()) != 44) && (i2 != -1))
((StringBuffer)localObject).append((char)i2);
if ((localObject = ((StringBuffer)localObject).toString()).compareTo(paramString) == 0)
{
this.jdField_a_of_type_JavaLangStringBuffer.append(" = ");
while (((i2 = localInputStream.read()) != 10) && (i2 != -1))
this.jdField_a_of_type_JavaLangStringBuffer.append((char)i2);
this.jdField_l_of_type_Int = 1;
}
else
{
while (((i2 = localInputStream.read()) != 10) && (i2 != -1));
}
if ((this.jdField_l_of_type_Int == 1) && (!((String)localObject).startsWith(paramString)))
{
i1 = 0;
if (this.jdField_a_of_type_JavaLangStringBuffer.length() != paramString.length())
i2 = 0;
else
i2 = -1;
}
if (i2 == -1)
{
i1 = 0;
this.jdField_a_of_type_JavaLangStringBuffer.append(" It can not be found in phonetic database. ");
}
}
(localObject = new Alert("Phonetic transcription")).setString(this.jdField_a_of_type_JavaLangStringBuffer.toString());
Display.getDisplay(this).setCurrent((Alert)localObject, this.jdField_c_of_type_JavaxMicroeditionLcduiForm);
return;
}
catch (Exception localException)
{
a("It can not be found or there is a error occured.");
}
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Modification of an application
 
Similar Threads
passing array in to method...doubt
ARRAY doubt
Arguments
string buffer
Unicode and Property files