You Are Here:

Community: Developer Discussion Boards

#1 Old how to add / append the substring from inputstream into list in j2me urgent help - 2009-05-31, 13:42

Join Date: Mar 2009
Posts: 25
Location: pakistan
Send a message via Yahoo to ziathegreat
ziathegreat
Offline
Registered User
Please any one can help me only tips will be good if any one can guide me
that inwhich i can solue my problem.

on the server side my code is the following (the server is j2se server)

File f1=new File(inFromClient);
File[] f2=f1.listFiles();
for(int i=0; i<f2.length; i++){
//System.out.println(f2[i]);
path=path+""+f2[i]+"\r\n";
}
//System.out.println(path);

out.write(path);
out.close();

On the client side i have given the input "F:\Mobile Songs"
and have produced the following result on the j2me client side

F:\Mobile Songs\AVSEQ10_mpeg4.mp4
F:\Mobile Songs\hai guzarish_mpeg4.mp4
F:\Mobile Songs\teray bina.avi
F:\Mobile Songs\Tujay mere qasam.avi
F:\Mobile Songs\YEH MERA.avi
F:\Mobile Songs\Zindagi istra say.avi
F:\Mobile Songs\Thumbs.db
F:\Mobile Songs\zara_sa.mp4
F:\Mobile Songs\marjaani_billubarber.mp4
F:\Mobile Songs\love_mera_hit_hit.mp4
F:\Mobile Songs\haule_haule.mp4
F:\Mobile Songs\dance_pe_chance.mp4
F:\Mobile Songs\RabNayBanaDeJoore1.3g2
F:\Mobile Songs\RabNayBanaDeJoore2.3g2
F:\Mobile Songs\VTS_02_0.3gp
F:\Mobile Songs\VTS_02_1.3gp
F:\Mobile Songs\VTS_02_2.3gp


now i am telling u to every one that i have displayed the result on the client side on the form
but now i don't know about dynamic listing i.e in which i can select one of the file that request goes to server for streaming the video file from j2se server to j2me client.

only tips will be good for me if u give me "for selecting any one of the file"
i know about static listing of files but don't know about dynamic listing of files

OR any body tell me inwhich way i can put every line of output to j2me list.
and also it work for me like this way
in the beginning of every line in list start with index number
1.
2.
3.
4.
and so on up to the number of files given in each line.

i want that this index number can help me in selecting the specific line that represent file that has to be sent to server
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
J2ME List abhi4busy Mobile Java General 3 2009-06-27 09:57
J2ME and contact list morphine_titan Mobile Java General 7 2009-01-06 08:49
Problem with Skin enabling - disabling and Setting List in S60 sauvikds Series 40 & S60 Platform Feedback 6 2008-08-23 15:29
急问:嵌入汇编遇到的几个问题!!! wangfei406 Symbian 3 2005-11-29 09:11
How to add entries to To-Do List (V Urgent) dijox General Symbian C++ 1 2002-07-16 20:41

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia