I read a lot about this issue but I still can´t do it work.
I have two projects: one does some stuff and what I want to do is set it as jar file and use it in the main project, call it and take the info I don´t know how to instanciate a class of that package to start with the process. The secondary project works fine alone and I want to take the info and use it in the main project. If I set the secondary as Library and add it to the main it works fine but I don´t want to do it in this way.
I think it´s possible to do it but I don´t know how to instantiate a class from a jar file and I´m starting to be desperate.
this is the logCat when I call the activity in the jared
file 03-22 11:04:57.900: E/AndroidRuntime(11895): FATAL EXCEPTION: main
03-22 11:04:57.900: E/AndroidRuntime(11895): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.suscribir/com.example.suscribir.Suscribir}; have you declared this activity in your AndroidManifest.xml?
03-22 11:04:57.900: E/AndroidRuntime(11895): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1405)
03-22 11:04:57.900: E/AndroidRuntime(11895): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1379)
03-22 11:04:57.900: E/AndroidRuntime(11895): at android.app.Activity.startActivityForResult(Activity.java:2827)
03-22 11:04:57.900: E/AndroidRuntime(11895): at android.app.Activity.startActivity(Activity.java:2933)
03-22 11:04:57.900: E/AndroidRuntime(11895): at com.example.principal.Principal$1.onClick(Principal.java:37)
03-22 11:04:57.900: E/AndroidRuntime(11895): at android.view.View.performClick(View.java:2485)
03-22 11:04:57.900: E/AndroidRuntime(11895): at android.view.View$PerformClick.run(View.java:9080)
03-22 11:04:57.900: E/AndroidRuntime(11895): at android.os.Handler.handleCallback(Handler.java:587)
03-22 11:04:57.900: E/AndroidRuntime(11895): at android.os.Handler.dispatchMessage(Handler.java:92)
03-22 11:04:57.900: E/AndroidRuntime(11895): at android.os.Looper.loop(Looper.java:130)
03-22 11:04:57.900: E/AndroidRuntime(11895): at android.app.ActivityThread.main(ActivityThread.java:3687)
03-22 11:04:57.900: E/AndroidRuntime(11895): at java.lang.reflect.Method.invokeNative(Native Method)
03-22 11:04:57.900: E/AndroidRuntime(11895): at java.lang.reflect.Method.invoke(Method.java:507)
03-22 11:04:57.900: E/AndroidRuntime(11895): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
03-22 11:04:57.900: E/AndroidRuntime(11895): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
03-22 11:04:57.900: E/AndroidRuntime(11895): at dalvik.system.NativeStart.main(Native Method)
this is how I call the Activity with an intent
intent.setAction(Intent.ACTION_MAIN);
intent.setClassName("com.example.suscribir", "com.example.suscribir.Suscribir");
startActivity(intent);
this is the Manifest
<activity
android:name="com.example.suscribir.Suscribir">
</activity>
If you need more info, just tell me Thanks again