CopyPastor

Detecting plagiarism made easy.

Score: 1.8253147602081299; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Reposted on 2011-11-17
by Vineet Shukla

Original Post

Original - Posted on 2011-09-13
by Vineet Shukla



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Here is the complete code:
ArrayList<PackageInfo> res = new ArrayList<PackageInfo>(); PackageManager pm = ctx.getPackageManager(); List<PackageInfo> packs = pm.getInstalledPackages(0); for(int i=0;i<packs.size();i++) { PackageInfo p = packs.get(i); String description = (String) p.applicationInfo.loadDescription(pm); String label= p.applicationInfo.loadLabel(pm).toString(); String packageName = p.packageName; String versionName = p.versionName; String versionCode = p.versionCode; String icon = p.applicationInfo.loadIcon(pm); //Continue to extract other info about the app... }
**Note:** Add this permission to the manifest file:
<uses-permission android:name="android.permission.GET_TASKS" />
you mean to say installed application:
ArrayList<PackageInfo> res = new ArrayList<PackageInfo>(); PackageManager pm = ctx.getPackageManager(); List<PackageInfo> packs = pm.getInstalledPackages(0); for(int i=0;i<packs.size();i++) { PackageInfo p = packs.get(i); String description = (String) p.applicationInfo.loadDescription(pm); String label= p.applicationInfo.loadLabel(pm).toString(); String packageName = p.packageName; String versionName = p.versionName; String versionCode = p.versionCode; String icon = p.applicationInfo.loadIcon(pm); //Continue to extract other info about the app... }
Note: Add this permission to the manifest file:
<uses-permission android:name="android.permission.GET_TASKS" />

        
Present in both answers; Present only in the new answer; Present only in the old answer;