Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static Thread newThread(Runnable r, String name) { if (TextUtils.isEmpty(name)) { throw new RuntimeException("thread name should not be empty"); } return new Thread(r, getStandardThreadName(name)); } public static String getStandardThreadName(String name) { if (!TextUtils.isEmpty(name)) { final String PREFIX = "seker_"; if (!name.startsWith(PREFIX)) { return PREFIX + name; } } return name; } }