java - Can I pass a parameter to an Android Apk from a properties file? -


i need pass string android apk externally. app in development, haven't deployed on google market. there way pass parameter apk external file properties file? if yes, please explain procedure.

if need development only, place file on sd card.

final file tmpfile = new file("/sdcard/myparam.txt"); try {     fileinputstream s = new fileinputstream(tmpfile);     ... 

use adb push myparam.txt /sdcard/ , adb pull /sdcard/myparam.txt transfer between desktop , device.

it of course incorrect assume sd card mounted, use hard-coded file name, development only.

if need pass parameter application, store in intent (assuming author of both applications).


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -