Back to project page craft-support-email-intent.
The source code is released under:
MIT License
If you think the Android project craft-support-email-intent 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 com.yeokhengmeng.craftsupportemailintent; //w w w . ja v a2 s . c o m import android.content.Context; import android.content.pm.PackageManager; public abstract class GetInfoAbstract { protected static final String UNKNOWN = "Unknown"; protected static final String NO_PERMISSION = "No Permission"; protected Context context; public GetInfoAbstract(Context context){ this.context = context; } public boolean checkPermission(String permission) { int res = context.checkCallingOrSelfPermission(permission); return (res == PackageManager.PERMISSION_GRANTED); } public int getVersion(){ return android.os.Build.VERSION.SDK_INT; } public abstract String getBasicDetailsOnly(); public abstract String getAllDetails(); }