related to csv file

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

related to csv file

Postby Niketa » Thu Nov 06, 2008 7:18 am

hi,
1. can we generate csv file in android application? if yes then how?

2. can we insert data which are in csv format to back in phone? if yes then how?
I mean to say for example i have contact data in csv file in my phone. so now from that file can i restore it to
contact provider or not.



Thanks in advance
Niketa
Developer
Developer
 
Posts: 36
Joined: Wed Sep 17, 2008 12:37 pm

Top

Postby MrSnowflake » Thu Nov 06, 2008 10:23 am

Of course you can (both), csv is just a Comma Seperated Values file, so just write your info in that for to a text file on the SD card.
To write it to the contact provider is also possible.
If I'd give you an example I would have made the whole app for you, so I'm not going to do that, as I have a lot other (ofter boring) stuff to do :D.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby Niketa » Thu Nov 06, 2008 1:01 pm

ok thanks of help.

but can u just tell me is it compulsory to generate and store csv file in to SD card?

cant we generate it in to other folder of phone memory?

or is it compulsory only when we have large contacts and csv file size is large?



Thank u
Niketa
Developer
Developer
 
Posts: 36
Joined: Wed Sep 17, 2008 12:37 pm

Postby MrSnowflake » Thu Nov 06, 2008 1:34 pm

You can generate it everywhere you have access to on the phone (the SD card and homedir of your application (/user)), but as you need to access it from your computer, it should be on the SD, as the rest of the phone isn't directly accessable without adb.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 6 guests