help me in my post: http://community.clickteam.com/threads/88881-Change-String-to-data-from-Net
1.- i think you forgot to add the INTERNET permission
2.- you are using AppDir$, this is not correct in android you need to use "android object" and save using ExternalStorage("")+"/"+"yourfilename.txt", in this case don┤t forget to set "write external storage" in the permissions, or use datastorage("")+"/"+"yourfilename.txt" in this case no need to set the permission.
... new things are coming ...
Thank You Very Much!
Your answer fixed my problem!
I've read through these posts and I'm still struggling with how it works. Probably since I just started to play with the Android exporter and I have little experience with Android devices.
I have an app that I have been able to load onto my Android tablet. It utilizes an array file called savedata.arr. I've installed the app from MMF 2.5 into a directory Android/data/atomicnumbergame and double clicked on the file to install it.
Now, the app does not seem to find the file. What do I do with the savedata.arr file or where do I put it on the Android tablet.
I've written code in the app to load the savedata.arr file: DataStorageDirectory$( "Android object" ) + "/savedata.arr"
So where is this DataStorageDirectory located?
Any help appreciated.
hey friend, are you sure that app it's not loading the file? Don't know if its your case, but after load the file, you need to get the data from array using events.
- For example, if I have the global value A called "Money" that I wrote in 0,0 and saved before. When I load the app, I need to get this value and put to "Money" again after load the array.
Sorry if its not your case.
- Another case it's that you maybe arent saving the data using the condition expression: Save array to the file: DataStorageDirectory$( "Android object" ) + "/savedata.arr"
To finish I attach my very simple system of LOAD/SAVE array data on android. Everytime you start loop load_array, you will load array. Everytime you start loop save_array you will save the array.
Of course you can split my 2 conditions of load in just one if you want.
And, of couse you can get values directly from array instead of put it on global value.
hope it helps. Best regards
Thanks for the suggestions. I have the array file created and I have the code to load it into my app. This works fine. But after I port the app to the Android tablet, the array file does not go with it. Where do I put the array file on the Android tablet? That is my problem.
well....you dont have to bring the array file together....when you save the first time using array on runtime, it will create the file...
but if you want to bring a array file together, I think you can put it on Binary Files and load from it.
OK, I figured it out. Did not know about the button to insert binary data - have not used it before. Now, I have run up against another problem. When it extracts the data from an INI file, it includes the " " along with the other letters / numbers.
I would really appreciate it, as I am having some trouble wrapping my head around getting the Array object to properly save and load data for Android as well as iOS. I've got it working great on PC, but it's the mobile devices that I'm getting the last bits of trouble with. My game is just about finished, but this save/load issue on mobile is the final thing holding me back from uploading it to the app store.
... new things are coming ...