Location of dafault folder into Andriod

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
pkmittal
Posts: 111
Joined: Thu Feb 08, 2007 11:27 am
Contact:

Location of dafault folder into Andriod

Post by pkmittal » Sat Jun 30, 2012 7:01 am

Hi,

Finally I made the "Hello World" Program run on Android Emulator. I used another machine having windows 7 and Android 2.2 API for Live Code Mobile Preference. and running the emulator on Android 2.3.3. It worked fine.. However I found the process buggy.. The thing is it does not need to work on all machine and for all apis.. However there should be clear document stating which software and operating system, it is more reliable.

Anyway, Now I would like to try some application which we have developed on older version of Run Rev.. I compiled it for Android and i was so happy that it compile without any problem :-)

To use the app, I have to copy one folder having couple of files to the default location. In windows app, that folder used to be in the same directory where the exe is located and when we run the program from revolution then it used to be inside the folder where revolution is installed.. (like a default folder)

The question is, Where should I copy that data folder in Android Emulator when debugging and trying.. and also where do I need to copy it in real android device... please help. I would like to keep the code same.. so please let me know the default location.... thanks

Gene
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 75
Joined: Wed Mar 09, 2011 6:48 pm

Re: Location of dafault folder into Andriod

Post by Gene » Sun Jul 01, 2012 6:04 pm

pkmittal wrote:Hi,
The question is, Where should I copy that data folder in Android Emulator when debugging and trying.. and also where do I need to copy it in real android device... please help. I would like to keep the code same.. so please let me know the default location.... thanks
Have a look at the File and Folder Handling section on page 31 of the Android Release Notes. It explains the use of "specialFolderPath" for accessing folders relative to the Android engine, or app. It's not too difficult, but it is more than I should try to explain in this post. If you have trouble with it after that, then I suggest repost the problem you are having.

I know the instructions for using the specialfolderpath are valid for testing on a device. I assume it will work the same testing on the emulator, but I haven't tried that. I almost always test to my phone.

Also, you can read and write folders and files to the SD card with ease. For example, my current app writes a demilited file to a folder I created on the SD card in order to make it easy to manipulate with an outboard file manager, and not just from within the app itself. Just beware that you have to disconnect the USB cable from the device before you try read/write operations to the SD card. The SD card is disabled when the phone is connected to a computer via USB.

Hope this helps - Gene

Nick Johnson
Posts: 16
Joined: Fri Jun 29, 2012 8:05 am

Re: Location of dafault folder into Andriod

Post by Nick Johnson » Tue Jul 10, 2012 7:30 am

"developer android com tools help adb html" (put "." & "/" in right places)

May be, above url will help you....

Post Reply