@rofridman:
I'm glad you found the right place for your question, but it seems you really don't understand databases.
The method you were trying to use:
cursor = db.query(
IME_TABELE,
new String[]{"ime_priimek"},
null, null, null, null, null
);
is incorrect and incomplete.
A database is like a "holder" for vast amounts of data that is stored with minimal space.
databases hold "tables" which are essentially organized charts of the data you want to use/store.
From a program you can insert, select, update, modify the data in these tables as you wish.
The cursor object lets you "read" data from the table by using a SELECT command.
Which relates to your problem: Your method only contains the table, and some string called "ime_priimek". If you look on the first page of this thread, the post made by plusminus you will see that he has used more than just a table and some random string. He used:
Cursor c = myDB.query("SELECT FirstName,Age" +
" FROM " + MY_DATABASE_TABLE
+ " WHERE Age > 10 LIMIT 7;",
null);
You can actually see the query "SELECT FirstName, Age FROM .... WHERE....":
Also you can see how the function is laid out here:
http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.htmlThere are also other ways to execute the queries to acquire the data you wish. I personally use something like this:
String strQuery = "SELECT * FROM People WHERE Age >10";
db.rawQuery(strQuery,null);
It seems you are having a lot of problems with this. so please pick up a book. Or download it, Computer Science books are readily available online within months of publication.