Some file questions

jschuchert

Active Member
Licensed User
Longtime User
I don't have a device yet so am using the emulator.

Is it possible to create a text file outside of my application (which also will do it) and insert it into "DirInternal" for editing, etc.

During my testing I created several practice files (DirInternal). How would I delete or edit them?

Where are the files created if I use DirExternal using the emulator and can I specify where they will go?

Last question. My son-in-law is visiting for a couple of days and he has an android phone. I would like to upload my "very" partial app just to see how it looks. How would I go about it? I haven't seen anything yet in the documentation but that doesn't mean it isn't there. Thanks to all of you awesome people.

Jim Schuchert
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The emulator storage card cannot be directly accessed from outside.
You can add the file in the Files tab (at the right pane) and then it will be added to DirAssets.

Files located in DirInternal will be deleted when you uninstall your application.
You can also delete them manually with File.Delete.

You can call Log(File.DirXXX) to see the actual file path (which is internal to the emulator).

You can connect the Android device to the IDE with B4A-Bridge: http://www.b4x.com/forum/basic4andr...8-b4a-bridge-new-way-connect-your-device.html
 
Upvote 0

derez

Expert
Licensed User
Longtime User
The emulator storage card cannot be directly accessed from outside.

With my experience - you can access the emulator's sdcard (using this name) by ADB push and pull commands.
 
Upvote 0

jschuchert

Active Member
Licensed User
Longtime User
Erel,

I have an android phone available now and have gotten to the screen shown in the docs where the start and stop buttons are and it says connected. However, I can't see my application on the device. Should the application on the computer be in designer mode or running in the compiled state when it was connected via the bridge? When the app is deployed to users, do they have to go through the android market?

Jim Schuchert
 
Upvote 0

mistermentality

Active Member
Licensed User
Longtime User
Erel,

I have an android phone available now and have gotten to the screen shown in the docs where the start and stop buttons are and it says connected. However, I can't see my application on the device. Should the application on the computer be in designer mode or running in the compiled state when it was connected via the bridge? When the app is deployed to users, do they have to go through the android market?

Jim Schuchert

To test run your app on your phone you just need to plug it in via a usb cable to your computer and click the compile and run button (blue play like button on the main screen of the ide) it should then after a minute run on your phone.

You can use the wireless bridge if this method does not work.

Your app can be deployed through the market, yes, or from your own website for example.

Dave
 
Upvote 0

jschuchert

Active Member
Licensed User
Longtime User
Forget my last. I figured it out. Still would like to know how a user gets the app without the B4a bridge between device and IDE.

Regarding the 'comma' issue. I will not format the numbers when writing to a file but only when displaying them. Haven't tested this theory completely but initial indications are that it will work. Stay tuned.

Jim Schuchert
 
Upvote 0

jschuchert

Active Member
Licensed User
Longtime User
Thank you Dave. I did get the app to run on the phone but had problem with the t9 keypad. I will eventually pick up a device but not right now.

Deploy from my web site? Great. That would be my preferable method. There is probably a cost involved with putting it in the Android market?

Jim Schuchert
 
Upvote 0
Top