我现在编辑了...我检查布局和初始化但仍然是相同的错误..它可能是日食错误?
public class ActivityOwner extends Activity implements OnClickListener {
EditText ownerUser, ownerPass;
private Button btnLogin;
private ProgressDialog pDialog;
JSONParser jsonParser = new JSONParser();
private static final String OWNER_LOGIN_URL = "http://192.168.2.5/idot/owner_login.php";
// ---JSON element ids from response of php script
private static final String TAG_SUCCESS = "success";
private static final String TAG_MESSAGE = "message";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_owner);
ownerUser = (EditText) findViewById(R.id.owner_login_username);
ownerPass = (EditText) findViewById(R.id.owner_login_password);
TextView tvLinkToRegister = (TextView) findViewById(R.id.link_to_register);
tvLinkToRegister.setOnClickListener(new View.OnClickListener() {
@Override
public void …Run Code Online (Sandbox Code Playgroud)