Code example for ComponentName

Methods: flattenToString

0
    public void activityStartTrigger(Intent intent) {
        ComponentName cn = intent.getComponent();
        String activity = null;
 
        if (cn != null)
            activity = cn.flattenToString();
        native_at_startActivity(activity);
    } 
 
    /** &hide */ 
    public void activityResumeTrigger(Intent intent) {
        ComponentName cn = intent.getComponent();
        String activity = null;
 
        if (cn != null)
            activity = cn.flattenToString();
        native_at_resumeActivity(activity);
    } 
 
    private native void native_at_startActivity(String activity);
    private native void native_at_resumeActivity(String activity);