Saturday, March 29, 2014

Ask: Can get the code package name of the current program?


Current activity, there is no way to get the package name: like this com.test.www
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
yourclassName.this.getClass (). getPackage ()
Reply:
There are, ah, direct getPackageName () to

No comments:

Post a Comment