Error when I try to add android:required="false" in my extension

Hi,
I have to update my extension with android:required="false", in the @UsesActivities I added required:"false" as You can see below:

@UsesActivities(
	activities = {
		@ActivityElement(
			intentFilters = {
				@IntentFilterElement(
					actionElements = {	
						@ActionElement(
							name = "android.nfc.action.TAG_DISCOVERED"
						)
					}, 
					categoryElements = {
						@CategoryElement(
							name = "android.intent.category.DEFAULT"
						)
					}
				)
			}	
			,launchMode="singleTask"
			,name=".Screen1"
			,required="false"
		)
       }
)

but when I try to compile I have this error:
[javac] C:\appinventor-sources\appinventor\components\src\com\google\appinventor\components\runtime\MifareInfo.java:98: error: cannot find symbol
[javac] ,required="false"
[javac] ^
[javac] symbol: method required()
[javac] location: @interface ActivityElement

Could You help me to solve
Thank You
Best regards

Marco

According to the Android documentation, there isn't a required attribute for activity elements. What are you trying to do here?

Simply I am sorry,
it was late night, and only now i see that I wrote "required" but I would to write "exported"
Thank You
Best Regards
Marco

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.