Zeev Goldstein Well-Known Member Licensed User Longtime User Jan 23, 2023 #1 I might be dreaming... In pc I can add an exe file to my app package so it contains 2 or even more exe files. This way I can pack the entire solution as I want it. The user runs the main exe and if and when needed the main exe can run another exe. Is it possible in Android? Is it possible with B4A? The second apk is completely independent but must be with the main apk in same package or in same apk so the user sees one package Or should I wake up? If yes - how? 2 apks? Or what? Tanks
I might be dreaming... In pc I can add an exe file to my app package so it contains 2 or even more exe files. This way I can pack the entire solution as I want it. The user runs the main exe and if and when needed the main exe can run another exe. Is it possible in Android? Is it possible with B4A? The second apk is completely independent but must be with the main apk in same package or in same apk so the user sees one package Or should I wake up? If yes - how? 2 apks? Or what? Tanks
DonManfred Expert Licensed User Longtime User Jan 23, 2023 #2 Zeev Goldstein said: Is it possible in Android? Click to expand... No. There is no .exe in android. Zeev Goldstein said: Is it possible with B4A? Click to expand... No. B4A does not create exe files. Only APK. And you can NOT install two APK with the same packagename in Android. Upvote 0
Zeev Goldstein said: Is it possible in Android? Click to expand... No. There is no .exe in android. Zeev Goldstein said: Is it possible with B4A? Click to expand... No. B4A does not create exe files. Only APK. And you can NOT install two APK with the same packagename in Android.
Zeev Goldstein Well-Known Member Licensed User Longtime User Jan 23, 2023 #3 Thanks Exe was to explain my idea, I know that there is no exe in Android. The idea was to put 2 apps in same package so I don't need to install 2 app but only one that will contain the second Upvote 0
Thanks Exe was to explain my idea, I know that there is no exe in Android. The idea was to put 2 apps in same package so I don't need to install 2 app but only one that will contain the second
DonManfred Expert Licensed User Longtime User Jan 23, 2023 #4 Zeev Goldstein said: The idea was to put 2 apps in same package Click to expand... no such thing in android Upvote 0
Zeev Goldstein said: The idea was to put 2 apps in same package Click to expand... no such thing in android
Zeev Goldstein Well-Known Member Licensed User Longtime User Jan 23, 2023 #5 Thank you As I suspected I will have to wake up... Any idea how to overcome such a problem? I can create another app, upload to Google layout store etc... But I'm trying to avoid it Upvote 0
Thank you As I suspected I will have to wake up... Any idea how to overcome such a problem? I can create another app, upload to Google layout store etc... But I'm trying to avoid it
DonManfred Expert Licensed User Longtime User Jan 23, 2023 #6 I don´t see how you would overcome that as it is not possible in Android. Create a second app with a new packagename and start this app if you want to. Upvote 0
I don´t see how you would overcome that as it is not possible in Android. Create a second app with a new packagename and start this app if you want to.
Zeev Goldstein Well-Known Member Licensed User Longtime User Jan 23, 2023 #7 DonManfred said: I don´t see how you would overcome that as it is not possible in Android. Create a second app with a new packagename and start this app if you want to. Click to expand... Yes, seems like the path to go to I wanted to avoid the need to send the user to install another app... That's the reason for me getting 'crazy' I want to simplify the user's life... In pc I just pack 2 or more exe files and run them internally if and when needed One setup Upvote 0
DonManfred said: I don´t see how you would overcome that as it is not possible in Android. Create a second app with a new packagename and start this app if you want to. Click to expand... Yes, seems like the path to go to I wanted to avoid the need to send the user to install another app... That's the reason for me getting 'crazy' I want to simplify the user's life... In pc I just pack 2 or more exe files and run them internally if and when needed One setup
epiCode Active Member Licensed User Jan 23, 2023 #8 Zeev Goldstein said: Thank you As I suspected I will have to wake up... Any idea how to overcome such a problem? I can create another app, upload to Google layout store etc... But I'm trying to avoid it Click to expand... you can use Intent to install an apk file however you need to have target phone enable "install app from unknown sources" turned on Upvote 0
Zeev Goldstein said: Thank you As I suspected I will have to wake up... Any idea how to overcome such a problem? I can create another app, upload to Google layout store etc... But I'm trying to avoid it Click to expand... you can use Intent to install an apk file however you need to have target phone enable "install app from unknown sources" turned on
Zeev Goldstein Well-Known Member Licensed User Longtime User Jan 23, 2023 #9 epiCode said: you can use Intent to install an apk file however you need to have target phone enable "install app from unknown sources" turned on Click to expand... Thanks It will be easier and simpler to do it the right way through the store... Upvote 0
epiCode said: you can use Intent to install an apk file however you need to have target phone enable "install app from unknown sources" turned on Click to expand... Thanks It will be easier and simpler to do it the right way through the store...
epiCode Active Member Licensed User Jan 23, 2023 #10 Zeev Goldstein said: Thanks It will be easier and simpler to do it the right way through the store... Click to expand... you can also use intent to open an app in play store (leaving it on the user to install it from there) Upvote 0
Zeev Goldstein said: Thanks It will be easier and simpler to do it the right way through the store... Click to expand... you can also use intent to open an app in play store (leaving it on the user to install it from there)
Zeev Goldstein Well-Known Member Licensed User Longtime User Jan 23, 2023 #11 epiCode said: you can also use intent to open an app in play store (leaving it on the user to install it from there) Click to expand... Yes, that's the idea If I can't avoid it and I must force the user to do it, at least do it the right way Upvote 0
epiCode said: you can also use intent to open an app in play store (leaving it on the user to install it from there) Click to expand... Yes, that's the idea If I can't avoid it and I must force the user to do it, at least do it the right way
Zeev Goldstein Well-Known Member Licensed User Longtime User Jan 23, 2023 #12 If I want to pass some info between my app and the second one that will be invoked as intent - how do I do it? So the second app will get some input? And, how if possible to return info to the calling app? Thanks Upvote 0
If I want to pass some info between my app and the second one that will be invoked as intent - how do I do it? So the second app will get some input? And, how if possible to return info to the calling app? Thanks
teddybear Well-Known Member Licensed User Jan 24, 2023 #13 Zeev Goldstein said: The second apk is completely independent but must be with the main apk in same package or in same apk so the user sees one package Or should I wake up? If yes - how? 2 apks? Or what? Tanks Click to expand... If it is in same apk. you can get on dreaming. Put the second apk into asset folder of your 1st app. while the 1st app running you can check the package if it is installed ? and then you may do what you want to do Upvote 0
Zeev Goldstein said: The second apk is completely independent but must be with the main apk in same package or in same apk so the user sees one package Or should I wake up? If yes - how? 2 apks? Or what? Tanks Click to expand... If it is in same apk. you can get on dreaming. Put the second apk into asset folder of your 1st app. while the 1st app running you can check the package if it is installed ? and then you may do what you want to do
Mariano Ismael Castro Active Member Licensed User Longtime User Jan 24, 2023 #14 Zeev Goldstein said: If I want to pass some info between my app and the second one that will be invoked as intent - how do I do it? So the second app will get some input? Click to expand... Look at this https://www.b4x.com/android/forum/t...ters-from-app_a-to-app_b2.140677/#post-891511 https://www.b4x.com/android/forum/t...ner-messages-between-apps.123680/#post-776431 Upvote 0
Zeev Goldstein said: If I want to pass some info between my app and the second one that will be invoked as intent - how do I do it? So the second app will get some input? Click to expand... Look at this https://www.b4x.com/android/forum/t...ters-from-app_a-to-app_b2.140677/#post-891511 https://www.b4x.com/android/forum/t...ner-messages-between-apps.123680/#post-776431
aeric Expert Licensed User Longtime User Jan 24, 2023 #15 If you want to create something like the B4A-Bridge, check the source code. In B4A-Bridge, the app checks if you have B4A-Designer installed. If it is not, it will prompt you to install the designer app which has a different package name. Upvote 0
If you want to create something like the B4A-Bridge, check the source code. In B4A-Bridge, the app checks if you have B4A-Designer installed. If it is not, it will prompt you to install the designer app which has a different package name.
MicroDrie Well-Known Member Licensed User Longtime User Jan 24, 2023 #16 DonManfred said: I don´t see how you would overcome that as it is not possible in Android. Create a second app with a new packagename and start this app if you want to. Click to expand... Or you realize the two programs with one B4XPages in which you only initialize the necessary B4Xpages you need, based on your user's choice. Or just throw away pages you no longer need. You just have to think much more modular and realize functionality in reusable and program shareable B4XPage that you can add at will in programs you create. An additional advantage: you can use the global variable in the B4XMainPage to exchange information between the two programs within your program without being hindered by the Android data restrictions. By the way, storing and reading a Global variable in the B4XMainPage is a good reason to free up memory space by, for example, removing a B4XPage and a read-out or to write all variables between to program and a file. Upvote 0
DonManfred said: I don´t see how you would overcome that as it is not possible in Android. Create a second app with a new packagename and start this app if you want to. Click to expand... Or you realize the two programs with one B4XPages in which you only initialize the necessary B4Xpages you need, based on your user's choice. Or just throw away pages you no longer need. You just have to think much more modular and realize functionality in reusable and program shareable B4XPage that you can add at will in programs you create. An additional advantage: you can use the global variable in the B4XMainPage to exchange information between the two programs within your program without being hindered by the Android data restrictions. By the way, storing and reading a Global variable in the B4XMainPage is a good reason to free up memory space by, for example, removing a B4XPage and a read-out or to write all variables between to program and a file.