expansion

android play movie inside expansion file

▼魔方 西西 提交于 2019-12-04 03:30:37
My app is trying to deliver lots of contents to users, so the app's size is much greater than 50mb. There is no way we could reduce or remove some of the content, so we decided to go with the expansion approach. I am trying to follow this tutorial: Android APK Expansion Files , and have been successful up to putting the expansion file into my device for testing. I could get the input stream of any video file inside the expansion. But when I try to setVideoUri for the videoView, it starts crashing. Here are some code: ZipFileContentProvider contentProvider = new ZipFileContentProvider(); String

how to avoid glob expansion when running Java app in eclipse

孤人 提交于 2019-12-04 03:08:07
问题 I am running into a peculiar behavior of the Eclipse run configuration, and it appears to be a Windows-only problem. Suppose I have a Java app that prints out the command line arguments, like the following: public class WildCard { public static void main(String[] args) { for (String arg: args) { System.out.println(arg); } } } If I provide argument with a wild card that can be expanded by the shell, the shell will expand it and give it to the Java program. That's no surprise. So, if I do on

Four Dollar signs in Makefile

可紊 提交于 2019-12-03 22:24:41
I am reading the document of GNU Make. Here is an example %.d: %.c @set -e; rm -f $@; \ $(CC) -M $(CPPFLAGS) $< > $@.$$$$; \ sed ’s,\($*\)\.o[ :]*,\1.o $@ : ,g’ < $@.$$$$ > $@; \ rm -f $@.$$$$ I tried this on a C++ program, and got the list of files init3d.d init3d.d.18449 input.d input.d.18444 main.d main.d.18439 Here is what I found but don't understand in the same document If you have enabled secondary expansion and you want a literal dollar sign in the prerequisites list, you must actually write four dollar signs (‘$$$$’). I wonder what the four dollar signs "$$$$" mean actually? How do

Apk external data, Android Expansion

风格不统一 提交于 2019-12-03 22:08:06
问题 I am using concept of Android Expansion which helps us to remove obstacle of 50mb limitation of Apk. Following all the steps http://developer.android.com/guide/market/expansion-files.html I understood that you need to follow file format like this [main|patch].<expansion-version>.<package-name>.obb and did the same. And also Expansion files may be in (ZIP, PDF, MP4, etc.) format. I uploaded additional expansion files while publishing apk on Google play. At the time of download apk I get all

Problems testing APK expansion library

被刻印的时光 ゝ 提交于 2019-12-03 19:56:08
问题 I've integrated the APK Expansion file download library from Google into my project, and it works more or less OK (except a few minor gotchas, which have been reported by others on SO already). However, I have a hard time testing it. When I was first testing it, I uploaded my signed APK + main expansion file version 1 to Google Play, and it worked well. However, when I upgraded my application, together with main expansion file version 2, the application could no longer download the file - the

Why zsh tries to expand * and bash does not?

a 夏天 提交于 2019-12-03 11:30:45
I just encountered the following error with zsh when trying to use logcat. Namely, when typing: adb logcat *:D I get the following error in zsh zsh: no matches found: *:D I have to escape the * like : adb logcat \*:D While using bash, I do not get the following error. Why would it be like this? zsh warns you by default if you use a glob with no matches. Bash, on the other hand, passes the unexpanded glob to the app, which is a potential problem if you don't know for certain what will match (or if you make a mistake). You can tell zsh to pass the unevaluated argument like bash with setopt

android - so many problems with the expansion library

感情迁移 提交于 2019-12-03 07:06:32
问题 i need to use the new google-play (or market) expansion library , and i have hard time with it . i wonder if anyone else is using it and notice the same problems i can see , so i would be very happy if you could help be to fix them: 1.sometimes i don't get important events (errors, for example) back to the downloader activity . 2.it doesn't work at all on some devices , like xoom . i think i've fixed it: Download expansion files on tablet 3.even for identical devices , one can download the

how to make bash expand wildcards in variables?

我的梦境 提交于 2019-12-03 04:48:12
问题 I am trying achieve the same effect as typing mv ./images/*.{pdf,eps,jpg,svg} ./images/junk/ at the command line, from inside a bash script. I have: MYDIR="./images" OTHERDIR="./images/junk" SUFFIXES='{pdf,eps,jpg,svg}' mv "$MYDIR/"*.$SUFFIXES "$OTHERDIR/" which, when run, gives the not unexpected error: mv: rename ./images/*.{pdf,eps,jpg,svg} to ./images/junk/*.{pdf,eps,jpg,svg}: No such file or directory What is the correct way to quote all this so that mv will actually do the desired

how to make bash expand wildcards in variables?

妖精的绣舞 提交于 2019-12-02 19:08:27
I am trying achieve the same effect as typing mv ./images/*.{pdf,eps,jpg,svg} ./images/junk/ at the command line, from inside a bash script. I have: MYDIR="./images" OTHERDIR="./images/junk" SUFFIXES='{pdf,eps,jpg,svg}' mv "$MYDIR/"*.$SUFFIXES "$OTHERDIR/" which, when run, gives the not unexpected error: mv: rename ./images/*.{pdf,eps,jpg,svg} to ./images/junk/*.{pdf,eps,jpg,svg}: No such file or directory What is the correct way to quote all this so that mv will actually do the desired expansion? (Yes, there are plenty of files that match the pattern in ./images/ .) A deleted answer was on

Bash parameter expansion

我们两清 提交于 2019-12-02 05:51:26
问题 I have a script which uses the following logic: if [ ! -z "$1" ]; then # if any parameter is supplied ACTION= # clear $ACTION else ACTION=echo # otherwise, set it to 'echo' fi This works fine, as-is. However, in reading the Shell Parameter Expansion section of the bash manual, it seems this should be able to be done in a single step. However, I can't quite wrap my head around how to do it. I've tried: ACTION=${1:-echo} # ends up with $1 in $ACTION ACTION=${1:+} ACTION=${ACTION:-echo} # ends