Breaking News
Home / admin (page 10)


java.lang.NoClassDefFoundError: com/google/common/base/Function : Jetty Server fails to start

Exception Jetty server fails to start and throws the following Exception: 584 [main] WARN org.mortbay.log – failed HandlerCollection@1fff293: java.lang.NoClassDefFoundError: com/google/common/base/Function584 [main] ERROR org.mortbay.log – Error starting handlers java.lang.NoClassDefFoundError: com/google/common/base/Function      at org.glassfish.jersey.servlet.WebComponent.createResourceConfig(      at org.glassfish.jersey.servlet.WebComponent.<init>(      at org.glassfish.jersey.servlet.ServletContainer.init(      at org.glassfish.jersey.servlet.ServletContainer.init(      at javax.servlet.GenericServlet.init(      at org.mortbay.jetty.servlet.ServletHolder.initServlet(      at org.mortbay.jetty.servlet.ServletHolder.doStart( …

Read More »

How do you configure Google Analytics v2 lib in Android?

Answer Create an xml file in the res/values directory called as analytics.xml <?xml version=”1.0″ encoding=”utf-8″ ?> <resources xmlns:tools=”” tools:ignore=”TypographyDashes”>  <!–Replace placeholder ID with your tracking ID–>  <string name=”ga_trackingId”>UA-41303275-1</string>   <!–Enable automatic activity tracking–>  <bool name=”ga_autoActivityTracking”>true</bool>   <!–Enable automatic exception tracking–>  <bool name=”ga_reportUncaughtExceptions”>true</bool>    <bool name=”ga_debug”>false</bool></resources> <!

Read More »

How do you define Colors Resources in Android?

Answer Create an xml file in the res/values directory called as colors.xml <?xml version=”1.0″ encoding=”utf-8″?><resources>    <color name=”White”>#FFF</color>    <color name=”Black”>#000</color>    <color name=”Grey”>#7F7F7F</color>    <color name=”DarkGrey”>#4F4F4F</color>    <color name=”Green”>#0F0</color>    <color name=”TransparentGrey”>#7F000000</color></resources>    You can define what ever colors you want as resources as it is shown above. Once defined, the Android compiler will automatically create …

Read More »

How to allow PHP to upload larger file size (audio etc.)?

The following parameters can to be changed in php.ini in order to allow upload of larger files. ini_set(‘upload_max_filesize’, ’20M’); ini_set(‘post_max_size’, ’20M’); ini_set(‘max_input_time’, 300); ini_set(‘max_execution_time’, 300); The first two parameters are related to max size in MB of the uploaded file and the second two are related to how much execution …

Read More »

android.view.InflateException: Binary XML file line #50: Error inflating class

Issue The app is trying to use Admob banner in the Actvity.             <                android:id=”@id/adView”                android:layout_width=”wrap_content”                android:layout_height=”wrap_content”                ads:adSize=”BANNER”                ads:adUnitId=”a1s251cdf4s7ec3″                ads:loadAdOnCreate=”true”                ads:testDevices=”TEST_EMULATOR, TEST_DEVICE_ID” />        </LinearLayout> /AndroidRuntime( 2554): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.livrona.apps.gurbani.ringtone/com.livrona.apps.gurbani.ringtone.Main}: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.livrona.apps.gurbani.ringtone/com.livrona.apps.gurbani.ringtone.RingtonesActivity}: android.view.InflateException: Binary XML file line #50: Error inflating class E/AndroidRuntime( 2554): …

Read More »