Joe Augustine

Greenhorn
+ Follow
since Apr 17, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Joe Augustine

Hi all,
I send these queries to almost all Palm-J2ME sites and i didn't get any response.Now the only hope is in this site.......
If i am not getting any response,i will make sure that MicroJava is totally a failure and nobody is seriously developing any Palm application in Java ...............!!!
1. Is it possible to use a C++ library in J2ME ?
I have some C++ header files to do some of the general functionalities in a better way.
If i can call these header files,then my life will be very easy.
2.Not able to popup a messagebox sucuessfully
For this i am using the class OptionDialog.
But the error what i am getting when i try to run in Palm is :
"No such method (Ljava/awt/Component;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V"
I couldn't make out anything from this error.There is no error while compiling.
So i guess whether my KVM is not supporting this class or not....can u pls give me a suggestion on this.
3.Regarding '-networking' flag option while making prc file.
How i am planning to do my application is -
if palm has got a wireless connection (online mode) then the application should interact with a remote database via HttpConnection.Otherwise it will store data in a Palm local DB.
Now the problem is,if i want to make a Palm application supposed to communicate over network,i should use the flag -networking while making prc.If i do so,when i click on my application icon, in Palm, first it will bring java Duke screen
and then will try to establish a wireless connection.Without establishing a sucessful connection the application won't comeup.
So,in this scenario how can i maintain a single application that should work in online as well as offline.
Hope the situation is clear.Pls let me know if u guys need anymore info ,so that u can give me a better reply.
I would be really Thankful and appreaciate if someone challange me with a better response.
17 years ago
So u mean to say that in J2ME applications we cann't incorporate C++ header files ? Ummmm....who told MicroJava is great!!!
17 years ago
Why nobody is responding.............???
17 years ago
Hi friends,
Does anybody used OptionDialog class and its methods sucessfully in Palm with KAWT supporting KVM.
The error what i am getting when i try to run in Palm is :
"No such method <init>(Ljava/awt/Component;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V"
I couldn't make out anything from this error.There is no error while compiling.So i guess whether my KVM is not supporting this class or not....
Actually i want to popup a messagebox.
If anybody did this sucessfully pls be kind enough to send that piece of code and the KVM version.
Otherwise what else is the solution.
I would really appreciate a reponse.
Thanks
Joe
17 years ago
Hi,
How do i include C++ header files in J2ME application and there by to reuse the code.If so how can i pass pointer type parameters to the functions in the external files.Does the javah tool work for J2ME also.I tried but didn't compiled properly.
Hope to hear a suggestion soon.
Thanks
Joe
17 years ago
Hi,
Do u guys think that J2ME is matured enough to give birth to a professional Palm App product.Or can u point out some products that overcomes the following limitations.
These are the problem i am facing right now with J2ME:
1.I donot want to show the end user of my Palm app, the Duke symbol and the comment loading class and all.....when he clicks on my application.
2.My application should provide an extensive htttp communication with a remote server,to access data.(with CLDC.More feature rich MIDP is not yet available in Palm).Do u think with CLDC i can accomplish a stable and error free communication ?
3.User should be able to enter data through Palm Keyboard ('abc' and '123' option of palm).He may not be good in drawing the charatcers with graffiti.
These are the limitations i met so far...just by making a sample application.
Ur suggestions and corrections are most welcome.
Thanks
Joe
17 years ago
Yes, i mean to ask whether a Palm user can invoke Palm Keyboard ('abc' and '123') from a J2ME/CLDC application ?? If not,how an application developed with J2ME/CLDC API's will be useful to a user,unless he is an expert in graffiti.Is there any way to handle this ?
Originally posted by Eric Giguere:
I'm not sure if you mean can you cause the built-in keyboard to popup on the screen or can you trap key events. The former isn't possible, the latter is -- just define a keyDown method in your Spotlet class.
Eric

17 years ago
Hi all,
How to enable Palm Keyboard in a J2ME palm application.
I made my sample application from Spotlet class and i am using CLDC.If spotlet class donot support Palm Keyboard and what is the other alternative.

Thanks in Advance
Joe Augustine
17 years ago
Hi ,
I am developing a Palm App with J2ME and CLDC API's.
I made a sample application and tested in Kyocera Palm device and i am so thrilled to run it.
Now i want to make my application to communicate with a remote Oracle database.For this i am planning to make my Palm application to talk with Servlets in a webserver, so that i can send and recieve data extensively.
But i am not able to do the communication module successfully.
I tried out a sample code and it didn't throw any exception and the return values of every function said it is sucess.So i thought i did all !!!
And later i tried with a jung (invalid) URL and i got shocked to see the same result ..i mean no error.All the branches of the program returned success values.
What does it mean ??? So my application actually not contacting any URL. Otherwise it should throw some invalid URL exception.....right ?
But in both the cases the number of bytes returned by read function was 0 and none of the other connection function throwed any exception,
like connect(),OpenInputStream...etc.
This is my sample code.

-----------------------------------------------------------------

StreamConnection m_Conn = null; //Connection

DataInputStream m_In = null; //Input Stream

String sURL = "http://63.221.48.58:8080/servlets/AirScriptLogin";

try

{

StringBuffer sbInput = new StringBuffer("");

int iData;

int iCount = 0;

m_Conn = (StreamConnection)Connector.open(sURL,Connector.READ_WRITE,true);

m_In = m_Conn.openDataInputStream();

for(iCount = 0 ; (iData = m_In.read()) > 0 ; iCount++)

{

sbInput.append((char)iData);

}

m_In.close();


MsgTxtBox.setText("Recd :"+sbInput.toString());

MsgTxtBox.paint();

}

catch (RuntimeException e)

{

MsgTxtBox.setText(e.getMessage());

MsgTxtBox.paint();

}

catch (Exception e)

{

MsgTxtBox.setText(e.toString());

MsgTxtBox.paint();

}

------------------------------------------------------------------------

If i understood anything wrongly pls correct me.And pls tell me what should i do....i am really in a trouble.
Pls let me know if u need any more info ,so that u can give me a better reply.
Hope to hear from u soon.
Thanks and Regards
Joe Augustine
17 years ago