About
Contents
STL
Android
Eigen
enchant.js
Firefox OS
OpenGL
OpenGL ES 2.0
pukiwiki
UE4
Unity
Windows Phone
Xamarin
Materials Link
その他
PR
STL
Android
Eigen
enchant.js
Firefox OS
OpenGL
OpenGL ES 2.0
pukiwiki
UE4
Unity
Windows Phone
Xamarin
アプリの各種名前を取得します。
import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class MainActivity extends Activity { @Override protected void onCreate( Bundle savedInstanceState ) { super.onCreate( savedInstanceState ); setContentView( R.layout.activity_main ); StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append( "PackageName=" + getPackageName() ); stringBuilder.append( "\n\n" ); stringBuilder.append( "PackageCodePath=" + getPackageCodePath() ); stringBuilder.append( "\n\n" ); stringBuilder.append( "PackageResourcePath=" + getPackageResourcePath() ); stringBuilder.append( "\n\n" ); // 表示。 TextView textView = (TextView) findViewById(R.id.textView); textView.setText( stringBuilder.toString() ); } }