I am using eclipse to build my android application.The data required for my application is stored in a sql server.In my database i have name,address,phone number,latitude and longitude of a location.I created a program in android which will take an array of addresses and find out its latitude and longitude.But the array i used was hard coded(it included 3 addresses) for testing purpose.I saved latitude and longitude in SDcard.But now i want to take data from server which contains 2000 addresses.I copied the addresses in text file and saved in my personal computer.But it is not possible to use data in C drive in android application as it is linux based.Please someone help me how to use data from text file in my android application.
Thanx in advance.
I am using eclipse to build my android application.The data required for my application
Share
why don’t you copy the data (the text file with 2000 entries) to your SD card of emulator (or device) and read from there ?
Refer my answer to the following post for copying file to the SD card
emulator and uploading video