XtraViews

Periklis Koutsogiannis

Active Member
Licensed User
Longtime User
And by the way, Its possible to use something like this to embed the animations in your library's Jar?

Unfortunately not, due to how android loads the animations into the dialog.

About the other "LoadLayout" suggestions. They are very interesting, but since the main purpose of the DialogView to connect itself as much as possible to the b4a layout designer, they would defeat that purpose. Maybe in a later version :)

@Jaames Thank you!
 

ivan.tellez

Active Member
Licensed User
Longtime User
Hi

Im sorry, but i dont get what you mean with "to connect itself as much as possible to the b4a layout designer"

The idea of a "LoadLayout", its only with encapsulation purposes, for example, create some common dialogs be able to deploy them in many proyects and avoid extra coding problems ins distributing lots of bal files. The layouts are going to be made with B4A layout designer. It just make easier to work with others if you can distribute self contained jars tha distribute them with dependencies.
 
Last edited:

Periklis Koutsogiannis

Active Member
Licensed User
Longtime User
Update: 2.3
  • Added: DialogViewViews object with all known ViewWrapper members
  • Changed: DialogLayoutView.GetView and DialogView.GetView changed to DialogLayoutView.Views.Get and DialogView.Views.Get

Now you can get direct reference to a layout view without the need of casting:

Before:
B4X:
Dim Label1 as Label = DialogLayout.Views.Get("Label1")
Label1.Text = "hello!"

Now:
B4X:
DialogLayout.Views.Label("Label1").Text = "hello!"
 

Periklis Koutsogiannis

Active Member
Licensed User
Longtime User
Last edited:

Periklis Koutsogiannis

Active Member
Licensed User
Longtime User

avacondios

Active Member
Licensed User
Longtime User
Hi,

I am trying to download from dropbox and I am getting the chrome error that the file is malicious. Can you check your downloaded zip file ?
 

JakeBullet70

Well-Known Member
Licensed User
Longtime User
Hi,

Try to get this to work with a custom control. Its Erel's CustomListView.

I get this Error
java.lang.ClassCastException: anywheresoftware.b4a.BALayout cannot be cast to sadLogic.eHome.customlistview


on this code

B4X:
'--- change color of BG panel
    Dim p1 As Panel = Dialog.Views.Get("pnlBG")
    p1.Color = c.CLR_BG_PIXEL
  
    Dim lbl As Label = Dialog.Views.Get("lblHeader")
    lbl.Color = c.CLR_TXT_NORMAL
    lbl.TextColor = c.CLR_TXT_BRIGHT
    lbl.Text = "Send shopping list email"
  
    Dim lvXEmails As CustomListView = Dialog.Views.Get("lvx") '--- THIS LINE FAILS
    lvXEmails.AddTextItem("ws235dasd",0)
    lvXEmails.AddTextItem("wsda25sd",34)
    lvXEmails.AddTextItem("wsda2435sd",3)

Thanks
 

Periklis Koutsogiannis

Active Member
Licensed User
Longtime User

JakeBullet70

Well-Known Member
Licensed User
Longtime User
Hi Periklis.

I found an issue in Dialog.LoadLayoutWithEvent code. I am getting a:

java.lang.RuntimeException: RUN_METHOD_WITH_SYNC expected

When running in Rapid debugger in terminates, works fine in Legacy debugger.
I posted in the BUG forum and Erel said to give you a full stack trace.

http://www.b4x.com/android/forum/th..._method_with_sync-expected.43918/#post-267108

I hope this helps.




B4X:
StrictMode policy violation; ~duration=30 ms: android.os.StrictMode$StrictModeNetworkViolation: policy=31 violation=4


    at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1123)
    at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:163)
    at libcore.io.IoBridge.recvfrom(IoBridge.java:513)
    at java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)
    at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
    at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
    at java.io.InputStream.read(InputStream.java:163)
    at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:227)
    at java.io.DataInputStream.readByte(DataInputStream.java:96)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:298)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
    at anywheresoftware.b4a.objects.Timer$TickTack.run(Timer.java:105)
    at android.os.Handler.handleCallback(Handler.java:725)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:5041)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    at dalvik.system.NativeStart.main(Native Method)
GC_CONCURRENT freed 1377K, 15% free 8748K/10264K, paused 4ms+0ms, total 27ms


