Breaking News
Home / Android (page 3)

Android

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=”http://schemas.android.com/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 »

android.view.InflateException: Binary XML file line #50: Error inflating class com.google.ads.AdView

Issue The app is trying to use Admob banner in the Actvity.             <com.google.ads.AdView                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 com.google.ads.AdView E/AndroidRuntime( 2554): …

Read More »
Advertisment ad adsense adlogger