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"

Ignoring some logs in Logcat filter – Android Studio – solution

Here is a little help to remove from our logcat some logs we don’t want like: dalvikvm or OpenGL
All what you need is to click in top right corner of logcat, select our package name and click Edit Filter Configuration

2015-04-28_11h04_27

Then in the field called Log Tag regex You need insert this
^((?!(?:dalvikvm|OpenGLRenderer)).)*$ which means you don’t want any log which contains dalvivm or OpenGLRenderer. If You want add another word to ignore list just insert inside of regex

|word

For example:
^((?!(?:dalvikvm|OpenGLRenderer|Word)).)*$

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:

<?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:

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