Basic4android v1.92 is released!

Erel

Administrator
Staff member
Licensed User
Basic4android v1.92 is now available. All users who previously run v1.90 can download this update.

You should use the same link and password as the one used to download v1.90.
Please contact support@basic4ppc.com if you have lost the previous mail.

This update fixes the following issues:
- DoEvents / Msgbox crash the application on Android 4.0.3 and above when used inside Panel_Touch event and some other touch related events.
- Starting the Bluetooth bridge hangs the IDE.
- HorizontalCenter returns the wrong value in the designer script.
- The designer script variant code is not executed if there is no general code.
- Basic4android is now compatible with Designer4android layout files.
- (Libraries developers) BA.raiseEventFromUI - new method to raise events from inside a native UI. The event is raised by posting a message to the message queue. This fixes the DoEvents / Msgbox issue in Android ICS.
- Other minor fixes.

- Panel_Touch event return value is now ignored.

If you have customized B4A.xml then do not forget to backup it before installing the new version.
 

ssg

Well-Known Member
Licensed User
Hi Erel,

Just checking, since version 2.0 is coming up, would we be seeing any surprises? :D

Also, is there any game engine in the works from Anywhere Software, and if yes, would we see it anytime soon.

Thanks!

Cheers!
-Bill
 

Erel

Administrator
Staff member
Licensed User
Just checking, since version 2.0 is coming up, would we be seeing any surprises?
The next major version will include support for user classes.

Also, is there any game engine in the works from Anywhere Software, and if yes, would we see it anytime soon.
Currently not.

This thread is about v1.92 so if you have any more questions please start a new thread...
 

warwound

Expert
Licensed User
I upgraded earlier and notice this in the unfiltered logs when starting a B4A project:

Start proc uk.co.martinpearman.b4a.labelextrasdemo for activity uk.co.martinpearman.b4a.labelextrasdemo/.main: pid=2428 uid=10101 gids={}
Initializing inflate state
Initializing inflate state
GC_EXTERNAL_ALLOC freed 44K, 50% free 2697K/5379K, external 0K/0K, paused 191ms
java.lang.NoSuchFieldException: flags
at java.lang.ClassCache.findFieldByName(ClassCache.java:446)
at java.lang.Class.getDeclaredField(Class.java:666)
at anywheresoftware.b4a.Msgbox.<clinit>(Msgbox.java:51)
at uk.co.martinpearman.b4a.labelextrasdemo.main.onResume(main.java:176)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1150)
at android.app.Activity.performResume(Activity.java:3832)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2231)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2256)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1789)
at android.app.ActivityThread.access$1500(ActivityThread.java:123)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:939)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3835)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at dalvik.system.NativeStart.main(Native Method)
GC_CONCURRENT freed 175K, 44% free 3375K/6023K, external 0K/0K, paused 5ms+17ms


** Activity (main) Create, isFirst = true **
Application package was replaced (eg: upgraded) => Scheduling next wake-up ...
scheduleNextWakeup(): Invoked with idToExcludeForToday=null
** Activity (main) Resume **
scheduleNextWakeup(): No next wakeup scheduled.
I'm pretty sure that was not happening with version 1.90?

I'm running projects in release mode on a real device - ZTE Blade with CyanogenMod Gingerbread.

Martin.
 

ScarBelly

Member
Licensed User
Hah! I needed my B4A.xml backup because once again I forgot about it getting overwritten.

REMEMBER folks who have customized your IDE to be sure you've backed up
B4A.xml

Thanks for the update Erel.
 

NJDude

Expert
Licensed User
- Panel_Touch event return value is now ignored.
Can you please explain that, I'm having issues with an app that uses Panel_Touch to play a sound, now is not registering, it happend as soon as I upgraded to 1.92
 

Smee

Well-Known Member
Licensed User
Ha, and i only just upgraded to v1.90 yesterday

HaHAha:)
 

beacon

Member
Licensed User
Can you please explain that, I'm having issues with an app that uses Panel_Touch to play a sound, now is not registering, it happend as soon as I upgraded to 1.92
My app has 6945 lines, and stopped dead when my Samsung Galaxy Note upgraded to 4.0.3 yesterday morning. It includes Panel_Touch, but never gets that far. It appears to melt at:

Panels(1).SetBackgroundImage(LoadBitmap(File.DirAssets, "Tides.png"))

Layouts have been loaded for activities and panels.

:eek:

David.
 

beacon

Member
Licensed User
It is difficult to say what is the problem without seeing the code.
This thread discusses the change with Panel_Touch event:
B4A 1.92 and panel issues
Hi again Erel.

After much testing, I can say that something interesting is going on here.

When I load a large background in the desktop designer (by which I mean a photo with larger dimensions than the background, in this case 6MB) all runs well.

If I load the same picture programatically, there is an abend under 4.0.3 which did not occur previously.

as

Panels(1).SetBackgroundImage(LoadBitmap(File.DirAssets, "Tides.png"))

Therefore, I have for now reduced the pictures to the background size so that it will run under 4.0.3.

Best wishes.
David.
 

Informatix

Expert
Licensed User
- Panel_Touch event return value is now ignored.
Actually, I can't find a solution for my long clicks. They do not work anymore. (I use the two events: touch and longclick for the same object). Since my app relies heavily on panel_touch and long clicks, this change is a nightmare. :BangHead:
 
Top