I would like to make an App that reads a text file that I have on my DropBox.
I downloaded the DonManfred library
but I found many difficulties because it jumps from one post to another due to updates, variations, incompatibilities etc.
At the moment in the code that I created I receive an error towards the end of the compilation referring to this line which is found in the Starter module
Error occurred on line: 16 (Starter)
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (Sqlite code 14 SQLITE_CANTOPEN): Could not open database, (OS error - 2:No such file or directory)
at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)... ecc ecc
In addition, the manifest file of the app must be updated with a piece of xml, this
If you want I can attach the zip of the project but you need the libraries to test, which are the following:
I downloaded the DonManfred library
but I found many difficulties because it jumps from one post to another due to updates, variations, incompatibilities etc.
At the moment in the code that I created I receive an error towards the end of the compilation referring to this line which is found in the Starter module
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Public kvs As KeyValueStore
End Sub
Sub Service_Create
'This is the program entry point.
'This is a good place to load resources that are not specific to a single activity.
kvs.Initialize(File.DirDefaultExternal, "datastore2") '<- - - - - - linea che dà errore
End Sub
Error occurred on line: 16 (Starter)
android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (Sqlite code 14 SQLITE_CANTOPEN): Could not open database, (OS error - 2:No such file or directory)
at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)... ecc ecc
In addition, the manifest file of the app must be updated with a piece of xml, this
XML:
AddApplicationText(<activity
android:name="com.dropbox.core.android.AuthActivity"
android:configChanges="orientation|keyboard"
android:launchMode="singleTask" >
<intent-filter>
<data android:scheme="db-xxx" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>)
If you want I can attach the zip of the project but you need the libraries to test, which are the following: