Code example for Intent

Methods: putExtrasetClass

0
        result.setClassName(pkg, componentName);
        return result;
    } 
 
    protected Intent browseIntent(String path) {
        Intent result = new Intent();
        result.setClass(this, HwTests.class);
        result.putExtra(EXTRA_PATH, path);
        return result;
    } 
 
    protected void addItem(List<Map<String, Object>> data, String name, Intent intent) {
        Map<String, Object> temp = new HashMap<String, Object>();
        temp.put("title", name);
        temp.put("intent", intent);
        data.add(temp);
    } 
 
    @Override 
    @SuppressWarnings({ "unchecked", "UnusedParameters" }) 
    protected void onListItemClick(ListView l, View v, int position, long id) {