2013年10月8日星期二

[Android] Ask: Can get the current program code package name ?

Current activity, there is no way to obtain the package name : similar to this com.test.www
------ Solution --------------------- -----------------------
yourclassName.this.getClass (). getPackage ()
------ Solution --- -----------------------------------------
have ah , a direct getPackageName ( ) can

没有评论:

发表评论