Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Owner and Founder. Opencart
Top Partners
How we get Read and Write Storage permission?
References: StackOverflow and android developer site.
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
btnimport.setOnClickListener(new View.OnClickListener() { @Override public void onClick(final View v) { File file = new File(directory_path); if (!file.exists()) { Utils.showSnackBar(v, “No file”); return; } dbQueries.open(); ExcelToSQLite excelToSQLite = new ExcelToSQLite(getApplicationContext(), DBHelper.DBinfo.dataBase_Name, true);
// Import EXCEL FILE to SQLite excelToSQLite.importFromFile(directory_path, new ExcelToSQLite.ImportListener() { @Override public void onStart() {
}
@Override public void onCompleted(String dbName) { Toast.makeText(Excel2SQLitActivity.this,”Data imported”,Toast.LENGTH_LONG).show();
@Override public void onError(Exception e) { Toast.makeText(Excel2SQLitActivity.this,”somthing go wrong”,Toast.LENGTH_LONG).show();
} }); dbQueries.close(); } });
Rest of the code needs to be written in any of the acitivity file where you need to use this permission
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
It was a successful collaboration. The Mobikul team provided the client everything they needed in a timely and high-quality manner. They were very professional, reliable, and accessible during the entire process. The client also saw no room for any improvements in the vendor's performance.
Vincenzo Carrano
Administrator, Segshop
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.