diff --git a/src/com/upc/pbe/upcnews/MainActivity.java b/src/com/upc/pbe/upcnews/MainActivity.java index 2eb2aff..522e760 100644 --- a/src/com/upc/pbe/upcnews/MainActivity.java +++ b/src/com/upc/pbe/upcnews/MainActivity.java @@ -51,8 +51,7 @@ public class MainActivity extends Activity implements OnClickListener { buttonDescarrega.setOnClickListener(this); updateURL(); //Si vitamio no està instal·lat, mostrem el missatge d'alerta - PackageManager pm = getPackageManager(); - List apps = pm.getInstalledPackages(0); + List apps = getPackageManager().getInstalledPackages(0); for(int i = 0; i < apps.size(); i++) { if(apps.get(i).applicationInfo.loadLabel(getPackageManager()).toString().equals("Vitamio"))