gradle force build tools version on third party libraries?

how can I force a library to use sdk build tools 19.1.0 or above without forking/manually editing the build.gradle file for the library? I keep getting this error when using libraries… Error:The SDK Build Tools revision (…….) is too low for project ‘:somelibrary’. Minimum required is 19.1.0

Changing android application language

This question already has an answer here: Change language programmatically in Android 26 answers

Launch default browser with intent and post parameters

Possible Duplicate: How can I open android browser with specified POST parameters? I would like to do something like this: startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(“”)); But I dont want to send the parameters with get but with post. How can I do this as described above? Many thanks in advance, navajo

Android studio won't let me use switch on a string?

I’m creating a android app in android studio and trying to create a switch case on a string. As far as i know this is possible, as long as you got a JDK equals to 7 or higher. I’m using the following /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home and still gets an error when trying to switch on a string. […]

Google Maps Android API v2, Marker title/snippet wrong display

I use Google Maps Android API v2 with Android to show current position with nearby markers. Nearby places locations and titles are received using Google Places API. The problem is that non-english names at title/snippet are shown in fail way. For the instance, Hebrew names. The sreenshot is attached. )

getItem() method is getting called twice when using Fragment Pager Adaptor

I am using a fragment pager adaptor to instantiate my fragment class.I am able to do so but my problem is that my getItem() method is getting called twice which is creating problem further.can u explain me why it is happening . package com.creatiosoft.rssfeed.adaptor; import android.content.Context; import; import; import; import android.util.Log; import […]

Android imageview shows greenish image

This is the original image: This is the rendered image using ImageView: However, sometimes when the image is in a carousel, swiping back to the image may cause the image to render correctly, which is even more weird… This behavior is observed both on an LG G3 (Android 5.1) and Genymotion (Android 4.4.4). I’m using […]

Why is my progress bar not centered vertically?

I have the following layout… <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”” android:orientation=”vertical” android:layout_width=”fill_parent” android:layout_height=”fill_parent” android:background=”@drawable/bg_generic_portrait”> <ListView android:id=”@android:id/list” android:layout_width=”fill_parent” android:layout_height=”fill_parent” android:background=”@drawable/issue_list_item_background_normal” android:listSelector=”@drawable/issue_background_selector” android:divider=”@drawable/separator” > </ListView> <ProgressBar android:layout_width=”wrap_content” android:layout_height=”fill_parent” android:layout_gravity=”center” android:id=”@+id/preloader” style=”@android:style/Widget.ProgressBar.Large”/> <TextView android:id=”@android:id/empty” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:background=”#FF0000″/> </LinearLayout> And it looks like this… I want the preloader to be centered vertically too, what is wrong?

Android – How to run intent from JavaScript

I am new to Android and Java. I have constructed an app using HTML/Javascript that is working great. I now need to create an activity that launches the email client, fills in subject and body, and (the tough part) adds a file attachment. I have not been able to do this from within JavaScript, mailto: […]

How to set Android toolbar height?

I want to achieve this: What I thought was to make a Custom Toolbar with a bigger height and work with the tabhost and tabpager normally. I have implemented it, but the toolbar is showing the normal height, so it doesn’t show as I want, just the top part. Is this the right approach or […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.