Android Question Is Source Code Member Name or Generated apk File Name Available in Code

Bradley James Marks

Member
Licensed User
Longtime User
I have a source code file called “Test100.b4a”. When I compile and run, a file named “result.apk” is generated.

Is it possible to obtain either or both of these file names from within the “basic” code?

Thanks,

Brad
 

Bradley James Marks

Member
Licensed User
Longtime User
NJDude,

Thanks for the help. I am new to B4A and have a lot to learn.

I guess that I didn't explain what I am trying to do. I would like to be able to obtain the name of the "source" file (the .b4a file) and the name of the "generated" file (the .apk file) from within the program code.

Thanks,
Brad
 
Upvote 0

Bradley James Marks

Member
Licensed User
Longtime User
Rolf,

I am having a difficult time trying to explain what I am after.

Here is an example. In Microsoft Access VBA code, a person can use a line of code like this -

MsgBox CurrentDb.Name

to obtain the full path to the .accdb file (such as C:\MSAccess\DemoCode\Test1.accdb)

I am curious if there is a way to obtain either the source file name (the .b4a file), or the generated file name (the .apk file) from within the program such as a person is able to do inside the MS Access VBA code shown above.

Thanks for your assistance,
Brad
 
Upvote 0

rbsoft

Active Member
Licensed User
Longtime User
The apk file is a zip file. You can open it and check inside the file.

Rolf
 
Upvote 0
Top