K
K
kolodach2014-02-27 18:59:25
Java
kolodach, 2014-02-27 18:59:25

How to read the value of a certain column from the sqlite database, given its ID?

I tried through the cursor here is an example (sorry for the govnokoda I'm only learning)

//прочитать время
    public static long writeTime(String id) {
      Cursor c = mDB.query(DB_TABLE, new String[] {COLUMN_TIME},id, null, null, null, null, null);
      Log.d(TAG, "cursor = " + /*не конвертируется*/c);
      return 0;

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question