2010.11.08 18:40
Code Highlighter 테스트
사용법 : 확장 컴포넌트 - Code Highlighter
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.redirect_getter);
// Watch for button clicks. Button applyButton = (Button)findViewById(R.id.apply); applyButton.setOnClickListener(mApplyListener);
// The text being set. mText = (TextView)findViewById(R.id.text); }
for (int i = 0; i < len; i++) { ResolveInfo info = list.get(i); CharSequence labelSeq = info.loadLabel(pm); String label = labelSeq != null ? labelSeq.toString() : info.activityInfo.name; if (prefix.length() == 0 || label.startsWith(prefix)) { String[] labelPath = label.split("/");
String nextLabel = prefixPath == null ? labelPath[0] : labelPath[prefixPath.length];
if ((prefixPath != null ? prefixPath.length : 0) == labelPath.length - 1) { addItem(myData, nextLabel, activityIntent( info.activityInfo.applicationInfo.packageName, info.activityInfo.name)); } else { if (entries.get(nextLabel) == null) { addItem(myData, nextLabel, browseIntent(prefix.equals("") ? nextLabel : prefix + "/" + nextLabel)); entries.put(nextLabel, true); } } } }
테스트 끝.
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
공지 | 추억의 실피르넷 게임 커뮤니티 오프닝 멘트 [9] | 실피르넷 | 2010.10.19 | 425283 |
» | Code Highlighter 테스트 [2] | 실피르넷 | 2010.11.08 | 5299 |