java - How to download files from server to a plugin's internal storage directory -
i have app called myniceapp installed in internal storage /data/app/com.myniceapp.root_pkg
.
questions 1
is possible programatically download files
/data/app/com.myniceapp.root_pkg
questions 2
myniceapp core app contains main core view populated views generated plugins user download in apk format server wishes.
is possible download these plugin apks personal server directory (
/data/app/com.myniceapp.root_pkg
) , launch views main core view?
i'm thinking better organized if had folder created under /data/app/com.myniceapp.root_pkg/plugins, have dexclassloader crawl /data/app/com.myniceapp.root_pkg/plugins downloaded plugins, call class implementations, , dynamically load plugin views core view @ runtime.
thank in advance.
answer 1:
there sample (sof question) downloading.
if u write internal directory can use this:
file mydir = context.getdir("myinternaldirectory", context.mode_private);
create directory in package folder (comment: 'context' not needed if in main thread).
answer 2:
working on it....
i hope help.
Comments
Post a Comment