Sunday, April 20, 2014

android online update feature, if the device is not the SD card, download the apk when updating the store in which the path?


The Internet to find a lot of applications are updated online information needs to be downloaded to a path apk SD card, the SD card is that if you do not, then it can not be updated without applied?
I am a novice, you want to make no SD card can be updated online results, please advise the brightest of God, enlighten .....
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Top can?
Reply:
You can make a judgment, now available in tablet, I'm talking about flat Oh

There are two paths

/ Mnt / sdcard /

/ Mnt / extsd

The former represents either built-in storage, which represents the external sd card, also sent me such Onda, Taipower said the former use is built-in, which represents the external SD
Reply:
File, then you can not put data / data / package name / Under
Reply:
reference to the third floor tanwei4199 reply:
file, then you can not put data / data / package name / Down

Put / data file data under / non-execution of it, I was trying apk download to a path, and can be installed automatically. / Data / data can be written to, but not executed.
equipment manufacturers mnt directory is set to read-only, and can not write, and execute. So what to put external sd card, internal storage is not feasible.
But also what way?
Reply:
references, 4th Floor qq396063616 reply:
Quote: references to the third floor tanwei4199 reply:

File, then you can not put data / data / package name / down

Put / data file data under / non-execution of it, I was trying apk download to a path, and can be installed automatically. / Data / data can be written to, but not executed.
equipment manufacturers mnt directory is set to read-only, and can not write, and execute. So what to put external sd card, internal storage is not feasible.
But also what way?

.... So few ways to store it looks like nothing else
Reply:
Smart TV does not allow users to download and install the application, the mnt directory is set to read-only, and gave up .......
Reply:
Environment. GetDownloadCacheDirectory ()
Reply:
Either use downloadmananger, but containing 2.3 to 2.3 above
Reply:
Or using (this.getCacheDir (); / context.getCacheDir () ;)
this.getFilesDir ()

No comments:

Post a Comment