Wireshark – filter out only results if they are method type POST or GET and not containing in url special word

Example of filtering only that results which have request method as GET or POST and special word is not in url:

(http.request.method == GET or http.request.method == POST) and !http.request.uri contains "css"

Working example – changing drawable background in runtime, dynamically

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:
[java]
<?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>
[/java]

And here is a method for flexible changing color:

Continue reading “Working example – changing drawable background in runtime, dynamically”