how to collect data from the screen and store that in a file

Put your problem here if it does not fit any of the other categories.

how to collect data from the screen and store that in a file

Postby ekambresh » Fri Mar 21, 2008 8:17 am

hi all, in my project there are lots of screens with edit box and checkbox,the user should select the options and write abt the particular product in those screen,my task is to collect all the data from all the screen and store it in a fille...can any one please tell me how to do it
ekambresh
ekambresh
Junior Developer
Junior Developer
 
Posts: 22
Joined: Fri Feb 08, 2008 8:54 am
Location: Bangalore

Top

create a file or use the sqllite db

Postby Rader » Fri Mar 21, 2008 8:52 am

you can create a file and append the data collected every time :

FileOutputStream os = context.openFileOutput(YOUR_LOCAL_FILENAME, Context.MODE_PRIVATE);
os.write(buffer,0,offset);

or you can just use SqlLite db, many examples can found on this site
Best regards,

Rader
Rader
Freshman
Freshman
 
Posts: 6
Joined: Thu Mar 06, 2008 8:10 am
Location: China

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Majestic-12 [Bot] and 21 guests