Basic4android v2.71 is released!

Erel

Administrator
Staff member
Licensed User
Basic4android v2.71 is now available. I would first like to thank the beta testers for their help and feedback :icon_clap:.

This version includes many improvements including several major new features:

  • Compiler warnings - A new warning engine that helps finding common errors as soon as possible:

    SS-2013-05-02_17.41.51.png

  • Custom views with designer support - Developers can create custom views (with classes or libraries) that can be added with the visual designer. This feature makes it possible to build the complete layout with the designer and designer scripts.
  • Classes properties - a long-awaited feature.
  • Bitmaps handling improved - LoadBitmap / LoadBitmapSample internally handle out of memory errors by down-scaling the image. The visual designer loads images based on the target size to preserve memory.
  • DateTime.ListenToExternalTimeChanges - raises an event when the device time is set or when the time zone changes (and updates the internal time zone used).
  • CallSub keyword improvements:
    Returns Object instead of String.​
    Sender is set when calling from a class. This is useful for events implementation.​
    Significant performance improvements when calling subs in classes.​
    No error is raised if the target sub is not found when calling from a class. This is useful for events implementation.​
  • #LibraryName attribute. Sets the compiled library name.
  • Libraries dependencies resolver was improved and it can now handle cases such as described here.
  • Logs are colored based on the message type.
  • LogColor keyword - Similar to Log. The message will be displayed in the IDE with the specified color.
  • Screenshot tool improved.
  • HttpUtils2 and DateUtils are now included as libraries in the IDE.
  • Bug fixes and other minor improvements (including "run last deployment" feature).

Version 2.71 is now available for download from the same link as v2.70. This update fixes the following issues:
  • Low quality images when adding images with the designer
  • CallSub casing fails with some numeric types
  • Support for the new location of aapt.exe
  • Other minor improvements
 

Eugene

New Member
Licensed User
Compile To Library - activity context for code modules

First of all thanks a lot for thе great job you are doing guys!
For the time I'm following the project it become serious and competitive product on the market. Of course as any other software it is containing some bugs and glitches but taking on account the speed of IDE development they are just amaizingly nominal.

Perhaps I missed something but why Compile To Library option is always creating the library for activity context?

Below is XML file content from my test library compiled from the fresh installation of B4A 2.7. The library is containing just one code module - it's why I'm not understanding why <owner> tag is set as activity?

As the result I cannot use static functions from this library in other B4A modules wich has process context unless:
1. I set dummy activity object in module's globals which is not always good
2. Or edit XML file manually replacing owner with process (or using #CustomBuildAction with utility which will do the same each time after library compilation)

HTML:
<?xml version="1.0" encoding="UTF-8"?>
-<root> <doclet-version-NOT-library-version>1.00</doclet-version-NOT-library-version> -<class b4a_type="StaticCode"> <name>b4a.example.func2</name> <shortname>Func2</shortname> <owner>activity</owner> <objectwrapper>java.lang.Class</objectwrapper> -<method> <name DesignerName="IsWorking">_isworking</name> <returntype>boolean</returntype> -<parameter> <name>ba</name> <type>anywheresoftware.b4a.BA</type> </parameter> </method> -<method> <name DesignerName="Process_Globals">_process_globals</name> <returntype>String</returntype> </method> </class> <version>1</version> <author>Eugene</author> </root>
 
Upvote 0

GPJMA

Member
Licensed User
I just downloaded the new update. Awesome...just like all the other improvements over the years.
It makes me want to be less of a casual user and spend a lot more time with this.
Thanks as always for the support.
 
Upvote 0

silverbyte

Member
Licensed User
I have yet not recieved the link to download the new version. I have a 2year paid subscription to basic4android.

I think the email address is not properly setup. (Actually the correct email address is entered i just checked)
Where do i download the new version?
 
Last edited:
Upvote 0

sktanmoy

Active Member
Licensed User
I've lost

I've lost my B4A installation and license file after OS reload. Erel, you should keep an option/panel for premium users who can download logging into their panel.
 
Upvote 0

uswin4224

Member
Licensed User
[*] Bitmaps handling improved - LoadBitmap / LoadBitmapSample internally handle out of memory errors by down-scaling the image. The visual designer loads images based on the target size to preserve memory.

Hi Erel, is this feature work when we use the b4a live wallpaper library, loading bitmap in canvas?

If this also work in live wallpaper library, I might have to save some money to buy this version

Thnaks
 
Upvote 0

Harris

Expert
Licensed User
comment

My apk's are often (much) larger than the great tool I use to develop them...

Is the entire contents of the "Files" folder included in the resulting apk? (I throw many images in there when testing).

Thanks
 
Upvote 0

IanMc

Well-Known Member
Licensed User
Yup think so

Yes, I believe that everything in the files folder is included in the apk

This means you can put html files in there and open them with the WebView :)

Great for a simple way to make help pages within your app.

btw.... Over 10,000 views of this thread!

Is B4a getting popular or what?

added: Make an html file like this ... index.html
B4X:
<html><head></head><body>
<center>
<table width="90%"><tr><td>
<h1>This is the index</h1>
this is some text
</td></tr></table>
</center>
</body></html>

and although not strictly legal html5 :) it does look good on any screen size or orientation!
 
Last edited:
Upvote 0

luke2012

Well-Known Member
Licensed User
Upgrade from B4A 1.93

Hi,
I'm planning to upgrate from the version 1.93 to the last B4A version.

I have a couple of question about this :

1) I known that the last version add several new features but could be some issue to migrate a 1.93 project to 2.70 IDE ?

2) How much to upgrade ?
 
Upvote 0

Erel

Administrator
Staff member
Licensed User
Hi Erel, is this feature work when we use the b4a live wallpaper library, loading bitmap in canvas?
This feature work whenever you load a bitmap with LoadBitmap or LoadBitmapSample or Bitmap.Initialize or Bitmap.InitializeSample.

@Harris, please start a new thread for your question.

@luke please contact support@basic4ppc.com about the upgrade options.

New versions are backwards compatible with previous versions. However in some versions there are some small issues which you should be aware of. You can see them in the release thread for each version.
http://www.basic4ppc.com/forum/basi...ic4android-changelog-versions.html#post111319
 
Upvote 0

Theera

Well-Known Member
Licensed User
Ask about version 2.71

Hi Erel,
Custom views with designer support - Developers can create custom views (with classes or libraries) that can be added with the visual designer. This feature makes it possible to build the complete layout with the designer and designer scripts.

It's mean that
If I use your datepicker class,I could insert this view on the layout directly.

I understand True or False?
 
Upvote 0

pcmaik

New Member
Licensed User
Hi Erel, I have purchased the Enterprise version on 18/07/2011.
So I am entitled to two years updates
So far I have received no download link for version 2.7.
On May 14 and May 28, I have written a e-mail to
support@basic4ppc.com .
But I get no response. :sign0085:
 
Upvote 0
Top