liangcm / cloud-tasks-io

Automatically exported from code.google.com/p/cloud-tasks-io
0 stars 0 forks source link

Error while Deleting a task in android #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open Cloudtasks in a Nexus S phone
2. Click in a task
3. Click the delete button in the top right corner

What is the expected output? What do you see instead?

I expected the task to be deleted but the an error popup was shown: 
"Sorry!
The application CloudTaks (process com.cloudtasks) has stopped unexpectedly. 
Please try again."

What version of the product are you using? On what operating system?

Android version 2.3.4

Please provide any additional information below.

Original issue reported on code.google.com by sergio.d...@softamo.com on 14 May 2011 at 10:37

GoogleCodeExporter commented 9 years ago
I am having this same problem. I'm not sure but I think the app is still trying 
to run in debug mode because its not communicating with my App Engine App. It 
is still communicating with the test cloud. Don't know how to fix it.

Original comment by optimizationtutor.com on 18 May 2011 at 12:34

GoogleCodeExporter commented 9 years ago
I don't see a delete function. There is a AddTaskActivity.java but no 
DeleteTaskActivity.java. Not sure it is required but it seems logical.

Anyway I got it working directly with my AppEngine account and the error still 
persists.

Original comment by optimizationtutor.com on 18 May 2011 at 1:29

GoogleCodeExporter commented 9 years ago
This is what I see in DDMS when it crashes.

05-17 18:52:11.747: ERROR/AndroidRuntime(13945): FATAL EXCEPTION: main
05-17 18:52:11.747: ERROR/AndroidRuntime(13945): 
java.lang.IllegalStateException: Could not find a method onAddClick(View) in 
the activity class com.cloudtasks.ViewTaskActivity for onClick handler on view 
class android.widget.ImageButton
05-17 18:52:11.747: ERROR/AndroidRuntime(13945):     at 
android.view.View$1.onClick(View.java:2059)
05-17 18:52:11.747: ERROR/AndroidRuntime(13945):     at 
android.view.View.performClick(View.java:2408)
05-17 18:52:11.747: ERROR/AndroidRuntime(13945):     at 
android.view.View$PerformClick.run(View.java:8818)
05-17 18:52:11.747: ERROR/AndroidRuntime(13945):     at 
android.os.Handler.handleCallback(Handler.java:587)
05-17 18:52:11.747: ERROR/AndroidRuntime(13945):     at 
android.os.Handler.dispatchMessage(Handler.java:92)
05-17 18:52:11.747: ERROR/AndroidRuntime(13945):     at 
android.os.Looper.loop(Looper.java:143)
05-17 18:52:11.747: ERROR/AndroidRuntime(13945):     at 
android.app.ActivityThread.main(ActivityThread.java:4701)
05-17 18:52:11.747: ERROR/AndroidRuntime(13945):     at 
java.lang.reflect.Method.invokeNative(Native Method)
05-17 18:52:11.747: ERROR/AndroidRuntime(13945):     at 
java.lang.reflect.Method.invoke(Method.java:521)
05-17 18:52:11.747: ERROR/AndroidRuntime(13945):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
05-17 18:52:11.747: ERROR/AndroidRuntime(13945):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
05-17 18:52:11.747: ERROR/AndroidRuntime(13945):     at 
dalvik.system.NativeStart.main(Native Method)
05-17 18:52:11.747: ERROR/AndroidRuntime(13945): Caused by: 
java.lang.NoSuchMethodException: onAddClick
05-17 18:52:11.747: ERROR/AndroidRuntime(13945):     at 
java.lang.ClassCache.findMethodByName(ClassCache.java:308)
05-17 18:52:11.747: ERROR/AndroidRuntime(13945):     at 
java.lang.Class.getMethod(Class.java:985)
05-17 18:52:11.747: ERROR/AndroidRuntime(13945):     at 
android.view.View$1.onClick(View.java:2052)
05-17 18:52:11.747: ERROR/AndroidRuntime(13945):     ... 11 more

Original comment by optimizationtutor.com on 18 May 2011 at 1:53