StrictMode policy violation; ~duration=47 ms: android.os.StrictMode$StrictModeNetworkViolation: policy=31 violation=4


    at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1123)
    at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:163)
    at libcore.io.IoBridge.recvfrom(IoBridge.java:513)
    at java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)
    at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
    at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
    at java.io.InputStream.read(InputStream.java:163)
    at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:227)
    at java.io.DataInputStream.readByte(DataInputStream.java:96)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:298)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
    at anywheresoftware.b4a.objects.WebSocketWrapper$1.onTextMessage(WebSocketWrapper.java:77)
    at de.tavendo.autobahn.WebSocketConnection$2.handleMessage(WebSocketConnection.java:392)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:5041)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    at dalvik.system.NativeStart.main(Native Method)
StrictMode policy violation; ~duration=31 ms: android.os.StrictMode$StrictModeNetworkViolation: policy=31 violation=4


    at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1123)
    at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:163)
    at libcore.io.IoBridge.recvfrom(IoBridge.java:513)
    at java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)
    at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
    at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
    at java.io.InputStream.read(InputStream.java:163)
    at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:227)
    at java.io.DataInputStream.readByte(DataInputStream.java:96)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:298)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:853)
    at anywheresoftware.b4a.keywords.Common.CallSubNew2(Common.java:810)
    at sadLogic.eHome.websockethandler._ws_textmessage(websockethandler.java:195)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:636)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:305)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
    at anywheresoftware.b4a.objects.WebSocketWrapper$1.onTextMessage(WebSocketWrapper.java:77)
    at de.tavendo.autobahn.WebSocketConnection$2.handleMessage(WebSocketConnection.java:392)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:5041)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    at dalvik.system.NativeStart.main(Native Method)
out_write() limiting sleep time 34149 to 23219


out_write() limiting sleep time 45759 to 23219


frozen vegs - mixed,
Berries,
(ArrayList) [[items=frozen vegs - mixed, cat=Frozen Foods, IsInitialized=true
], [items=Berries, cat=Fruits, IsInitialized=true
]]
out_write() limiting sleep time 37369 to 23219
StrictMode policy violation; ~duration=106 ms: android.os.StrictMode$StrictModeNetworkViolation: policy=31 violation=4


    at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1123)
    at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:163)
    at libcore.io.IoBridge.recvfrom(IoBridge.java:513)
    at java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)
    at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
    at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
    at java.io.InputStream.read(InputStream.java:163)
    at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:227)
    at java.io.DataInputStream.readByte(DataInputStream.java:96)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:298)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
    at anywheresoftware.b4a.BA$2.run(BA.java:285)
    at android.os.Handler.handleCallback(Handler.java:725)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:5041)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    at dalvik.system.NativeStart.main(Native Method)
StrictMode policy violation; ~duration=102 ms: android.os.StrictMode$StrictModeNetworkViolation: policy=31 violation=4


    at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1123)
    at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:163)
    at libcore.io.IoBridge.recvfrom(IoBridge.java:513)
    at java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)
    at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
    at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
    at java.io.InputStream.read(InputStream.java:163)
    at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:227)
    at java.io.DataInputStream.readByte(DataInputStream.java:96)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:298)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
    at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:853)
    at anywheresoftware.b4a.keywords.Common.CallSubNew(Common.java:802)
    at sadLogic.eHome.clsshopping2._lvmenu_itemclick(clsshopping2.java:795)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:636)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:305)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
    at anywheresoftware.b4a.BA$2.run(BA.java:285)
    at android.os.Handler.handleCallback(Handler.java:725)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:5041)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    at dalvik.system.NativeStart.main(Native Method)
StrictMode policy violation; ~duration=86 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2
    at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1107)
    at android.database.sqlite.SQLiteConnection.applyBlockGuardPolicy(SQLiteConnection.java:1034)
    at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:835)
    at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)
    at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)
    at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:143)
    at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
    at anywheresoftware.b4a.sql.SQL$CursorWrapper.getRowCount(SQL.java:313)
    at sadLogic.eHome.clsshopping2._smtp_createhtmlemailbody(clsshopping2.java:1124)
    at sadLogic.eHome.clsshopping2._smtp_prepemailbody(clsshopping2.java:907)
    at sadLogic.eHome.clsshopping2._lvmenu_itemclick(clsshopping2.java:807)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:636)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:305)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
    at anywheresoftware.b4a.BA$2.run(BA.java:285)
    at android.os.Handler.handleCallback(Handler.java:725)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:5041)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    at dalvik.system.NativeStart.main(Native Method)
