24 May 2015

How Do I Connect an Android Wear Emulator to a Real Phone ?

After starting Android Wear emulator and connected Real Android Phone :

- start Android Wear App on Real Android Phone and connect to Android Wear Emulator, or

- just type in PC Terminal :

adb -d forward tcp:5601 tcp:5601

Source: http://www.tech-recipes.com/rx/49586/how-do-i-connect-an-android-wear-emulator-to-a-real-phone/

18 May 2015

Android Material compatible theme

If you want to have Android Material compatible theme, you should have like this, in your styles.xml file :

<style name="MyTheme" parent="@style/Theme.AppCompat.Light">
    <item name="android:windowNoTitle">true</item>
    <item name="windowActionBar">false</item>
    <item name="android:windowFullscreen">true</item>
    <item name="android:windowContentOverlay">@null</item>
</style>