141 |
builder.setPositiveButton("Yes", new OnClickListener() { |
builder.setPositiveButton("Yes", new OnClickListener() { |
142 |
public void onClick(DialogInterface dialog, int which) { |
public void onClick(DialogInterface dialog, int which) { |
143 |
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("market://search?q=pname:" + packageName) ); |
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("market://search?q=pname:" + packageName) ); |
144 |
|
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK ); |
145 |
try { |
try { |
146 |
context.startActivity(i); |
context.startActivity(i); |
147 |
} catch (Exception e) { |
} catch (Exception e) { |