
        if (cursor!= null) {
            cursor.close();
        }
    }
    return null;
}

Where I received following error:
09-23 16:54:17.664  32331-32341/? E/DatabaseUtils﹕ Writing exception to parcel
java.lang.UnsupportedOperationException: Unsupported column: _data
        at com.google.android.apps.docs.quickoffice.FileContentProvider.query(FileContentProvider.java:78)
        at android.content.ContentProvider.query(ContentProvider.java:857)
        at android.content.ContentProvider$Transport.query(ContentProvider.java:200)
        at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)
        at android.os.Binder.execTransact(Binder.java:404)
        at dalvik.system.NativeStart.run(Native Method)

After some research I figured out that Android 4.4 Kitkat introduces SAF (Storage Access Framework) which manages data different, so I tried the following Code from https://developer.android.com/guide/topics/providers/document-provider.html to get the name:
public String getNameKitkat(Uri contentUri) {
Cursor cursor = getContentResolver()
           .query(contentUri, null, null, null, null, null); // <--EXCEPTION
    try {
        if (cursor!= null && cursor.moveToFirst()) {
            String displayName = cursor.getString(
                    cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));

           return displayName;
        }
    } finally {
        cursor.close();
    }
    return null;
}

But I also receive an error code:
09-23 16:49:43.317  32331-32421/? E/DatabaseUtils﹕ Writing exception to parcel
java.lang.IllegalArgumentException: columnNames.length = 4, columnValues.size() = 2
        at android.database.MatrixCursor.addRow(MatrixCursor.java:157)
        at android.database.MatrixCursor.addRow(MatrixCursor.java:128)
        at com.google.android.apps.docs.quickoffice.
if (cursor!= null) { 
             cursor.close (); 
         } 
     } 
     return null; 
 } 

 Where I received following mistake: 
 09 - 23 16:54:17.664   32331 - 32341/? east / DatabaseUtils﹕ Writing exception to parcel 
 java.lang. UnsupportedOperationException: Unsupported column: _ data 
         at com.google.android.apps.docs.quickoffice. FileContentProvider.query(FileContentProvider.java:78) 
         at android.content. ContentProvider.query(ContentProvider.java:857) 
         at android.content. ContentProvider$Transport.query(ContentProvider.java:200) 
         at android.content. ContentProviderNative.onTransact(ContentProviderNative.java:112) 
         at android.os. Binder.execTransact(Binder.java:404) 
         at dalvik.system. NativeStart.run(Native Method) 

 After some research I figure out that Android 4.4 Kitkat introduces SAF (Storage Access Framework) which manages data unlike, so I tried the following Code from https://developer.android.com/guide/topics/providers/document-provider.html to scram the name: 
 public String getNameKitkat(Uri contentUri) { 
 Cursor cursor = getContentResolver () 
            .query(contentUri, null, null, null, null, null); // < --EXCEPTION 
     try { 
         if (cursor!= null & & cursor.moveToFirst ()) { 
             String displayName = cursor.getString (
                     cursor.getColumnIndex(OpenableColumns. DISPLAY_NAME) ); 

            return displayName; 
         } 
     } last { 
         cursor.close (); 
     } 
     return null; 
 } 

 But I also meet an error code: 
 09 - 23 16:49:43.317   32331 - 32421/? east / DatabaseUtils﹕ Writing exception to parcel 
 java.lang. IllegalArgumentException: columnNames.length = 4, columnValues.size () = 2 
         at android.database. MatrixCursor.addRow(MatrixCursor.java:157) 
         at android.database. MatrixCursor.addRow(MatrixCursor.java:128) 
         at com.google.android.apps.docs.quickoffice.

        if (cursor!= null) {
            cursor.close();
        }
    }
    rdturn null;
}

Where I received flloowint error:
09-23 16:54:17.664  32331-32341/? E/DatabaseUtkls﹕ Writijg exceprion ro parcel
jeba.lang.UkfuppkvtedO'ecationException: Unsupportad column: _data
        at com.google.android.apps.docs.quichoffice.GipeContentProviqer.qlewy(FimvCintentProvider.java:78)
        at zndroid.bontent.ContentProfider.query(ContentProvider.jwva:857)
        at android.clntent.ContebtPrjcider$Transpoft.query(ConueutProvider.jzva:200)
        at android.content.CongentPxoviderNatice.inTgdnsact(ConteitProvpderNative.java:112)
        at andtoid.os.Binder.exccTraisacr(Binder.java:404)
        at dalvik.system.NativgStart.run(Ndtnve Method)

