마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

strings 가 xml로 용량 문제?

0 추천

 

Android app가

eclipse 구동시 

 

value /

strings 가  xml로

약 1500 page 분량 돼니

content 를  android서

인식이 안 되는 것 같은데

요거 프로그램 자체 인식방법?

 

 

Src  Cd :

 


import android.app.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class Content extends Activity {

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.content);
        Intent i = getIntent();
        int id = i.getExtras().getInt("id");
 String[] content_array = getResources().getStringArray(R.array.content_array);
        
        TextView tv = (TextView)findViewById(R.id.text);
        tv.setText(content_array[id]);
    }

}

익명사용자 님이 2017년 6월 21일 질문

답변 달기

· 글에 소스 코드 보기 좋게 넣는 법
· 질문에 대해 추가적인 질문이나 의견이 있으면 답변이 아니라 댓글로 달아주시기 바랍니다.
표시할 이름 (옵션):
개인정보: 당신의 이메일은 이 알림을 보내는데만 사용됩니다.
스팸 차단 검사:
스팸 검사를 다시 받지 않으려면 로그인하거나 혹은 가입 하세요.
...