StrictMode policy violation; ~duration=84 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2


    at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1107)
    at android.database.sqlite.SQLiteConnection.applyBlockGuardPolicy(SQLiteConnection.java:1034)
    at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:835)
    at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)
    at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)
    at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:143)
    at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
    at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:197)
    at anywheresoftware.b4a.sql.SQL$CursorWrapper.setPosition(SQL.java:300)
    at sadLogic.eHome.clsshopping2._smtp_createhtmlemailbody(clsshopping2.java:1181)
    at sadLogic.eHome.clsshopping2._smtp_prepemailbody(clsshopping2.java:907)
    at sadLogic.eHome.clsshopping2._lvmenu_itemclick(clsshopping2.java:807)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:636)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:305)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
    at anywheresoftware.b4a.BA$2.run(BA.java:285)
    at android.os.Handler.handleCallback(Handler.java:725)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:5041)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    at dalvik.system.NativeStart.main(Native Method)
StrictMode policy violation; ~duration=74 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2
    at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1107)
    at android.database.sqlite.SQLiteConnection.applyBlockGuardPolicy(SQLiteConnection.java:1034)
    at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:835)
    at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)
    at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)
    at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:143)
    at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
    at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:197)
    at android.database.AbstractCursor.moveToFirst(AbstractCursor.java:237)
    at anywheresoftware.b4a.sql.SQL.ExecQuerySingleResult2(SQL.java:225)
    at sadLogic.eHome.g._iniread(g.java:802)
    at sadLogic.eHome.g._email_getserver(g.java:1666)
    at sadLogic.eHome.clsshopping2._smtp_sendemail(clsshopping2.java:835)
    at sadLogic.eHome.clsshopping2._lvmenu_itemclick(clsshopping2.java:807)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:636)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:305)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
    at anywheresoftware.b4a.BA$2.run(BA.java:285)
    at android.os.Handler.handleCallback(Handler.java:725)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:5041)


    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    at dalvik.system.NativeStart.main(Native Method)
StrictMode policy violation; ~duration=68 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2
    at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1107)
    at android.database.sqlite.SQLiteConnection.applyBlockGuardPolicy(SQLiteConnection.java:1034)
    at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:835)
    at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)
    at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)
    at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:143)
    at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
    at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:197)
    at android.database.AbstractCursor.moveToFirst(AbstractCursor.java:237)
    at anywheresoftware.b4a.sql.SQL.ExecQuerySingleResult2(SQL.java:225)
    at sadLogic.eHome.g._iniread(g.java:802)
    at sadLogic.eHome.g._email_getsentfrom(g.java:1614)
    at sadLogic.eHome.clsshopping2._smtp_sendemail(clsshopping2.java:835)
    at sadLogic.eHome.clsshopping2._lvmenu_itemclick(clsshopping2.java:807)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:636)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:305)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
    at anywheresoftware.b4a.BA$2.run(BA.java:285)
    at android.os.Handler.handleCallback(Handler.java:725)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:5041)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    at dalvik.system.NativeStart.main(Native Method)
StrictMode policy violation; ~duration=63 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2
    at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1107)
    at android.database.sqlite.SQLiteConnection.applyBlockGuardPolicy(SQLiteConnection.java:1034)
    at android.database.sqlite.SQLiteConnection.executeForCursorWindow(SQLiteConnection.java:835)
    at android.database.sqlite.SQLiteSession.executeForCursorWindow(SQLiteSession.java:836)
    at android.database.sqlite.SQLiteQuery.fillWindow(SQLiteQuery.java:62)
    at android.database.sqlite.SQLiteCursor.fillWindow(SQLiteCursor.java:143)
    at android.database.sqlite.SQLiteCursor.getCount(SQLiteCursor.java:133)
    at android.database.AbstractCursor.moveToPosition(AbstractCursor.java:197)
    at android.database.AbstractCursor.moveToFirst(AbstractCursor.java:237)
    at anywheresoftware.b4a.sql.SQL.ExecQuerySingleResult2(SQL.java:225)
    at sadLogic.eHome.g._iniread(g.java:802)
    at sadLogic.eHome.g._email_getsentfrompw(g.java:1640)
    at sadLogic.eHome.clsshopping2._smtp_sendemail(clsshopping2.java:835)
    at sadLogic.eHome.clsshopping2._lvmenu_itemclick(clsshopping2.java:807)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:636)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:305)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
    at java.lang.reflect.Method.invokeNative(Native Method)


    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
    at anywheresoftware.b4a.BA$2.run(BA.java:285)
    at android.os.Handler.handleCallback(Handler.java:725)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:5041)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    at dalvik.system.NativeStart.main(Native Method)
