In my new project I need to show the dbm in a Toast. I have never before worked with the signal strength. I searched a lot on the internet but I did't find any good information. In my imagination it should be very easy, But I can't build something that works. Could you help me please?
Button btn=(Button)findViewById(R.id.start);
btn.setOnClickListener(this);
}
public void onClick(View v) {
switch (v.getId()) {
case R.id.start:
Toast.makeText(this, "signal strength is " + this.signalDBM + "dBm", Toast.LENGTH_SHORT).show();
break;