Unable to run app on android device
<p>I have an apk file it works fine in emulator but when i try to run in device it runs fine for first two screens but after that it couldn't go to next screen when i try to click on next button it is showing force close.
Iam using soap based php webservice. in the first two screens also there is a webservice call.
And i have mentioned internet permission in manifest file also, and api levels in device and emulator are same 8 only.</p>

<p>could any one please help me out?</p>

<p>here is my logcat details..</p>

<pre><code>06-29 11:13:52.968: W/System.err(4545):     at org.kxml2.io.KXmlParser.exception(KXmlParser.java:273)
06-29 11:13:52.968: W/System.err(4545):     at org.kxml2.io.KXmlParser.require(KXmlParser.java:1424)
06-29 11:13:52.968: W/System.err(4545):     at org.ksoap2.SoapEnvelope.parse(SoapEnvelope.java:127)
06-29 11:13:52.968: W/System.err(4545):     at org.ksoap2.transport.Transport.parseResponse(Transport.java:63)
06-29 11:13:52.968: W/System.err(4545):     at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:100)
06-29 11:13:52.968: W/System.err(4545):     at com.osi.wolla.webserviceCall.getEmaiData(webserviceCall.java:97)
06-29 11:13:52.968: W/System.err(4545):     at com.osi.wolla.messages.Messages.showMail(Messages.java:64)
06-29 11:13:52.976: W/System.err(4545):     at com.osi.wolla.messages.Messages.onCreate(Messages.java:48)
06-29 11:13:52.976: W/System.err(4545):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
06-29 11:14:13.820: E/AndroidRuntime(4738):     at dalvik.system.NativeStart.main(Native Method)
</code></pre>

<p>As per your suggession iam used asynk task it works fine in emulator but when i run this apk in device it gives the log cat like this....</p>

<pre><code>06-29 12:00:35.304: E/WindowManager(5365): Activity com.osi.wolla.newmail.ComposeMail has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@405daa98 that was originally added here
06-29 12:00:35.304: E/WindowManager(5365): android.view.WindowLeaked: Activity com.osi.wolla.newmail.ComposeMail has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@405daa98 that was originally added here
06-29 12:00:35.304: E/WindowManager(5365):  at android.view.ViewRoot.&lt;init&gt;(ViewRoot.java:263)
06-29 12:00:35.304: E/WindowManager(5365):  at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148)
06-29 12:00:35.304: E/WindowManager(5365):  at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
06-29 12:00:35.304: E/WindowManager(5365):  at android.view.Window$LocalWindowManager.addView(Window.java:424)
06-29 12:00:35.304: E/WindowManager(5365):  at android.app.Dialog.show(Dialog.java:241)
06-29 12:00:35.304: E/WindowManager(5365):  at com.osi.wolla.newmail.ComposeMail$task.onPreExecute(ComposeMail.java:281)
06-29 12:00:35.304: E/WindowManager(5365):  at android.os.AsyncTask.execute(AsyncTask.java:391)
06-29 12:00:35.304: E/WindowManager(5365):  at com.osi.wolla.newmail.ComposeMail.addBuddies(ComposeMail.java:251)
06-29 12:00:35.304: E/WindowManager(5365):  at java.lang.reflect.Method.invokeNative(Native Method)
06-29 12:00:35.304: E/WindowManager(5365):  at java.lang.reflect.Method.invoke(Method.java:507)
06-29 12:00:35.304: E/WindowManager(5365):  at android.view.View$1.onClick(View.java:2139)
06-29 12:00:35.304: E/WindowManager(5365):  at android.view.View.performClick(View.java:2485)
06-29 12:00:35.304: E/WindowManager(5365):  at android.view.View$PerformClick.run(View.java:9080)
06-29 12:00:35.304: E/WindowManager(5365):  at android.os.Handler.handleCallback(Handler.java:587)
06-29 12:00:35.304: E/WindowManager(5365):  at android.os.Handler.dispatchMessage(Handler.java:92)
06-29 12:00:35.304: E/WindowManager(5365):  at android.os.Looper.loop(Looper.java:130)
06-29 12:00:35.304: E/WindowManager(5365):  at android.app.ActivityThread.main(ActivityThread.java:3687)
06-29 12:00:35.304: E/WindowManager(5365):  at java.lang.reflect.Method.invokeNative(Native Method)
06-29 12:00:35.304: E/WindowManager(5365):  at java.lang.reflect.Method.invoke(Method.java:507)
06-29 12:00:35.304: E/WindowManager(5365):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
06-29 12:00:35.304: E/WindowManager(5365):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
06-29 12:00:35.304: E/WindowManager(5365):  at dalvik.system.NativeStart.main(Native Method)
</code></pre>
