Ahmed Abdul Baqi

Greenhorn
+ Follow
since Apr 24, 2009
Merit badge: grant badges
For More
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 Ahmed Abdul Baqi

do one thing on the servlet side send a response to the midlet if it is success or fialure and read the response on the midlet you are giving the failure in the exception it is not necessary that every time there will be an exception....so as the file is sent to the server send a success and if not send then send a failure and keep the whole code in try.....so save the response from the midlet that you are reading in a variable and check if that variable is empty or not if it is empty than send the response from the servlet as failure and if it is not null then send as success.....that will solve your problem....
14 years ago

Thanks Ahmed. But things are a bit confusing for me, it would be better if you can solve it.
You get connected to a servlet lying on web server. Then you open outputstream, add username and password to request and writing your request into bytes using the outputstream. Similarly with input sream you are reading till end of file.
> passing the two string as a request along with the url to the server
I am not understanding what exactly and how you are doing.

I also retrieve data from textFields of a form, and have to save them to a file lying on the server. Can you help me code how do I do this? Pass the parameters to the Servlet and do file saving operation in the servlet or directly access the fie lying on the server and save the details. Which option is better and how to code it? I can't make out and am confused.

Would be greatful if you can help me out.

Thanks


this is the midlet copy and paste it in the eclipse ide or editplus...read the commments

The servlet part just create a folder and run this servlet on your local system read the comments Let me know if you are able to understand

>
14 years ago

Trupti Mehta wrote:[quote=Ahmed Abdul Baqi
Hi Tripthi,
When any Mobile Application Development project comes the client will give the screen size on which the application should work like 240x320,176x280,320x240,So every screen size will have a base device based on the screen size and Device memory.The testing of the application will happen on these base devices like ex.6600,w580i and if the application works on these then it will work on n series and other w series devices.If you want to write a generic application that should be compatible for porting on all devices then you need to use geneirc methods in your MIDlet like getHeight(),getWidth and on the startApp() you need to check the screen size and then pass the height and width of the screen and the image or text box or pop up box will be printed on the canvas or form based on the screen size.But this practice will increse the lines of code in your MIDlet which will again give you another porting issue of wether the size of the application,so it depends people will create different applications for different screen sizes.



Thanks Ahmed and Tim for your guidance.
Ahmed, at present I make sure that my screen fits almost any mobile screen. If not I provide Up and Down key events which solves the purpose. For 2 Canvas's where I have to add items dynamically, I make use of GetHeight and getWidth to calculate accordingly. And all applications are working as expected also. The paplications that I work are standard base, not for any specific device.

One point I wouldl ike to know:-
Making differnet applications for differnce screen size or using LCDUI is a requiremetns for professional level of mobile development. Normal decent application which is appreciated by almost all customers can't be proved/known as Professional Mobile application. I want to know this as client is client is wondering about Porting, so I just want ot make sure from my side.

Thanks. Hope will solve my this last query regarding porting too.





Tripthi,
I am sorry couldnt understand your question can you elaborate.....
14 years ago

Ramesh Gudiya wrote:Hi...
Please advise me how to send vcards to my mail from my midlet...if it is not possible at least tell how can i retrieve it and store in my local system....as i am a newbie to j2me try to give me some sample code too...please its urgent respond me



HI RAMESH,

http://developers.sun.com/mobility/apis/pim/pim1/

check this site maybe it may help...
14 years ago

bhuvanesh Lk wrote:how to find the rms size in total not one record store size... total size of the RMS?? if it depends upron the mobile device whats the size of RMS in motoming..one record store size is 1mb..i want to know int total how many 1mb record stores can it store??



14 years ago

malli sunkara arjun sunkara wrote:i am new to the j2me but familer with the j2se and j2ee , can any body pleas guide me how to learn the j2me
please.




Download any free ebooks like j2me in a nutshell or j2me programming and read it...
14 years ago

14 years ago

Trupti Mehta wrote:
I have known that for professional mobile applications, it has to be available for all types of mobile screen sizes. Which is known as "Porting". Their are approximately 27 screen sizes. And the user selects mobile or screen size and we provide applicaiton for that size.

Can anyone help me know what is this and how to implement the it. Can't their be a way to develop a single application that is Ok with any screen size. Based on the screen size it fizes the components.

Any help is appreciated.



Hi Tripthi,
When any Mobile Application Development project comes the client will give the screen size on which the application should work like 240x320,176x280,320x240,So every screen size will have a base device based on the screen size and Device memory.The testing of the application will happen on these base devices like ex.6600,w580i and if the application works on these then it will work on n series and other w series devices.If you want to write a generic application that should be compatible for porting on all devices then you need to use geneirc methods in your MIDlet like getHeight(),getWidth and on the startApp() you need to check the screen size and then pass the height and width of the screen and the image or text box or pop up box will be printed on the canvas or form based on the screen size.But this practice will increse the lines of code in your MIDlet which will again give you another porting issue of wether the size of the application,so it depends people will create different applications for different screen sizes.
14 years ago