[android-developers] Re: Can I have multiple .apk files?

2012-01-30 Thread BT
Thanks, Kris! This is a vertical application which doesn't go through the Android Market. Levels will be downloaded over local wi-fi and yes, there are a lot of them and they're huge. People won't want more than a few at a time taking up space on smaller devices. So do I just need to have

Re: [android-developers] Re: Can I have multiple .apk files?

2012-01-30 Thread Kristopher Micinski
Well, you could have something in the apks that like, whenever the app is run, installs the extra levels on to some common place the app uses: the sd card would be good kris On Mon, Jan 30, 2012 at 3:16 PM, BT bunglestwan...@gmail.com wrote: Thanks, Kris! This is a vertical application which

[android-developers] Re: Can I have multiple .apk files?

2012-01-30 Thread BT
Since I access bitmaps, etc. within the .apk from native C++ code (NDK) using libzip, all I really need is a path to the downloaded .apk so I can pull those resources out on-demand. The .apk doesn't even need to be installed AFAIK, I just need to have read privileges. Is there an SDK call

Re: [android-developers] Re: Can I have multiple .apk files?

2012-01-30 Thread Kristopher Micinski
If this is the case, why don't you just distribute them as zip files (which are the same as apks, anyway), and put them on a webpage. Then your users can go and download them to their SD card. You can write an app which does this automatically: goes to the download website, and downloads the

[android-developers] Re: Can I have multiple .apk files?

2012-01-30 Thread BT
They could certainly be .zip files as far as my app is concerned, but as I understand it, in order to be device-agnostic I cannot assume they have an SD card and cannot assume any particular download directory (i.e. the default Android Market location). I don't even think I can assume I'll have

Re: [android-developers] Re: Can I have multiple .apk files?

2012-01-30 Thread Kristopher Micinski
On Mon, Jan 30, 2012 at 4:50 PM, BT bunglestwan...@gmail.com wrote: They could certainly be .zip files as far as my app is concerned, but as I understand it, in order to be device-agnostic I cannot assume they have an SD card and cannot assume any particular download directory (i.e. the

[android-developers] Re: Can I have multiple .apk files?

2012-01-30 Thread BT
So if it's just a regular .zip file that's downloaded, can I have access to it? I don't need write access to the file, just read access to pull the bitmaps out. Thx, BT -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

Re: [android-developers] Re: Can I have multiple .apk files?

2012-01-30 Thread Mark Murphy
On Mon, Jan 30, 2012 at 5:04 PM, BT bunglestwan...@gmail.com wrote: So if it's just a regular .zip file that's downloaded, can I have access to it? Download it yourself, using DownloadManager (API Level 9) or HttpClient. -- Mark Murphy (a Commons Guy) http://commonsware.com |

Re: [android-developers] Re: Can I have multiple .apk files?

2012-01-30 Thread Kristopher Micinski
I think he's asking, if the stuff is downloaded, where can he put it so he can access it.. In this case you should use one of the Environment functions: http://developer.android.com/reference/android/os/Environment.html#getDataDirectory() kris On Mon, Jan 30, 2012 at 5:15 PM, Mark Murphy

[android-developers] Re: Can I have multiple .apk files?

2012-01-30 Thread BT
Download it yourself, using DownloadManager (API Level 9) or HttpClient. Thanks, Mark. What if the user downloaded it with their browser or another application within our company (not my game) downloaded it? Do I still have read access then? And how do I ask Android for the path to the file

Re: [android-developers] Re: Can I have multiple .apk files?

2012-01-30 Thread Mark Murphy
On Mon, Jan 30, 2012 at 5:26 PM, BT bunglestwan...@gmail.com wrote:  Do I still have read access then? That would depend on where the unidentified application downloaded the file. And how do I ask Android for the path to the file so I can open it? You don't. Which is why you download it