java - Calling Activity of Library from Android Application -


i trying call activity of library application project getting error following:

caused by: java.lang.classnotfoundexception: didn't find class "com.sumeru.crop.activity.dstakepictureactivity" on path: dexpathlist[dexelements=[zip file "/data/app/------.ensource-1.apk"],nativelibrarydirectories=[/data/app-lib/------.ensource-1, /vendor/lib, /system/lib]]

my package name ---------.ensource getting .ensource-1 instead.

the code using call activity of library:

intent = new intent(); intent.setclass(getapplicationcontext(), class.forname("com.sumeru.crop.activity.dstakepictureactivity"));             startactivity(intent); 

please me out; open suggestions.

declaring library components in manifest file

in manifest file of application project, must add declarations of components application use imported library project. example, must declare any 

<activity>, <service>, <receiver>,<provider> 

, , on, as, , , similar elements.

declarations should reference library components fully-qualified package names, appropriate.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -