It seems that trying to read the apk itself from the app is not possible? It gives to me "Unathorized exception".
string apkPath = this.Application.Info.SourceDir; using(Stream stream = System.IO.File.Open(apkPath)) { } On Sun, Apr 28, 2013 at 6:11 PM, Jonathan Pryor <j...@xamarin.com> wrote: > On Apr 28, 2013, at 11:43 AM, Francesco Colombo < > francesco.colo...@gmail.com> wrote: > > What I meant was if there were any other way to read assets from the > Assets folder bypassing the AssetsManager. > > That should be possible. Assets are stored in the `.apk`, so you just need > to bundle a .zip parser in your app (e.g. Ionic.Zip), grab the path to your > `.apk`, and have at it: > > string apiFile = context.ApplicationInfo.SourceDir; > > - Jon > > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid >
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid