Android Question use kvs db from 2 different projects?

ilan

Expert
Licensed User
Longtime User
hi

i am creating in one of my projects a db via key value store.
now i would like to import all data from that db to another b4a project (different package name)

but i get an error:


this is the codemodule from the other project (where i create the db)

Class not found: www.sagitalcashlite.net.converttonewsalary$_shift, trying:

is it stored inside the file and only that project can open it ??

thanx, ilan
 

ilan

Expert
Licensed User
Longtime User

i am not sure this is what i need.

both app are installed on my device.

i have just created a new App (like mytools1 and now i have mytools2)
now i want the user to be able to export all data from mytools1 to mytools2

the only problem is that in the first app i used a different approach to save all data so i created a codemodule and i am now creating a key value store db in the first app and now i would like to import all data from that db to the new app. (the new app is already working with key value store)
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Upvote 0

ilan

Expert
Licensed User
Longtime User
actually the error happens here:

B4X:
result = ser.ConvertBytesToObject(rs.GetBlob2(0))

this is the whole code of the sub

B4X:
Public Sub Get(Key As String) As Object
    Dim rs As ResultSet = sql1.ExecQuery2("SELECT value FROM main WHERE key = ?", Array As String(Key))
    Dim result As Object = Null
    If rs.NextRow Then
        result = ser.ConvertBytesToObject(rs.GetBlob2(0))
    End If
    rs.Close
    Return result
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…