I am trying to write a Processing-based Android app that needs to communication with a SQLite database. To do this, I am trying to use the Ketai Library, but I am having an issue with it: I cannot use the library because Processing complains about an indirect reference to android.content.Context;
. Here is my code for the project.
import ketaisqlite.*;
KetaiSQLite database;
void setup()
{
// Preliminary Stuff
orientation(LANDSCAPE);
lights();
fullScreen(P3D);
// Database Connection
KetaiSQLite.load(this, "/sdcard/Android/database.sqlite", "database");
}
Here are the two messages in the Error Console.
The type android.content.Context cannot be resolved. It is indirectly referenced from required .class files The type android.content.Context cannot be resolved. It is indirectly referenced from required .class files
The method load(Context, String, String) from the type KetaiSQLite refers to the missing type Context The method load(Context, String, String) from the type KetaiSQLite refers to the missing type Context
Trying to add import android.context.Context;
creates an additional problem:
Only a type can be imported. android.context.Context resolves to a package Only a type can be imported. android.context.Context resolves to a package
What do I do? I have looked at the code for the library itself and cannot figure out what is wrong with it, if anything.
Aucun commentaire:
Enregistrer un commentaire