ImageButton is a great addition in Android. However, it can generate a warning which can luckily easy to overcome. Description Resource Path Location Type: [Accessibility] Missing contentDescription attribute on image menu.xml /project/res/layout line 22 Android Lint Problem. To fix this add the following line in the xml at the ImageButton android:contentDescription=”@string/desc” Resolved this warning by setting
Category: Android
Eclipse Android Tag Should Specify A Target API Level
Android SDK Tools revision 17 warning about API Level running in API 15, this properly occur in previous versions as well. Error: “Description Resource Path Location Type: <uses-sdk> tag should specify a target API level (the highest verified version; when running on later versions, compatibility behaviors may be enabled) with android:targetSdkVersion=”?” AndroidManifest.xml /inLogic line 7 Android
Eclipse Android Requires Compiler Compliance Level
After importing an existing Android application into a new workspace the following error can occur: “Your Project contains error(s), please fix them before running your application.” First thing to do is to look at the console output and read the error. In this case it told what the problem is and how to solve it!
CSS3 Gradient Generator
Using gradient color can be cool and be completed with css style. Making a gradient color in css can be completed as following: [sourcecode language=”css”] <script type="text/css"> .txt { background-image: linear-gradient(bottom, rgb(132,170,193) 15%, rgb(159,204,232) 58%, rgb(191,245,255) 79%); background-image: -o-linear-gradient(bottom, rgb(132,170,193) 15%, rgb(159,204,232) 58%, rgb(191,245,255) 79%); background-image: -moz-linear-gradient(bottom, rgb(132,170,193) 15%, rgb(159,204,232) 58%, rgb(191,245,255) 79%); background-image: -webkit-linear-gradient(bottom,
Make Chrome Behave As A Mobile Browser By Changing The User Agent
Making your browser behave like a mobile browser can be helpful sometimes, this can easily be done by changing the user agent. This tools can also be helpful if you’re a developer and you want to test a site in different environment. In the past you had to install an extension. Chrome have included a
SourceCode Compressor
When optimizing it can be a good idea to compress (also called minification) your files by removing all unnecessary characters from source code. There are several website which can easily help with that: HTML Compressor JavaScript Compressor CSS Compressor
Dreamweaver is unable to open PhoneGap in the emulator
“Dreamweaver is unable to open “PhoneGap” in the emulator. Please consult the buildlog at C:\Users\$name\Desktop\myapp.app_Android\buildlog.log for additional details.” Building PhoneGap application with Dreamweaver is fairly easy. PhoneGap app are build with HTML, CSS and Javascript. It can be created with any IDE or text editor, yes even vi on Linux. Adobe has made this possible