how to Debugging app using phone?
<p>My become unfortunately stopped when i am lunching on my android device and navigate to another page. so i want to debug myapp using my device.</p><h2>Here is my code</h2><p>public void onClick(View v) { BackgroundTask task=new BackgroundTask(Login.this); task.execute(); if(ss_deals != null) { Intent i_A = new Intent(this,Dashboard.class); i_A.putExtra("MESSAGE",msg ); startActivity(i_A); } }</p><p>private class BackgroundTask extends AsyncTask {</p><pre><br /><code> public BackgroundTask(Login activity) {<br /> dialog = new ProgressDialog(activity); <br /> objMS = new MyService();<br /> ss_deals = (SoapObject) objMS.getWebServiceResult("CheckLogin","",txtid.getText().toString(),txtPwd.getText().toString());<br /><br /> }<br /><br /> @Override<br /> protected void onPreExecute() {<br /> dialog.setMessage("Loading...");<br /> dialog.show();<br /> }<br /><br /> @Override<br /> protected void onPostExecute(Void result) {<br /> if (dialog.isShowing()) {<br /> dialog.dismiss();<br /><br /> }<br /> }<br /><br /> @Override<br /> protected Void doInBackground(Void... params) {<br /> try {<br /> Thread.sleep(1000);<br /> } catch (InterruptedException e) {<br /> e.printStackTrace();<br /> }<br /><br /> return null;<br /> }<br /><br />}<br /></code><br /></pre><br /><h2>Click here view more answers <a href="http://ift.tt/1KG77Zh">http://ift.tt/1KG77Zh</a></h2>
Nhận xét
Đăng nhận xét