Android Tutorial Basic4Android for Linux (Ubuntu) - Installation Script

zolive33

Active Member
Licensed User
Longtime User
@zolive33
PS the .desktop file used by the script is Basi4android.desktop. However, the script actually creates Basic4android.desktop. Could you explain why?

Hello John, I made a mistake, I'll correct it for next update. But I don't understand why the launcher is created with the name Basic4android.desktop.
 
Last edited:

zolive33

Active Member
Licensed User
Longtime User

Oh! it's a very bad bug ;-) the variable $Winedir is not initialized.
I'll correct it, test it and update it tonight.

Regards.
 
Last edited:

johnaaronrose

Active Member
Licensed User
Longtime User
Oh! it's a very bad bug ;-) the variable $Winedir is not initialized.
I'll correct it, test it and update it tonight.

Regards.

Thanks. New version worked OK.

The original script had lines like:
echo "[Desktop Entry]" >$wksB4A/Basi4android.desktop

This is why I didn't understand why the launcher was created with name Basic4android rather than Basi4android.

Latest script has had these lines changed e.g.
echo "[Desktop Entry]" >$wksB4A/Basic4android.desktop

The script installed the trial version. I wanted to install the latest paid version. So I amended the script & it installed OK:
ProgInstallB4A=b4a-u760.exe
UrlB4A=

Just one question: when I try to 'Tools -> Configure Paths' in B4A (needed in order to compile an app), I need to browse for javac.exe but Ubuntu's Dash couldn't find it. However, AFAIK I don't think that it is available since Linux version of OpenJDK rather than Windows version of Java is installed. Any suggestions as to where to find javac.exe? I wondered if the Windows version of Java needs to be installed?
PS android.jar was where B4A suggested it should be i.e. in Wine's Program Files. And I had the license file & Additional Libraries saved in appropriate places.
 
Last edited by a moderator:

zolive33

Active Member
Licensed User
Longtime User

Of course, JDK for Windows must be installed. This component is required to compile and package a B4A project. Unfortunately, B4A can't use linux binaries.

android.jar usually found under .[...]/android-sdk-linux/platforms/android-xx/....

For example, I added a screenshot with my settings.


Note : If you update "Android SDK Tools" with the SDK Manager, you must restart my installation script to re-write android.bat and re-add platform-tools components. (all old files are deleted whenever SDK is updated).

Best Regards.
 

johnaaronrose

Active Member
Licensed User
Longtime User
Have I missed something? When I ran the script, it didn't install JDK for Windows but it installed JDK for Linux.
 

zolive33

Active Member
Licensed User
Longtime User
Have I missed something? When I ran the script, it didn't install JDK for Windows but it installed JDK for Linux.

you must intall both JDK. After installing dotnet 2.0, the script prompts you to install JDK for Windows.
 

zolive33

Active Member
Licensed User
Longtime User
I think appt.exe is not required for B4A. Also you can add it manually.
Regards.
 

stanks

Active Member
Licensed User
Longtime User
for packaging? b4a throws err msg because it is missing. i tried to add it manually but still same err msg
 

johnaaronrose

Active Member
Licensed User
Longtime User
@zolive33,
I've just ran your script again only saying 'y' to the request to update B4A (i.e. to Erel's latest version 3.80). It downloaded it OK (after I changed the URl for B4A in the script) but it hung after many repetitions of:
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
fixme:win:RegisterDeviceNotificationA (hwnd=0x13ad50, filter=0x93e598,flags=0x00000001) returns a fake device notification handle!
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!

PS it didn't update the B4A version when invoking B4A.
 

zolive33

Active Member
Licensed User
Longtime User

Sorry, I am traveling on business. I will look at the problem this weekend.
 

3below

New Member
Licensed User
Longtime User
Successful install on Ubuntu 14.04 LTS using the PlayOnLinux method described earlier. Wireless will connect to my device. Next step add JDK and Android SDK.
 

mjtaryan

Active Member
Licensed User
Longtime User
Do you know if this solution will work on Ubuntu, which is what I use? Also, can you provide links to the JAVA Linux jdk and the Android sdk for Linux? Thans.
 

seaton

New Member
Licensed User
Longtime User

johnaaronrose

Active Member
Licensed User
Longtime User
Sorry, I am traveling on business. I will look at the problem this weekend.
Did you look at problem detailed in my post 33 i.e.
I've just ran your script again only saying 'y' to the request to update B4A (i.e. to Erel's latest version 3.80). It downloaded it OK (after I changed the URl for B4A in the script) but it hung after many repetitions of:
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!
fixme:win:RegisterDeviceNotificationA (hwnd=0x13ad50, filter=0x93e598,flags=0x00000001) returns a fake device notification handle!
fixme:win:UnregisterDeviceNotification (handle=0xcafecafe), STUB!

PS it didn't update the B4A version when invoking B4A.
 

zolive33

Active Member
Licensed User
Longtime User

Sorry, I no longer have time to take care of this project for the moment. Can someone take care of?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…