Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InstantiationException: #38

Open
GoogleCodeExporter opened this issue May 6, 2015 · 1 comment
Open

InstantiationException: #38

GoogleCodeExporter opened this issue May 6, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link
Contributor

What steps will reproduce the problem?
1. application crashes with an Instantiation Exception, The complete logcat and 
the source code is attaching....


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


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


Please provide any additional information below.

06-09 20:58:17.930: E/AndroidRuntime(2185): FATAL EXCEPTION: main
06-09 20:58:17.930: E/AndroidRuntime(2185): Process: com.example.seekbar, PID: 
2185
06-09 20:58:17.930: E/AndroidRuntime(2185): java.lang.RuntimeException: Unable 
to instantiate activity 
ComponentInfo{com.example.seekbar/com.example.seekbar.RangeSeekBar}: 
java.lang.InstantiationException: can't instantiate class 
com.example.seekbar.RangeSeekBar; no empty constructor
06-09 20:58:17.930: E/AndroidRuntime(2185):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121)
06-09 20:58:17.930: E/AndroidRuntime(2185):     at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
06-09 20:58:17.930: E/AndroidRuntime(2185):     at 
android.app.ActivityThread.access$800(ActivityThread.java:135)
06-09 20:58:17.930: E/AndroidRuntime(2185):     at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
06-09 20:58:17.930: E/AndroidRuntime(2185):     at 
android.os.Handler.dispatchMessage(Handler.java:102)
06-09 20:58:17.930: E/AndroidRuntime(2185):     at 
android.os.Looper.loop(Looper.java:136)
06-09 20:58:17.930: E/AndroidRuntime(2185):     at 
android.app.ActivityThread.main(ActivityThread.java:5017)
06-09 20:58:17.930: E/AndroidRuntime(2185):     at 
java.lang.reflect.Method.invokeNative(Native Method)
06-09 20:58:17.930: E/AndroidRuntime(2185):     at 
java.lang.reflect.Method.invoke(Method.java:515)
06-09 20:58:17.930: E/AndroidRuntime(2185):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
06-09 20:58:17.930: E/AndroidRuntime(2185):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
06-09 20:58:17.930: E/AndroidRuntime(2185):     at 
dalvik.system.NativeStart.main(Native Method)
06-09 20:58:17.930: E/AndroidRuntime(2185): Caused by: 
java.lang.InstantiationException: can't instantiate class 
com.example.seekbar.RangeSeekBar; no empty constructor
06-09 20:58:17.930: E/AndroidRuntime(2185):     at 
java.lang.Class.newInstanceImpl(Native Method)
06-09 20:58:17.930: E/AndroidRuntime(2185):     at 
java.lang.Class.newInstance(Class.java:1208)
06-09 20:58:17.930: E/AndroidRuntime(2185):     at 
android.app.Instrumentation.newActivity(Instrumentation.java:1061)
06-09 20:58:17.930: E/AndroidRuntime(2185):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
06-09 20:58:17.930: E/AndroidRuntime(2185):     ... 11 more

Original issue reported on code.google.com by geethumg...@gmail.com on 9 Jun 2014 at 12:37

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant