PackageInfo pInfo;
try {
pInfo = getPackageManager().getPackageInfo(getPackageName(), PackageManager.GET_META_DATA);
- String aboutTitle = String.format("About %s", getString(R.string.app_name));
- String versionString = String.format("Version: %s", pInfo.versionName);
+ String appname = getString(R.string.app_name);
+ String aboutTitle = "About " + appname;
+ String versionString = appname + " "+ pInfo.versionName;
String aboutText = getString(R.string.aboutText);
// Set up the TextView
// Set some padding
message.setPadding(5, 5, 5, 5);
// Set up the final string
- message.setText(versionString + "\n" + s);
+ message.setText(versionString + s);
// Now linkify the text
Linkify.addLinks(message, Linkify.ALL);
.setTitle(aboutTitle)
.setCancelable(true)
.setIcon(R.drawable.icon)
- .setPositiveButton(getString(android.R.string.ok), null)
+ .setPositiveButton(android.R.string.ok, null)
.setView(message).create()
.show();
} catch (NameNotFoundException e) {