Android Question ignorewarnings #34

mterveen

Member
Licensed User
Longtime User
adding warning 34 to the ignorewarnings directive does not seem to work. what am i doing wrong?

example of warning:
actEditBin - 1530: Msgbox and other modal dialogs are deprecated. Use the async methods instead. (warning #34)


ignore warnings:
#Region  Project Attributes
    #ApplicationLabel: xxxxxxxx
    #VersionCode: 2015
    #VersionName: xxxxxx
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: unspecified
    #CanInstallToExternalStorage: True
    '#AdditionalJar: com.crashlytics.sdk.android:crashlytics
    '#AdditionalJar: com.google.firebase:firebase-core
    #IgnoreWarnings: 31, 34
#End Region
 

DonManfred

Expert
Licensed User
Longtime User
The correct solution is to switch to the async methods...
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
#IgnoreWarnings directive only works on a module by module level - You can NOT place it in "Project Attributes" so that it will ignore that error anywhere in the project.

 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
#IgnoreWarnings directive only works on a module by module level - You can NOT place it in "Project Attributes" so that it will ignore that error anywhere in the project.

Here it works; maybe you don't have the last version of B4A (currently 9.80 - it's free)
To me it worked just because I alway put directives between Regions "Project Attributes" and "Activity Attributes" :)
 
Upvote 0
Top