Start activity in java jar file

Put your problem here if it does not fit any of the other categories.

Start activity in java jar file

Postby saranya » Tue Mar 22, 2011 3:45 pm

Hi ,

I have created one java project say Test in which I extended activity. Added android.jar to that project. And then started another activity within that . I created jar file by using Test project.

I used test.jar in my android project SampleOne. While running SampleOne got the following exception Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? even after I added intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASk) in Test src code.

Pls help

Thanks in advance,
Saranya
saranya
Developer
Developer
 
Posts: 48
Joined: Wed Oct 22, 2008 8:06 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 8 guests