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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -