Skip to content

Commit

Permalink
Fixes #52
Browse files Browse the repository at this point in the history
  • Loading branch information
obastemur committed Aug 5, 2015
1 parent 3274236 commit 136d62c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/android/java/io/jxcore/node/JXMobile.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void Receiver(ArrayList<Object> params, String callbackId) {
@SuppressLint("NewApi")
@Override
public void Receiver(ArrayList<Object> params, String callbackId) {
String path = jxcore.activity.getBaseContext().getCacheDir().toString();
String path = jxcore.activity.getBaseContext().getFilesDir().getAbsolutePath();
jxcore.CallJSMethod(callbackId, "\"" + path + "\"");
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/android/java/io/jxcore/node/jxcore.java
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ private void Initialize(String home) {

String data = "process.setPaths = function(){ process.cwd = function() { return '" + home
+ "/www/jxcore';};\n"
+ "process.userPath ='" + activity.getBaseContext().getCacheDir().toString() + "';\n"
+ "process.userPath ='" + activity.getBaseContext().getFilesDir().getAbsolutePath() + "';\n"
+ "};"
+ mainFile;

Expand Down

0 comments on commit 136d62c

Please sign in to comment.