I want to use to start an activity from jar file with my application. In my jar file i use
Intent intent=new Intent(cl,com.jar.Adview.class);
cl.startActivityForResult(intent,0);
Where, cl is Activity of my application. Adview.class is in my jar package called com.popupjar.But it throws null pointer exception. How to do this. Please give me a solution.
Note: The intent will be in a method. When i call the method in my apllication the intent activity want to be start.
Check this: Integrate zxing barcode scanner into your Android app natively using Eclipse
Check the step 4(Include ZXing Android into your project). You can see how the activity for scan (which is in the jar) is being called.
Hope this would help.