Android : how to know if MediaPlayer is paused?

MediaPlayer.isPlaying() does not allow to know if the MediaPlayer is stopped or paused. How to know if it is paused and not stopped? Thanks !

Is WebRTC Coming to Android WebView? When?

I am seeing some contradicting evidence to the question of support of WebRTC in Android’s WebView, and I was wondering if anyone might know anything about Google’s plans to support WebRTC in the WebView in the future. On one hand, I have read a post by Paul Irish claiming that WebRTC will be supported on […]

Disadvantages in Multidexing the android application

Recently I have read about the Dalvik 65K method limit. I have understood that the method invocation list can only invoke first 65536 method references. To tackle this we have number of solutions. One of which being multidexing where we split the .dex files to number of classes [classes.dex, classes1.dex …] by using android‘s support […]

Android Espresso: Running multiple tests sequentially

I’m trying to run a series of tests using Espresso for Android. It appears that between runs the Activities are NOT being closed. Whatever the app state after one test, its left for the next test. I need to run each of my tests from a fresh app start. In Robotium this is handled using […]

Android Canvas didn't draw Path when Path's point out of view

I ran into some problem with Android Canvas when drawing path. My case is that i have a relative layout work like a map view ( not using google api or something like that ). I have to draw a path onto that view. canvas.drawPath(polyPath, borderPaint); I also have to draw other type like circle, […]

Viewport fit screen width and big images

I’m trying to use a WebView for displaying a big image with the built-in multitouch and trying to avoid memory crashes. I set the webView this way: setInitialScale(20); WebSettings settings = getSettings(); settings.setJavaScriptEnabled(true); settings.setUseWideViewPort(true); settings.setLoadWithOverviewMode(true); settings.setSupportZoom(true); settings.setBuiltInZoomControls(true); And then load the following code: <head> <meta name=”viewport” content=”width=device-width, user-scalable=yes” /> </head> <body style=”margin: 0; padding: 0″> […]

Layout like Cards in android

I want to make an android layout like Google Cards,i know there is an Open Source Libraries, however i want only the Layout and the gray hex background style. I could not find information about this, how i can make this possible? im Attaching new Google maps v7 Layout so you can get the idea.

ActionBarSherlock with custom RelativeLayout does not show title text

The ActionBar does not show title when using relative layout. And when I not use the RelativeLayout, the items are not aligned to right. Please don’t tell me to use menu items as the solution. It must be custom. Here is how I set it: ActionBar bar = getSupportActionBar(); bar.setDisplayOptions( ActionBar.DISPLAY_HOME_AS_UP | ActionBar.DISPLAY_SHOW_CUSTOM | ActionBar.DISPLAY_SHOW_HOME […]

How to add flags with my intent in the manifest file

we know that there are flags which we can add to our intent using the addFlags() method in our java code. Is there any way we can add these flags in the manifest file itself instead of writing this in java code. I need to add REORDER_TO_FRONT flag for one of my activities in the […]

how to set visibility GONE like android in IOS?

Anybody know a simple way to hide a label and let the other views of the screen use the place left blank ? And make the opposite when showing back that view. Something like Android setVisibility = GONE for layers. As far as I know, using setHidden=true only hide the view from the screen but […]

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