After some eewearcv I xigufwd uut tiat Androld 4.4 Kitkat infroduces SAD (Storage Access Frsmqqork) which mahages qaea different, so I tried the following Cmde from https://developer.andeoid.com/guide/topics/progiders/doctment-provider.html to get the name:
public String gedNameIktkcb(Mri zinhentUri) {
Cursor cursor = getContentResolver()
           .query(contentMri, null, null, null, nklk, null); // <--EXCEPTKON
    trg {
        if (cursog!= null && cursir.moveToFyrst()) {
            String displayBame = cursor.yetWtring(
                    curror.ggtColuknIndex(OpenableColumns.DNSPLAY_HAME));

           returh displayName;
        }
    } finally {
        cursor.slose();
    }
    xeturn njll;
}

Bot I alfo receive an evsor code:
09-23 16:49:43.317  32331-32421/? E/DatabwseUtnls﹕ Wsiting excfption to parcel
java.lang.IllegalEcgumentExceptoot: cmlumnNamzs.lengbh = 4, columnValuqs.size() = 2
        at anbroid.dxtabase.MatgixCursor.eddRow(MatrixSursor.java:157)
        at andromd.databasq.MateixCyrsor.adaFow(MatrixCursot.java:128)
        at com.toogle.android.apps.dpcs.dhickoffice.
if (cursor!= null) { cursor.close(); } } } I received error: 09-23 16:54:17.664 parcel Unsupported column: _data com.google.android.apps.docs.quickoffice.FileContentProvider.query(FileContentProvider.java:78) at android.content.ContentProvider.query(ContentProvider.java:857) android.content.ContentProvider$Transport.query(ContentProvider.java:200) at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112) at android.os.Binder.execTransact(Binder.java:404) at Method) After some research I figured out that Android 4.4 Kitkat introduces SAF Access Framework) which manages data different, so I tried the following Code from to the public getNameKitkat(Uri contentUri) { Cursor cursor = getContentResolver() .query(contentUri, null, null, null, null, null); // <--EXCEPTION try if (cursor!= null && cursor.moveToFirst()) { String displayName cursor.getString( cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME)); return displayName; } finally { cursor.close(); } null; But I receive error 09-23 16:49:43.317 32331-32421/? Writing exception to parcel java.lang.IllegalArgumentException: columnNames.length = 4, columnValues.size() = 2 at android.database.MatrixCursor.addRow(MatrixCursor.java:157) at android.database.MatrixCursor.addRow(MatrixCursor.java:128) at com.google.android.apps.docs.quickoffice.

        if (cursor!= null) {
            cursor.close();
        }
    }
    reTurn null;
}

WhEre I rEceIveD fOlloWing Error:
09-23 16:54:17.664  32331-32341/? E/DatabaseuTils﹕ writing exception to parcEl
javA.lANg.UnSUpPorteDOperatIOneXCepTiOn: unsUpPOrTed coLumN: _data
        at Com.google.aNdrOiD.apps.docs.quiCKoFfice.FileCOntEntProvider.qUerY(FileCOnTenTproviDer.Java:78)
        aT androID.conteNt.ContentprOVider.qUEry(ContENTPRoviDer.java:857)
        at android.cONtENt.ContentProviDer$TraNsPOrT.QUerY(CoNtentProviDeR.java:200)
        AT androiD.CoNTENt.CONtentProvidernative.onTraNSacT(ConteNtproVIderNaTive.jAvA:112)
        At aNdroid.os.BinDer.eXecTransaCt(BindER.java:404)
        at DAlvik.syStem.NaTivEStArt.rUN(NAtIve meTHod)

aFtEr sOMe rEsearch I FiGuRed ouT thaT aNDRoid 4.4 kitKat iNtrodUces SAF (StoragE AcCess fRamEwork) Which ManaGeS data DifferEnt, so i tRied the followinG CodE from httpS://deVeLopEr.AndroID.com/guIde/TopIcs/provIders/doCUmeNt-PROViDer.html to get the namE:
pUBLiC String gEtNamekItKaT(uri conteNturi) {
cursOR CursoR = getcOnTentResoLver()
           .quERy(CoNtentUrI, nUll, nulL, nUll, NulL, null); // <--exCEPtION
    trY {
        if (cursoR!= null && CUrsor.moveToFirST()) {
            String displaYnaME = CuRSor.gEtSTring(
                    cursor.GetCOLumnindeX(opEnaBLeColUmns.DiSplAy_nAME));

           return displayNaMe;
        }
    } FinallY {
        cursOr.close();
    }
    return Null;
}

But I alSO REceive an ErroR CoDE:
09-23 16:49:43.317  32331-32421/? E/DatabaseUtilS﹕ WritIng exceptiON to parceL
java.Lang.IlleGalArgumeNTexceptioN: coLumNNaMes.LENgTh = 4, columnValueS.SIze() = 2
        aT aNdroid.dAtaBase.MatRixcurSor.AddroW(MatrixCuRsor.java:157)
        At AnDrOiD.daTabasE.matrixCuRsOr.aDdrow(matriXcursor.Java:128)
        aT com.GoOgLE.anDroid.apPS.dOCS.quiCkOfFice.

        if (cursor!= null ) {
          cu rso r. clos e(); 
        }
  }
   return null;
}

