Notepad++ with regex, re-using match variables

Categories: NON ANDROID like

Here is an simple example how to use regex in notepad++ with reusing selected match variables. For example we have special code for simulating gcm notifications. We would like to see it in pretty style. To achieve this we must to move all elements with minus to the new lines. How to do it? Here […]

Change time in genymotion emulator – simple java app

Categories: NON ANDROID like

I made app in executable jar java file for setting time in genymotion emulator. Here is simple java code and compiled app for setting time in genymotion app. Below code I showed how the app looks like and also added ready jar app to download. Code: public class SetTimeInGenyMotion { private JTextField textField1; private JButton […]

Working example – changing drawable background in runtime, dynamically

Categories: NON ANDROID like

Here is a short example code how to do it: I’ve created xml file shape.xml and one method for flexible changing color of shape. shape.xml: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <solid android:color="@android:color/holo_blue_bright" /> <corners android:radius="30dp" /> <size android:height="15dp" android:width="15dp" /> </shape> And here is a method for flexible changing color: