Back to project page FAST.
The source code is released under:
GNU General Public License
If you think the Android project FAST listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.ligi.axt.helpers; //from w w w .j av a 2s.c o m import android.content.Context; import android.content.pm.ResolveInfo; public class ResolveInfoHelper { private final ResolveInfo resolveInfo; public ResolveInfoHelper(ResolveInfo resolveInfo) { this.resolveInfo = resolveInfo; } public String getLabelSafely(Context context) { CharSequence charSequence = resolveInfo.loadLabel(context.getPackageManager()); if (charSequence==null) { return ""; } return charSequence.toString(); } }