Java 从sqlite获取cafe的位置,并在textview中将其作为字符串提供,而cafe name“quot;=&引用;android Eclipse

Java 从sqlite获取cafe的位置,并在textview中将其作为字符串提供,而cafe name“quot;=&引用;android Eclipse,java,android,eclipse,sqlite,Java,Android,Eclipse,Sqlite,这是我的数据库助手(当KEY\u NAME=?,我需要选择KEY\u位置) 这是我的活动,我需要以字符串的形式获取密钥位置,并在文本视图中提供它 Intent i=getIntent(); String MyCafeName =i.getExtras().getString("MyCafeName"); txtcafename.setText(MyCafeName); nrangehelper bud3=new nrangehelper(cafelistselected.thi

这是我的数据库助手(当KEY\u NAME=?,我需要选择KEY\u位置)

这是我的活动,我需要以字符串的形式获取密钥位置,并在文本视图中提供它

Intent i=getIntent();
String MyCafeName =i.getExtras().getString("MyCafeName");

    txtcafename.setText(MyCafeName);
    nrangehelper bud3=new nrangehelper(cafelistselected.this); //  my database helper which name is (nrangehelper)
    bud3.getCafego(MyCafeName); //Mycafename is the name of cafe which i need to select to get its location 
    // what to do next?????

我不明白你的问题。什么不起作用?就风格而言:用大写字母开始类名是公认的做法,我需要获得特定的KEY\u LOACTION+在textview中以字符串形式提供它..谢谢你的回复Hanks Nickt…我对android还是个新手,我会这样做,我需要做的就是如何调用getCafego方法,然后返回关键位置
Intent i=getIntent();
String MyCafeName =i.getExtras().getString("MyCafeName");

    txtcafename.setText(MyCafeName);
    nrangehelper bud3=new nrangehelper(cafelistselected.this); //  my database helper which name is (nrangehelper)
    bud3.getCafego(MyCafeName); //Mycafename is the name of cafe which i need to select to get its location 
    // what to do next?????