Android Question Relationship of the StringFunctions 1.05 library with other libraries

Valeriy Lakhtin

Member
Licensed User
I have successfully used the StringFunctios library 1.05v. But after update the other library related to encryption, my app stopped working and gives an error message.
B4X:
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 2379)
java.lang.NullPointerException: Attempt to read from field 'anywheresoftware.b4a.BA$SharedProcessBA anywheresoftware.b4a.BA.sharedProcessBA' on a null object reference
    at anywheresoftware.b4a.B4AClass$ImplB4AClass.getActivityBA(B4AClass.java:20)
    at adr.stringfunctions.stringfunctions._vvvvvv3(stringfunctions.java:809)
    at Click.Click.main._activity_create(main.java:2379)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
    at Click.Click.main.afterFirstLayout(main.java:102)
    at Click.Click.main.access$000(main.java:17)
    at Click.Click.main$WaitForLayout.run(main.java:80)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5349)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:908)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:703)

Probably for me need to know exactly what versions of other libraries are needed for corectly work StringFunctions library 1.05v
 

Valeriy Lakhtin

Member
Licensed User
Now I'm back to the standard set of libraries and carefully added other. Everything works OK. Previously, an error caused MD5CRC procedure
B4X:
Sub MD5CRC(Data As String) As String
    Dim MD As MessageDigest
    Dim ByteCon As ByteConverter
    Dim passwordhash() As Byte
    passwordhash = MD.GetMessageDigest(Data.GetBytes("UTF8"),"MD5")
    Dim md5string As String
    md5string = ByteCon.HexFromBytes(passwordhash)
    Return md5string
End Sub
Probably StringFunctions need to work with a standard set libraries. When I update and add the new library, - began problems with StringFunctions
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…