sam liya wrote:why it gives me ClassNotFoundException.I have already declared it on the manifest file.?
Ulf Dittmer wrote:
sam liya wrote:09-16 10:49:06.791: W/dalvikvm(6723): Link of class 'Lcom/android/pdf/MainActivity;' failed
That's not the first error message in the stack trace - the root cause is something else.
Maneesh Godbole wrote:A good developer always pays close attention to the information which the stack trace provides.
Do you know what it means? Are you curious what it means? Did you google it?
Please ShowSomeEffort instead of just dumping your stack trace and waiting for someone to tell you what you are doing wrong
Goto Build Path-> Configure Build Path -> Order and Export
when you are there you should check the Android Private Libraries and then click OK.
if you still face the problem delete all the files inside your bin folder and rebuilt you project.
Hope this solves your issue
Configure Build Path.
Choose Order and Export Tab,
Select all the listed path or JAR file.
And Try it!
You can add an ActionBar to your activity when running on API level 7 or higher by extending this class for your activity and setting the activity theme to Theme.AppCompat or a similar theme.