Update about the next version (2.70)

Erel

B4X founder
Staff member
Licensed User
Longtime User
Basic4android v2.70 BETA 1 was released.

The new features and improvements are:

- Compiler warnings. There will be about 30 types of warnings. Most of them detected whenever you save the project (or with the new "test compilation" option).

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


Note that the logs support colors to make it easier to see the errors, warnings and "info" messages. There is also a new keyword named LogColor which allows you to log messages in a specific color.

The warnings engine is very useful for both large projects and small projects and it finds many common mistakes (or possible mistakes) before you even run the program.

- Custom views. The designer will support adding custom views (with classes or libraries).

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


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



- Classes support properties.

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


The property code in this case is:
B4X:
'Gets or sets the text
Sub getText As String
   Return btn.Text
End Sub
Sub setText(t As String)
   btn.Text = t
End Sub

- Bitmaps handling improved - LoadBitmap / LoadBitmapSample handle "out of memory" errors internally by down-scaling the image. This also affects the visual designer.

- DateTime.ListenToExternalTimeChanges - raises an event when the device time is set or when the time zone changes (and updates the internal time zone used).

- Screenshot tool improved.

- CallSub improvements:
Returns Object instead of String.
Sender is set when calling from a class.
Significant performance improvements when calling subs in classes.
No error is raised if the target sub is not found when calling from a class (useful for events implementations).

- #LibraryName attribute.

- Library dependencies resolver can now handle cases as described here.

- Bug fixes and other minor improvements.

Edit: The beta is now released. Users who are eligible for a free upgrade will receive an email with the download link.

Thank you for your help. Please start new threads if you encounter any issue.

As this is a beta version, make sure to backup your projects before loading them with the new version.
You can install this version together with previous versions.
 

treehousefrog

Member
Licensed User
Longtime User
Thanks :-D Basic4Android is probably one of the best purchases I have ever made, and the continued support is excellent. Great work and very appreciated!
 
Upvote 0

LudwigRS

Member
Licensed User
Longtime User
2.70 is great ! But little probems ....

Hello Erel !
Great work again. Found a lot of unused variables and code in my program.

But have also some mystics :

within Process_Globals:

Dim intTour As Int ' <<< this is declared with a warning ´unused variable´ but is used later in several routines
Dim aktHalte As Int ' used in same routines, but no warning error
Dim intHalteNr As Int ' used in same routines, but no warning error


within a sub :

Dim lD1 As Long=0
lD1 = DateTime.DateParse(DateTime.Date(now)) + (DateTime.TimeParse(DateTime.Time(now)) - DateTime.DateParse(DateTime.Date(DateTime.now)))
' why warning 9 on lD1 unused in line before ??


DateTime.DateFormat ="dd.MM.yyyy"
Dim strDHeute As String = DateTime.Date(DateTime.now)
' why warning 9 unused ??

DateTime.DateFormat ="HH:mm:ss"
Dim strZHeute As String = DateTime.Date(DateTime.now)
' why warning 9 unused ??


Dim Beepers(3) As Beeper ' why warning 11 ?


Thank you !
 
Upvote 0

masterlaf

Member
Licensed User
Longtime User
Beta Version 2.70

Thanks for sending the beta version

sorry by my english i am from Chile Iquique City

best regards.
 
Upvote 0

adrianstanescu85

Active Member
Licensed User
Longtime User
Hello

I may report a potential bug I found in the beta 2.70 that relates to the Designer.

In my app I have an activity called ATransport and to design the GUI I started the designer with my tablet attached, on the Abstract Designer I set the Layout to Match Connected Device and after placing a few labels here and there I went on to the main Application to select a background image.

I'm using a Samsung Galaxy Note 10.1 that has 1280x800 px resolution, out of which I get 1280x752 without the lower Android bar, minus another 50 with the application title. So I added a 1280x702 px 300 dpi JPEG image to Image Files in the designer and then set this image as the BitmapDrawable image file for this activity.

To my surprise this put on a tiny tiny image on the tablet, about 30x10 px or so by eye, leaving the rest of the background black! The rest of the labels are, of course, in place. However, even if this looks ridiculous, I did save the .bal file and ran the project, which went on just fine with a full background picture on the device after the app was installed, but this bug regarding the Designer, more precisely showing another thing on the device when designing, remains.

I do have to say that I downgraded from 2.70 beta back to 2.52 and I solved the problem. When I switched back on again the beta... here it goes again...

Any comments over this...am I doing something or is this a real bug?

Thank you!
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Please post any issue you find in a new thread.

@LudwigRS , about the unused variable. Are you sure that the variable is used and not only assigned a value? If yes then please upload the code or sent it to me by mail ([email protected]).
I see the problem with Beeper and warning #11. Will be fixed.

@adrian, Can you upload your project or send it me by mail?
 
Upvote 0

adrianstanescu85

Active Member
Licensed User
Longtime User
Erel,

Thank you for the reply, I'd rather not upload the project since its destination will not allow it but I can send it to you by email, if you'll let me know how.

Adrian
 
Upvote 0

touchsquid

Active Member
Licensed User
Longtime User
Yes.


This is still a beta version. It expected to have issues.

However in order to fix this issues we need more information. Can you upload your project or send it by mail?

View.BringToFront was not changed in this version. It was changed in v2.30.

I will try the app with the release version. The project is too large to upload but if it still fails I will make a test app to show the failure.
 
Upvote 0
Top