• 자유 게시판
  • 유머 게시판
  • 질문/답변 게시판
  • 정보/강좌 게시판
  • 소설 게시판
  • My Games Top 10

자유 게시판

Code Highlighter 테스트

2010.11.08 18:40

실피르넷 조회 수:5299

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 431471
19567 추억의 실피르넷 게임 커뮤니티 오프닝 멘트 [9] file 실피르넷 2010.10.19 431471
19566 아직도 남아있군요.. 마시아 2021.05.20 305629
19565 2006-12-30 에 가입했었네요 똥그리 2020.06.06 302680
19564 이겜 아는분 domitory 2020.04.17 298229
19563 괜찮은 게임 있나요? domitory 2020.04.16 285841
19562 와 정말 오래간만에 와보네요 [1] 손무 2022.09.25 279786
19561 오랜만이에요. [3] 창暢 2022.09.15 278739
19560 저도 오랜만에 생존신고 ㅋㅋ [1] 律翼下 2022.10.06 278561
19559 신선님 그리고 다들 잘지내시나요? [1] 노어링 2022.10.25 277556
19558 진짜 오랜만에 들러봅니다..^^ [1] 마시아 2019.05.22 261449
19557 화이트 앨범 찾아요ㅠㅠ 나는야300 2020.01.13 247241
19556 모바일겜 추천좀 게임조왕 2019.02.24 246054
19555 초토화! 던전 [1] 구링 2019.02.20 244849
19554 이 게임 같이하실분?! 게임조왕 2019.02.12 238153
19553 봐주세욤 인간애벌래 2018.11.21 236995
19552 하드트럭aa 저격눈빛 2018.09.19 236803
19551 3년만에 돌아왔습니다. [2] 실피드의만남-original 2017.06.21 235962
19550 시간 되게 빠르네요 벌써 2018년.. SeintGB 2018.04.15 229134
19549 오랜만 이네요.. 위상코쿤 2018.02.08 228953
19548 안녕하세요! 다들 잘지내시지요!? [3] file kei 2017.04.04 202879