Jump to content
Android Forum - A Community For Android Users and Enthusiasts

Unfortunately Project stops...


Recommended Posts

i am developing a business application for my thesis...

i used mysql for my backend and using php webservice and encode it as a JSONObject..

the php webservice is ok but for the android part it has a problem...

i am very new in android developement so i can trace the error..

whenever i use classes the application stops...

here is the error lol...

07-01 13:45:08.294: E/AndroidRuntime(901): FATAL EXCEPTION: Thread-94

07-01 13:45:08.294: E/AndroidRuntime(901): java.lang.NullPointerException

07-01 13:45:08.294: E/AndroidRuntime(901): at com.hypermart.namespace.MobileHyperMartActivity.newLogIn(MobileHyperMartActivity.java:142)

07-01 13:45:08.294: E/AndroidRuntime(901): at com.hypermart.namespace.MobileHyperMartActivity$1$1.run(MobileHyperMartActivity.java:91)

07-01 13:45:08.294: E/AndroidRuntime(901): at java.lang.Thread.run(Thread.java:856)

07-01 13:45:09.935: E/WindowManager(901): Activity com.hypermart.namespace.MobileHyperMartActivity has leaked window [email protected] that was originally added here

07-01 13:45:09.935: E/WindowManager(901): android.view.WindowLeaked: Activity com.hypermart.namespace.MobileHyperMartActivity has leaked window [email protected] that was originally added here

07-01 13:45:09.935: E/WindowManager(901): at android.view.ViewRootImpl.(ViewRootImpl.java:344)

07-01 13:45:09.935: E/WindowManager(901): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:267)

07-01 13:45:09.935: E/WindowManager(901): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:215)

07-01 13:45:09.935: E/WindowManager(901): at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:140)

07-01 13:45:09.935: E/WindowManager(901): at android.view.Window$LocalWindowManager.addView(Window.java:537)

07-01 13:45:09.935: E/WindowManager(901): at android.app.Dialog.show(Dialog.java:278)

07-01 13:45:09.935: E/WindowManager(901): at android.app.ProgressDialog.show(ProgressDialog.java:116)

07-01 13:45:09.935: E/WindowManager(901): at android.app.ProgressDialog.show(ProgressDialog.java:99)

07-01 13:45:09.935: E/WindowManager(901): at com.hypermart.namespace.MobileHyperMartActivity$1.onClick(MobileHyperMartActivity.java:88)

07-01 13:45:09.935: E/WindowManager(901): at android.view.View.performClick(View.java:3511)

07-01 13:45:09.935: E/WindowManager(901): at android.view.View$PerformClick.run(View.java:14105)

07-01 13:45:09.935: E/WindowManager(901): at android.os.Handler.handleCallback(Handler.java:605)

07-01 13:45:09.935: E/WindowManager(901): at android.os.Handler.dispatchMessage(Handler.java:92)

07-01 13:45:09.935: E/WindowManager(901): at android.os.Looper.loop(Looper.java:137)

07-01 13:45:09.935: E/WindowManager(901): at android.app.ActivityThread.main(ActivityThread.java:4424)

07-01 13:45:09.935: E/WindowManager(901): at java.lang.reflect.Method.invokeNative(Native Method)

07-01 13:45:09.935: E/WindowManager(901): at java.lang.reflect.Method.invoke(Method.java:511)

07-01 13:45:09.935: E/WindowManager(901): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)

07-01 13:45:09.935: E/WindowManager(901): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)

07-01 13:45:09.935: E/WindowManager(901): at dalvik.system.NativeStart.main(Native Method)

07-01 13:48:22.005: E/JSON(949): {"success":1,"error":0,"user":{"uid":"4fedd8423430b7.","uname":"polens"}}n

07-01 13:48:22.255: E/AndroidRuntime(949): FATAL EXCEPTION: Thread-96

07-01 13:48:22.255: E/AndroidRuntime(949): android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.

07-01 13:48:22.255: E/AndroidRuntime(949): at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:4039)

07-01 13:48:22.255: E/AndroidRuntime(949): at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:709)

07-01 13:48:22.255: E/AndroidRuntime(949): at android.view.View.requestLayout(View.java:12675)

07-01 13:48:22.255: E/AndroidRuntime(949): at android.view.View.requestLayout(View.java:12675)

07-01 13:48:22.255: E/AndroidRuntime(949): at android.view.View.requestLayout(View.java:12675)

07-01 13:48:22.255: E/AndroidRuntime(949): at android.view.View.requestLayout(View.java:12675)

07-01 13:48:22.255: E/AndroidRuntime(949): at android.widget.ScrollView.requestLayout(ScrollView.java:1386)

07-01 13:48:22.255: E/AndroidRuntime(949): at android.view.View.requestLayout(View.java:12675)

07-01 13:48:22.255: E/AndroidRuntime(949): at android.view.View.requestLayout(View.java:12675)

07-01 13:48:22.255: E/AndroidRuntime(949): at android.widget.TextView.checkForRelayout(TextView.java:6767)

07-01 13:48:22.255: E/AndroidRuntime(949): at android.widget.TextView.setText(TextView.java:3306)

07-01 13:48:22.255: E/AndroidRuntime(949): at android.widget.TextView.setText(TextView.java:3162)

07-01 13:48:22.255: E/AndroidRuntime(949): at android.widget.TextView.setText(TextView.java:3137)

07-01 13:48:22.255: E/AndroidRuntime(949): at com.hypermart.namespace.MobileHyperMartActivity.newLogIn(MobileHyperMartActivity.java:147)

07-01 13:48:22.255: E/AndroidRuntime(949): at com.hypermart.namespace.MobileHyperMartActivity$1$1.run(MobileHyperMartActivity.java:91)

07-01 13:48:22.255: E/AndroidRuntime(949): at java.lang.Thread.run(Thread.java:856)

07-01 13:48:22.375: E/JSON(949): {"success":1,"error":0,"user":{"uid":"4fedd8423430b7.","uname":"polens"}}n

 

 

as you can see i am receiving data from my backend..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...