mercredi 21 octobre 2015

Passing string from one MianActivity to DB Class Java

How to pass string from TextView populated from spiner onItemSelected event to make query in DBController class. I cant implement intent:

Main14Activity

Nidd.setText(imc_met.substring(imc_met.lastIndexOf("Id") + 3));
                    String ado = Nidd.getText().toString();

DBController

String selectQuery = "SELECT  * FROM proinfo WHERE Name= " + .... ;

Intent is not working coz coz i dont know gow to get this working. The function getintent(). returns red in class.

Aucun commentaire:

Enregistrer un commentaire