Sub Globals
'These global variables will be redeclared each time the activity is created.
Type Todo(ID As Short, Name As String, Status As Byte, Context As Byte, Category As Byte, Priority As Int, Note As String)
Dim table1 As Table
Dim Statuses(12,2) As String
Dim Categories(40,2) As String
Dim TodoList As List
Dim HeaderRow(7) As String
Dim Categories(40,2) As String
Dim n As Notification = CreateNotification("Tap to Proceed.")
End Sub
Sub Activity_Create(FirstTime As Boolean)
If table1.IsInitialized Then
Activity.RemoveAllViews 'remove the current table
End If
table1.Initialize(Me, "Table1", 4) 'The last value here sets the number of columns in the table that shows on the screen.
table1.AddToActivity(Activity, 0, 0, 100%x, 100%y)
'table1.SetColumnsWidths(Array As Int(100dip, 30dip, 130dip, 100%x - 260dip))
myMap.Initialize
'Activity.AddMenuItem("Load Table", "LoadTable")
'Activity.AddMenuItem("Save Table", "SaveTable")
Activity.AddMenuItem("Allow Context Notification", "AllowContextNotification")
Activity.AddMenuItem("Clear Context Notification", "ClearContextNotification")
Activity.AddMenuItem("Exit Program", "ExitProgram")
LoadArrays(File.DirAssets, "Todo List.xls")
Notifier
End Sub
For j = 1 To TempContextLength
If Context = TempContext(j) Then
'Log("...")
'Log("Context = " & Context)
'Log("TempContext("&j&" = "& TempContext(j))
TableRow = TableRow + 1
table1.AddRow(Values)
End If
Next
Next
table1.SetColumnsWidths(Array As Int(100dip, 30dip, 130dip, 100%x - 260dip))
I have never used the designer and don't know how to do a layout.
Dim parser As CSVParser
parser.Initialize
Dim data As List = parser.Parse(File.ReadString(File.DirAssets, "us_counties.csv"), ",", True)
B4XTable1.SetData(data)
Whether for pleasure or professionally, you have to use the right tools.Programming is only a hobby for me.
--------- beginning of main
Copying updated assets files (1)
java.lang.RuntimeException: Unable to create service b4a.example.starter: java.lang.RuntimeException: java.net.SocketException: Connection reset
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4643)
at android.app.ActivityThread.access$1800(ActivityThread.java:273)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2146)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:210)
at android.os.Looper.loop(Looper.java:299)
at android.app.ActivityThread.main(ActivityThread.java:8302)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1037)
Caused by: java.lang.RuntimeException: java.net.SocketException: Connection reset
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:188)
at b4a.example.starter.onCreate(starter.java:48)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:4630)
... 9 more
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:191)
at java.net.SocketInputStream.read(SocketInputStream.java:143)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:239)
at java.io.BufferedInputStream.read(BufferedInputStream.java:258)
at java.io.DataInputStream.readByte(DataInputStream.java:273)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:344)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:157)
... 11 more
The B4X suite of IDEs tries to keep up with the targeted OSes latest.I just realized one thing. To me the cardinal rule of programming language development is to make sure that you maintain backwards compatibility as the language progresses. B4A has not done this.
Again... this is mostly due to the evolution of the targeted OSes and the way they work.I would much rather see effort put in to making sure the older parts of B4A still work than adding new more complicated features to do the same job.
Again, you can re--install a (very) older version of the IDE and use it...If I were not being forced to use the newer more complicated parts of B4A I would be perfectly happy using the parts I have selected because they get the job done nicely.
That is an issue I never read about...The new B4Xtable won't even scroll. To me that is unacceptable on a touch screen.
Finally, something I can agree with you!The latest and greatest is not necessarily the best especially when it adds more complexity.
For personal use I would useI would like to know what target SDK version to put in manifest for my code to work.
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="26"/>
Sorry, I disagree when you refer to B4A not being backward compatible.To me the cardinal rule of programming language development is to make sure that you maintain backwards compatibility as the language progresses. B4A has not done this.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?