Hi,
In one of my Project, I need to read an excel file data which is in assets folder.
1) Create Project in Android using Eclipse.
2) Download poi Java Library or After Downloading take this poi-3.10-FINAL-20140208.jar file and add to the libs folder and add to Build Path.
3) Place an excel sheet in assets folder in your project.
4) Copy the following code in your activity
MainActivity.java
5) Note : For Output
Please see the logcat in Eclipse for the data.
Import both project and AppCompat v7 Library.
6) Download the full source code
In one of my Project, I need to read an excel file data which is in assets folder.
1) Create Project in Android using Eclipse.
2) Download poi Java Library or After Downloading take this poi-3.10-FINAL-20140208.jar file and add to the libs folder and add to Build Path.
3) Place an excel sheet in assets folder in your project.
4) Copy the following code in your activity
MainActivity.java
1 | public class MainActivity extends ActionBarActivity implements OnClickListener { |
5) Note : For Output
Please see the logcat in Eclipse for the data.
Import both project and AppCompat v7 Library.
6) Download the full source code
No comments:
Post a Comment