Gdy odpalam program na emulatorze to pisze "What's the wather has stopped" , pomimo że podczas kompilacji nie wywala żadnych błędów.
package com.example.whatstheweather;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
public void weatcher(View view){
TextView txtCity=(TextView) findViewById(R.id.City);
String City=txtCity.getText().toString();
Log.i("City", City);
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}