Skip to main content

Posts

Showing posts from December, 2013

Meta-Data tag updates with MAP API v2

Caused by: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4030500 but found 0. You must have the following declaration within the element: <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> If you get this type of error while launch your application which is based on Google Map V2,then update your AndroidMenifest.xml file. Solution - Google Play Services have been updated to 4.0.30 very recently and so you seem to be using that version of google-play-services_lib. Assumption based on this line: <meta-data             android:name="com.google.android.gms.version"             android:value="@integer/google_play_services_version" /> Not all devices have received an update of GooglePlayServices.APK, which needs to be at least the   same version as a client library you are using.

Android: Custom PreferenceScreen

1) preferences_holder.xml <? xml version = "1.0" encoding = "utf-8" ?> <LinearLayout xmlns:android = "http://schemas.android.com/apk/res/android" android:layout_width = "fill_parent"   android:layout_height = "fill_parent" android:orientation = "vertical" > <LinearLayout   android:orientation = "horizontal"   android:background = "@color/bto_dark_green"   android:layout_width = "fill_parent" android:gravity = "center_vertical"   android:layout_height = "wrap_content" android:paddingTop = "4dip" >  <Button   android:id = "@+id/backPrefBurron"     android:layout_width = "wrap_content" android:layout_height = "wrap_content"     android:text = "Home" /> <TextView     android:id = &qu