android - Read and return the apps installed on the device -


this question has answer here:

i new developer in android , struggling develop application, because need function or read , return apps installed on device, if can me thank you

//getting label name install             packagemanager p = mcontext.getpackagemanager();              list<applicationinfo> info = p.getinstalledapplications(0);             for(int i=0;i<info.size();i++){                 string label = p.getapplicationlabel(info.get(i)).tostring();                 system.out.println("label:"+label);             } 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -