Code example for ComponentName

Methods: flattenToString

0
            Intent callIntent = new Intent(context, RecordService.class);
            ComponentName name = context.startService(callIntent);
            if (null == name) {
                Log.e("CallRecorder", "startService for RecordService returned null ComponentName");
            } else { 
                Log.i("CallRecorder", "startService returned " + name.flattenToString());
            } 
            break; 
        } 
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java