Tuesday, August 14, 2012

An iPad user reviews the Nexus 7 (repost)

Here is interesting article of review the Nexus 7.

Maven (mvn) Exception in thread "main" java. lang. NoClassDefFoundError

It could happen when you try to run mvn or if will just check its version it will give you this kind of error (Exception):


MBPro-2:~ apple$ mvn -version
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/plexus/classworlds/launcher/Launcher
Caused by: java.lang.ClassNotFoundException: org.codehaus.plexus.classworlds.launcher.Launcher
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

In this case you need just fix symlink to the right version of Maven on your Mac OSX: carefully read and follow all instructions of this article.

How to draw 9-patch PNGs (Android Theming)

First of all launch the draw9patch application from your SDK /tools directory in your Terminal.

Then follow the official Android description on http://developer.android.com/tools/help/draw9patch.html.
Or watch this tutorial on YouTube: How to easily create 9 patch PNGs (Android Theming)

How to check internet connection on Android

Check this links:

http://stackoverflow.com/questions/2789612/how-can-i-check-whether-an-android-device-is-connected-to-the-web

http://stackoverflow.com/questions/4238921/android-detect-whether-there-is-an-internet-connection-available