Android Forums

Go Back   These FORUMS ARE DISABLED!! OUR NEW FORUMS ARE AT http://androidforum.com/ > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
 
 
LinkBack Thread Tools Display Modes
Old 04-30-2009, 07:31 PM   #1
BDP
Junior Member
 
Join Date: Apr 2009
Posts: 2
Friends: 0
View BDP's Profile   View BDP's Photo Album   View BDP's Blog   View Social Groups
I am creating new package which only has BroadCastReceiver listening for this intent. This intent is send from another app as a OrderedBroadCast,


At run time, Iget following error when my new Packet's broadcastreceiver is trying to launch

05-01 01:05:52.843: ERROR/AndroidRuntime(192): java.lang.RuntimeException: Unable to start receiver com.test.hmenu.HMenuReceiver: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?

I don't want to set the flag - FLAG_ACTIVITY_NEW_TASK in Intent being send, because it is OrderedBroadcast which is also handled by other Receivers
BDP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error inflating xml layout file pierpa Android Development, Answers, Tutorials, and Code Snippets 3 07-31-2010 11:36 PM
Connection error? dtwalkerfl HTC Smart Mobility 8 12-02-2009 07:23 AM
Broken Pipe Error beeson76 Android Games And Applications 1 02-01-2009 03:54 AM


Unlocked G1 Phones | Buy T-Mobile G1 | Google Phone

All times are GMT -6. The time now is 04:09 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright (c) 2012 TalkAndroid.com. All rights reserved.