Android 6.0 Permissions -


i working on big project reasonably big code base. want ask hints on how reliably check have provide solution adapt android 6.0 . have used analyze > inspect code , static analysis of code , shows missing checks in section : android > constant , resource type mismatches. looks not right place find problems , why asking make sure using right thing , looking @ right thing, plus bit confused because have parts of code write files , not getting notified permissions checks there(is normal behaviour?!)

public static boolean write(string foldername, string filename, object objtowrite) {     // serialize cardmodel     fileoutputstream file = null;     objectoutputstream o = null;     file dirfile = appcontroller.getinstance().getapplicationcontext().getdir(foldername, context.mode_private);     try {         // create archivedir         file mypath = new file(dirfile, filename);         file = new fileoutputstream(mypath, false);         o = new objectoutputstream(file);         o.writeobject(objtowrite);     } catch (exception e) {         e.printstacktrace();         return false;     } {         try {             o.close();             file.close();         } catch (ioexception e) {             e.printstacktrace();             return false;         }     }     return true; } 

should warning write permission here ?

another thing makes me ask issue have posted on google regarding android studio bug: android studio bug

not every write file needs permission - 1 external storage - function might write app file space - needs no permission. depends on parameters


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -