String 工作正常,那么 double 呢?
这是我的代码
ImageView protect_me_btn=(ImageView) findViewById(R.id.protect_me_btn);
protect_me_btn.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
pbupdate.setVisibility(4);
String lat= Double.toString(latitude);
Intent inte=new Intent(getApplicationContext(),set_alaram.class);
Bundle lati=new Bundle();
lati.putString("first",lat);
inte.putExtras(lati);
startActivity(inte);
}
});