StrictMode policy violation; ~duration=55 ms: android.os.StrictMode$StrictModeNetworkViolation: policy=31 violation=4
    at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1123)
    at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:163)
    at libcore.io.IoBridge.recvfrom(IoBridge.java:513)
    at java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)
    at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
    at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
    at java.io.InputStream.read(InputStream.java:163)
    at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:227)
    at java.io.DataInputStream.readByte(DataInputStream.java:96)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:298)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
    at sadLogic.eHome.pushoppingpickemails.innerInitialize(pushoppingpickemails.java:18)
    at sadLogic.eHome.pushoppingpickemails._initialize(pushoppingpickemails.java:324)
    at sadLogic.eHome.clsshopping2._smtp_sendemail(clsshopping2.java:852)
    at sadLogic.eHome.clsshopping2._lvmenu_itemclick(clsshopping2.java:807)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:636)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:305)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
    at anywheresoftware.b4a.BA$2.run(BA.java:285)
    at android.os.Handler.handleCallback(Handler.java:725)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:5041)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    at dalvik.system.NativeStart.main(Native Method)
eglSurfaceAttrib not implemented


An error occurred:


(Line: 0) End Sub
java.lang.RuntimeException: RUN_METHOD_WITH_SYNC expected
java.net.SocketException: Socket closed
    at libcore.io.Posix.recvfromBytes(Native Method)
    at libcore.io.Posix.recvfrom(Posix.java:136)
    at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:164)
    at libcore.io.IoBridge.recvfrom(IoBridge.java:513)
    at java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)
    at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
    at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
    at java.io.InputStream.read(InputStream.java:163)
    at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:142)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:227)
    at anywheresoftware.b4a.shell.ShellConnector.readControlData(ShellConnector.java:190)
    at anywheresoftware.b4a.shell.ShellConnector.connect(ShellConnector.java:185)
    at anywheresoftware.b4a.shell.ShellConnector.run(ShellConnector.java:119)
    at java.lang.Thread.run(Thread.java:856)
GC_FOR_ALLOC freed 513K, 22% free 5656K/7224K, paused 19ms, total 23ms


Duplicate finish request for ActivityRecord{532f72ac u0 sadLogic.eHome/.main}


VM exiting with result code 0, cleanup skipped.


Process sadLogic.eHome (pid 29069) has died.


Scheduling restart of crashed service sadLogic.eHome/anywheresoftware.b4a.samples.httputils2.httputils2service in 5000ms
Scheduling restart of crashed service sadLogic.eHome/eu.dgconsulting.appupdating.newinst2 in 5000ms
WIN DEATH: Window{53355950 u0 sadLogic.eHome/sadLogic.eHome.main}


WIN DEATH: Window{533e8aec u0 sadLogic.eHome/sadLogic.eHome.main}
eglSurfaceAttrib not implemented


Got RemoteException sending setActive(false) notification to pid 29069 uid 10048


out_write() limiting sleep time 30408 to 23219
 

Periklis Koutsogiannis

Active Member
Licensed User
Longtime User
As I can see in your stacktrace, there is no call to any raiseevent towards xtraviews that causes that exception ... or am I wrong? It appears that there is websocket related but I might be wrong.
 

JakeBullet70

Well-Known Member
Licensed User
Longtime User
I have done some web socket programming lately on my project. Let me do some more research and get back to you.
BTW, love your lib.
 

Thraka

Member
Licensed User
Longtime User
I don't think so either. I'm working on the same project and I don't get any exceptions. It literally just exits right away. And I've been seeing these exceptions during startup previously, I think they are all just ignored. It's never stopped rapid debug before.
 
Top