Guten Tag,
ich habe probleme mit Datetime.Dateparse. Was mit Android 6 läuft mit Android 7 geht nicht.
Fehler:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 346)
java.text.ParseException: Unparseable date: "01.11.17 Do"
at java.text.DateFormat.parse(DateFormat.java:358)
at anywheresoftware.b4a.keywords.DateTime.DateParse(DateTime.java:148)
at b4a.example.main._activity_create(main.java:346)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
at b4a.example.main.afterFirstLayout(main.java:102)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
ich brauche Ihre Hilfe...
Vielen dank
ich habe probleme mit Datetime.Dateparse. Was mit Android 6 läuft mit Android 7 geht nicht.
Fehler:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 346)
java.text.ParseException: Unparseable date: "01.11.17 Do"
at java.text.DateFormat.parse(DateFormat.java:358)
at anywheresoftware.b4a.keywords.DateTime.DateParse(DateTime.java:148)
at b4a.example.main._activity_create(main.java:346)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
at b4a.example.main.afterFirstLayout(main.java:102)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim TimeValue As Long
Dim FirstDayOfMonth As Long
Dim LastDayOfMonth As Long
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim MONATSANFANG, MONATSENDE As String
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
TimeValue = DateTime.Now
DateTime.DateFormat = "dd.MM.yy c"
Dim TempDay As Long
FirstDayOfMonth = DateTime.DateParse("01" & DateTime.Date(TimeValue).SubString(2))
TempDay = DateTime.DateParse("01" & DateTime.Date(TimeValue).SubString(2))
LastDayOfMonth = DateTime.Add(TempDay,0,1,-1)
MONATSANFANG = DateTime.Date(FirstDayOfMonth)
MONATSENDE = DateTime.Date(LastDayOfMonth)
End Sub
Sub Activity_Resume
Log(MONATSANFANG)
Log (MONATSENDE)
End Sub
ich brauche Ihre Hilfe...
Vielen dank