Redeem Now
Read More
Read now

Getting read and write permission from External Storage in android


How we get Read and Write Storage permission?

References: StackOverflow and android developer site.


. . .

Comments (5)

Add Your Comment

  • hari shankar
    kindly share source code, yr site is awesome. thank u
    • Shubham Agarwal
      Thanks for comment, I have already share code snippets.
  • wannassi rahma
    Hello sir ,i want to import data from xls file and insert it in my sqlite ,but when i click the button to import data my app stopped any help plz //

    btnimport.setOnClickListener(new View.OnClickListener() {
    public void onClick(final View v) {
    File file = new File(directory_path);
    if (!file.exists()) {
    Utils.showSnackBar(v, “No file”);
    ExcelToSQLite excelToSQLite = new ExcelToSQLite(getApplicationContext(), DBHelper.DBinfo.dataBase_Name, true);

    // Import EXCEL FILE to SQLite
    excelToSQLite.importFromFile(directory_path, new ExcelToSQLite.ImportListener() {
    public void onStart() {


    public void onCompleted(String dbName) {
    Toast.makeText(Excel2SQLitActivity.this,”Data imported”,Toast.LENGTH_LONG).show();


    public void onError(Exception e) {
    Toast.makeText(Excel2SQLitActivity.this,”somthing go wrong”,Toast.LENGTH_LONG).show();


  • gee12
    Thanks, it helped me.
  • Gurudas
    Thanks .. it was very helpful
  • css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again