2017-08-17 5 views
-2
@Override 
protected void onCreate(Bundle savedInstanceState) 
{ 
    super.onCreate(savedInstanceState); 
    setContentView(R.layout.activity_selection); 
    Chartboost.startWithAppId(this, 
     getResources().getString(R.string.appId), 
     getResources().getString(R.string.appSignature)); 
+2

Resource -> Values -> String

R.layout.activity_selectionです。ここで「場所を見つける」とはどういう意味ですか? – CommonsWare

+0

あなたの質問にはっきりとお尋ねください。 – Raja

答えて

0

リソースから文字列を取得していますか?

私はこれを行う...

私はその後、私は私の活動にそのメソッドを呼び出すことができる方法

public static String showStringResource(int resource) { 
    return getApplicationContext().getResources().getString(resource); 
} 

を作成します。

showStringResource(R.string.helloworld);
0

R.string.appSignatureR.string.appIdはである:あなたの質問は不明である

Resource -> Values -> Layout
関連する問題