‘Missing contentDescription attribute on image’ in XML

Follow this link for solution: Android Lint contentDescription warning Resolved this warning by setting attribute android:contentDescription for my ImageView android:contentDescription=”@string/desc” Android Lint support in ADT 16 throws this warning to ensure that image widgets provide a contentDescription This defines text that briefly describes the content of the view. This property is used primarily for accessibility. … Read more

Resolving LNK4098: defaultlib ‘MSVCRT’ conflicts with

There are 4 versions of the CRT link libraries present in vc\lib: libcmt.lib: static CRT link library for a release build (/MT) libcmtd.lib: static CRT link library for a debug build (/MTd) msvcrt.lib: import library for the release DLL version of the CRT (/MD) msvcrtd.lib: import library for the debug DLL version of the CRT … Read more

What is the list of valid @SuppressWarnings warning names in Java?

It depends on your IDE or compiler. Here is a list for Eclipse Galileo: all to suppress all warnings boxing to suppress warnings relative to boxing/unboxing operations cast to suppress warnings relative to cast operations dep-ann to suppress warnings relative to deprecated annotation deprecation to suppress warnings relative to deprecation fallthrough to suppress warnings relative … Read more

What causes javac to issue the “uses unchecked or unsafe operations” warning

This comes up in Java 5 and later if you’re using collections without type specifiers (e.g., Arraylist() instead of ArrayList<String>()). It means that the compiler can’t check that you’re using the collection in a type-safe way, using generics. To get rid of the warning, you need to be specific about what type of objects you’re … Read more

Why should I always enable compiler warnings?

Why should I enable warnings? C and C++ compilers are notoriously bad at reporting some common programmer mistakes by default, such as: forgetting to initialise a variable forgetting to return a value from a function arguments in printf and scanf families not matching the format string a function is used without being declared beforehand (C … Read more