S
S
Sergey Kamyshev2017-06-02 20:49:04
Java
Sergey Kamyshev, 2017-06-02 20:49:04

How to get a record from the database (SQLite) on a click on a textView?

Data from the database is successfully displayed in the textView. By clicking on the textView, the records in this textView should change (infa should be taken from the same database). How to rearrange the cursor to the desired position so that it reads the desired entry when clicked?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Kamyshev, 2017-06-05
@ser_cool_geek

It was necessary to write the necessary SQL query. The specific answer is specific and I see no point in publishing it.

G
goodTimes, 2017-06-02
@goodtimes922

Intent i = new Intent(FirstScreen.this, SecondScreen.class);   
String strName = null;
i.putExtra("STRING_I_NEED", strName);

String newString;
if (savedInstanceState == null) {
    Bundle extras = getIntent().getExtras();
    newString= extras.getString("STRING_I_NEED");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question