How to get APK size: File apkfile = new File("path_to_apk"); long apksize = apkFile.length(); // in bytes
but how to get Data size? On Sep 28, 6:55 am, SizzlingSkizzorsProgrammer <cbo...@gmail.com> wrote: > how do you get the apk size??? > > On Sep 27, 5:10 pm, iron <ironph...@gmail.com> wrote: > > > Hello everyone! > > > How i can get package size info - code, cache and data size? > > I tried to use PackageStats, but it always returns 0. > > > Right now i can get apk size and dex file size, but how i can get DATA > > size? > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---