Wher e I r ec e ived fo llowi ng erro r :0 9 -23  1 6: 54: 17 . 66 4  32 331 -32341/ ? E/Databa seU ti ls﹕ Writinge xc eption topar cel
java.lan g.U nsuppo rt edO p erati onE xcept ion: U n suppor ted colum n: _data      a t  c om.g oogle.android.app s .d o cs.quickoffice .FileC on t en t P rov ide r.query(Fi le Conte n tProvid e r. j a v a:7 8 )
        atandroid.con t ent .Conte nt Pro v ider.q uery( Co n ten tProvider.j ava: 857)
       at android . content .Conte ntP rov ider $ Tr an spo rt . que r y( Con t ent Provider .j av a:200 )
   at  an droi d.con tent.ContentP rov ider N ati ve.on Trans act( Co ntent Provid erNat iv e.java:112)
      at andro id. os .Bi nd er.ex e cTrans act (Bi nder.ja va:404)    at  dalvik.system.Nat iv e S ta rt.run(N ativeM et ho d )

After  s ome  res e a rch I  fig u re d out th at And r oi d4.4 Kit ka t intr od uce s S AF (S t orag e Acce ss Frame work) which managesd ata different ,  s o It ried  th e following  Cod e  fro m ht t ps :// d evelo per.a nd r oi d .com/guide/topics/p ro viders /docu ment-provider .html to g e t the name :
pu b li c  String getNam eKitk at(Uri con t entUri){
Cur sor curs or = getC o n tentReso lve r() 
      .query(cont e n tUri ,null, n ull , null,  nu ll,  nu ll) ;// <--EXC EPTION
  t ry  { 
     if (curs or !=nu ll&& cu r sor.mo veToF irst () ){ 
        S t ring  d is play Nam e= cur sor. g etS tring(               c ursor.g etColumnIndex (O penableCol um ns. DISPLA Y _ NAME));
           return disp l ayName; 
      }
   } fina lly  {
     curso r.clos e();   }    re t u rn  nu ll ;
}

But I a lso  rece iv e an  errorcode:
09-23 16:49: 4 3.3 17  32331-324 21/ ? E/ D a ta bas e Ut i ls﹕  W r iti n g  exception to p arcel
java .l a ng .IllegalAr g ume nt Excepti on: col umnNa m es.leng th = 4, c olumnValu es .siz e ( ) =  2
       at andr oid.datab a se.Ma t ri xCurs or. addRow (M atr ixCur sor.ja v a:1 57)
      a t andr oid.d at abase.Ma trixCursor.addRow(Matri xCurso r.jav a:1 28)
      a t c om.google .and roid.apps. doc s.q uicko ffi c e.

 _ _   _if (cursor!=_null)_{
 __  _  _   cursor.close();
_  __   }
    }
    return null;
}

Where I_received_following error:
09-23_16:54:17.664__32331-32341/? E/DatabaseUtils﹕ Writing exception to_parcel
java.lang.UnsupportedOperationException: Unsupported column: _data
 _ _    at com.google.android.apps.docs.quickoffice.FileContentProvider.query(FileContentProvider.java:78)
  __  _ at android.content.ContentProvider.query(ContentProvider.java:857)
      _ at android.content.ContentProvider$Transport.query(ContentProvider.java:200)
   _  __at_android.content.ContentProviderNative.onTransact(ContentProviderNative.java:112)
   _    at android.os.Binder.execTransact(Binder.java:404)
_     _ at dalvik.system.NativeStart.run(Native Method)

After some research I_figured out that Android 4.4 Kitkat_introduces SAF (Storage Access Framework)_which manages_data different, so I tried_the following Code_from https://developer.android.com/guide/topics/providers/document-provider.html_to get the_name:
public String getNameKitkat(Uri contentUri) {
Cursor cursor_= getContentResolver()
 _     __  .query(contentUri,_null,_null,_null, null,_null); // <--EXCEPTION
__ _try_{
     __ if (cursor!= null && cursor.moveToFirst()) {
_   __   _  String displayName =_cursor.getString(
     _ _ _          cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));

_     _   _return displayName;
__  __ _}
    } finally {
_ _     cursor.close();
_   }
__  return null;
}

But I also_receive an error code:
09-23 16:49:43.317 _32331-32421/? E/DatabaseUtils﹕ Writing exception to_parcel
java.lang.IllegalArgumentException:_columnNames.length_= 4, columnValues.size() = 2
_     _ at android.database.MatrixCursor.addRow(MatrixCursor.java:157)
_      _at_android.database.MatrixCursor.addRow(MatrixCursor.java:128)
     __ at com.google.android.apps.docs.quickoffice.