Bound service example error

0 Rajani Krishna Turlapati · September 8, 2015
I implemented the code exactly as given in the tutorial. I am getting 'Unfortunately Intent service has stopped' error. I am pasting the log below.

09-08 09:36:51.706    6652-6674/com.example.rajani.intentservice I/OpenGLRenderer? Initialized EGL, version 1.4
09-08 09:36:51.835    6652-6674/com.example.rajani.intentservice W/EGL_emulation? eglSurfaceAttrib not implemented
09-08 09:36:51.835    6652-6674/com.example.rajani.intentservice W/OpenGLRenderer? Failed to set EGL_SWAP_BEHAVIOR on surface 0xad751800, error=EGL_SUCCESS
09-08 09:37:42.738    6652-6652/com.example.rajani.intentservice D/AndroidRuntime? Shutting down VM
09-08 09:37:42.761    6652-6652/com.example.rajani.intentservice E/AndroidRuntime? FATAL EXCEPTION: main
    Process: com.example.rajani.intentservice, PID: 6652
    java.lang.IllegalStateException: Could not execute method for android:onClick
            at android.view.View$DeclaredOnClickListener.onClick(View.java:4452)
            at android.view.View.performClick(View.java:5198)
            at android.view.View$PerformClick.run(View.java:21147)
            at android.os.Handler.handleCallback(Handler.java:739)
            at android.os.Handler.dispatchMessage(Handler.java:95)
            at android.os.Looper.loop(Looper.java:148)
            at android.app.ActivityThread.main(ActivityThread.java:5417)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
     Caused by: java.lang.reflect.InvocationTargetException
            at java.lang.reflect.Method.invoke(Native Method)
            at android.view.View$DeclaredOnClickListener.onClick(View.java:4447)
            at android.view.View.performClick(View.java:5198)
            at android.view.View$PerformClick.run(View.java:21147)
            at android.os.Handler.handleCallback(Handler.java:739)
            at android.os.Handler.dispatchMessage(Handler.java:95)
            at android.os.Looper.loop(Looper.java:148)
            at android.app.ActivityThread.main(ActivityThread.java:5417)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
     Caused by: java.lang.IllegalArgumentException: Unknown pattern character 'o'
            at java.text.SimpleDateFormat.validatePatternCharacter(SimpleDateFormat.java:323)
            at java.text.SimpleDateFormat.validatePattern(SimpleDateFormat.java:298)
            at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:365)
            at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:258)
            at com.example.rajani.intentservice.MyService.getCurrentTime(MyService.java:25)
            at com.example.rajani.intentservice.MainActivity.showTime(MainActivity.java:24)
            at java.lang.reflect.Method.invoke(Native Method)
            at android.view.View$DeclaredOnClickListener.onClick(View.java:4447)
            at android.view.View.performClick(View.java:5198)
            at android.view.View$PerformClick.run(View.java:21147)
            at android.os.Handler.handleCallback(Handler.java:739)
            at android.os.Handler.dispatchMessage(Handler.java:95)
            at android.os.Looper.loop(Looper.java:148)
            at android.app.ActivityThread.main(ActivityThread.java:5417)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
09-08 09:37:48.030    6652-6652/? I/Process? Sending signal. PID: 6652 SIG: 9



Post a Reply

Replies

Oldest  Newest  Rating
0 kishor joshi · September 8, 2015
post your code here
  • 1

Java / Android Development

107,307 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator