Skip to content

Commit

Permalink
updated about me, set versionCode: 1
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetkizilay committed Jul 16, 2014
1 parent c9f99bc commit 0338299
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ android {
buildToolsVersion '19.1.0'

defaultConfig {
applicationId "com.ahmetkizilay.controls.androsc"
minSdkVersion 10
targetSdkVersion 19
versionCode 1
versionName '0.9.0'
}

signingConfigs {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import android.app.AlertDialog;
import android.app.Dialog;
import android.content.pm.PackageManager;
import android.support.v4.app.DialogFragment;
import android.content.DialogInterface;
import android.content.Intent;
Expand All @@ -21,11 +22,17 @@ public static AboutMeDialogFragment newInstance() {
}

public Dialog onCreateDialog(Bundle savedInstanceState) {
PackageManager pm = getActivity().getPackageManager();
String versionName = "1.0.0";
try {
versionName = pm.getPackageInfo(getActivity().getPackageName(), 0).versionName;
} catch (Exception e) {}

AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
builder.setMessage(
"Version 1.0\n\nPERISONiC Sound And Media")
"Developed by Ahmet Kizilay\n\nThis is a free and open-sourced app. Please consider making a donation if you enjoy this app.\n\nPERISONiC Sound And Media")
.setCancelable(false)
.setTitle("AndrOSC")
.setTitle("AndrOSC - v" + versionName)
.setIcon(R.drawable.ic_default)
.setNeutralButton("DONATE", new DialogInterface.OnClickListener() {

Expand Down

0 comments on commit 0338299

Please sign in to comment.