Java tutorial
//package com.java2s; import android.content.ComponentName; public class Main { private static String toComponentName(ComponentName cn) { if (cn == null) return null; else return cn.getPackageName() + "/" + cn.getShortClassName(); } }