├── app
├── .gitignore
├── release
│ └── app-release.apk
├── src
│ └── main
│ │ ├── res
│ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher.png
│ │ ├── mipmap-mdpi
│ │ │ └── ic_launcher.png
│ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher.png
│ │ ├── mipmap-xxhdpi
│ │ │ └── ic_launcher.png
│ │ ├── mipmap-xxxhdpi
│ │ │ └── ic_launcher.png
│ │ ├── drawable-hdpi
│ │ │ └── ic_action_github.png
│ │ ├── drawable-mdpi
│ │ │ └── ic_action_github.png
│ │ ├── drawable-xhdpi
│ │ │ └── ic_action_github.png
│ │ ├── drawable-xxhdpi
│ │ │ └── ic_action_github.png
│ │ ├── drawable-xxxhdpi
│ │ │ └── ic_action_github.png
│ │ ├── values
│ │ │ ├── colors.xml
│ │ │ ├── dimens.xml
│ │ │ ├── strings.xml
│ │ │ └── styles.xml
│ │ ├── values-v21
│ │ │ └── styles.xml
│ │ ├── menu
│ │ │ └── menu_main.xml
│ │ ├── values-w820dp
│ │ │ └── dimens.xml
│ │ └── layout
│ │ │ ├── list_item.xml
│ │ │ ├── activity_main.xml
│ │ │ ├── activity_xl_2_sqlite.xml
│ │ │ ├── content_main.xml
│ │ │ └── activity_sqlite_2_xl.xml
│ │ ├── java
│ │ └── com
│ │ │ └── ajts
│ │ │ └── androidmads
│ │ │ └── sqlite2xlDemo
│ │ │ ├── util
│ │ │ └── Utils.java
│ │ │ ├── db
│ │ │ ├── DBConstants.java
│ │ │ ├── DBHelper.java
│ │ │ └── DBQueries.java
│ │ │ ├── model
│ │ │ └── Users.java
│ │ │ ├── adapter
│ │ │ └── CustomAdapter.java
│ │ │ ├── MainActivity.java
│ │ │ ├── Excel2SQLiteActivity.java
│ │ │ └── SQLite2ExcelActivity.java
│ │ └── AndroidManifest.xml
├── proguard-rules.pro
└── build.gradle
├── library
├── .gitignore
├── src
│ └── main
│ │ ├── res
│ │ └── values
│ │ │ └── strings.xml
│ │ ├── AndroidManifest.xml
│ │ └── java
│ │ └── com
│ │ └── ajts
│ │ └── androidmads
│ │ └── library
│ │ ├── ExcelToSQLite.java
│ │ └── SQLiteToExcel.java
├── proguard-rules.pro
└── build.gradle
├── settings.gradle
├── .idea
├── copyright
│ └── profiles_settings.xml
├── encodings.xml
├── vcs.xml
├── runConfigurations.xml
├── compiler.xml
├── gradle.xml
├── modules.xml
└── misc.xml
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── .github
├── issue_template.md
└── FUNDING.yml
├── .gitignore
├── gradle.properties
├── License.md
├── gradlew.bat
├── gradlew
└── README.md
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/library/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app', ':library'
2 |
--------------------------------------------------------------------------------
/app/release/app-release.apk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/androidmads/SQLite2XL/HEAD/app/release/app-release.apk
--------------------------------------------------------------------------------
/.idea/copyright/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
11 |
12 | ## Features
13 | ### 1.0.3
14 | Added Pull Request from https://github.com/cleathley
15 | 1. Added the ability to provide a custom formatter to the export.
16 | 2. Added the ability to exclude columns from the export.
17 | 3. Added `pretty` name mapping to export
18 | ### 1.0.2
19 | 1. Added support to add new column from excel while importing, if the column is not exists.
20 | ### 1.0.1
21 | 1. Added Functionality to Import Excel into SQLite Database.
22 | 2. Added Functionality to Export Blob into Image.
23 | 3. Added Functionality to Export List of tables specified.
24 | ## How to Download
25 | add the following library in your app level gradle file
26 | ```groovy
27 | implementation 'com.ajts.androidmads.SQLite2Excel:library:1.0.4'
28 | ```
29 | ## How to Use
30 | #### The steps to use this Library
31 | ```xml
32 | 206 | MIT License 207 | 208 | Copyright (c) 2017 AndroidMad / Mushtaq M A 209 | 210 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated216 | -------------------------------------------------------------------------------- /library/src/main/java/com/ajts/androidmads/library/SQLiteToExcel.java: -------------------------------------------------------------------------------- 1 | package com.ajts.androidmads.library; 2 | 3 | import android.content.Context; 4 | import android.database.Cursor; 5 | import android.database.sqlite.SQLiteDatabase; 6 | import android.os.Environment; 7 | import android.os.Handler; 8 | import android.os.Looper; 9 | 10 | import org.apache.poi.hssf.usermodel.HSSFCell; 11 | import org.apache.poi.hssf.usermodel.HSSFClientAnchor; 12 | import org.apache.poi.hssf.usermodel.HSSFPatriarch; 13 | import org.apache.poi.hssf.usermodel.HSSFRichTextString; 14 | import org.apache.poi.hssf.usermodel.HSSFRow; 15 | import org.apache.poi.hssf.usermodel.HSSFSheet; 16 | import org.apache.poi.hssf.usermodel.HSSFWorkbook; 17 | import org.apache.poi.ss.usermodel.ClientAnchor; 18 | 19 | import java.io.File; 20 | import java.io.FileOutputStream; 21 | import java.util.ArrayList; 22 | import java.util.HashMap; 23 | import java.util.List; 24 | 25 | public class SQLiteToExcel { 26 | 27 | private static Handler handler = new Handler(Looper.getMainLooper()); 28 | 29 | private SQLiteDatabase database; 30 | private String mExportPath; 31 | private HSSFWorkbook workbook; 32 | 33 | private List
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 211 | 212 | The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software. 213 | 214 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 215 |