怎么接收这个方法返回的参数
public String getBarcode(Message msg){
String bar=msg.obj + "\n";
return bar;
}
public void GetInfo (View view) {
String barcode=this.getBarcode();
String url="http://192.168.16.128:8081/api/v1/marc/item/getinfos/"+barcode.toString();
xxxx
xxxx
xxxx
xxxx
}
这样会报错
'getBarcode(android.os.Message)' in 'com.android.barcodescandemo.MainDemo' cannot be applied to '()'
求大神解答怎么接收。