Am 27.01.16 um 17:03 schrieb Adrian Ivasku:
> I have in my gradle file something like :
> 
> String packageName = com.test.free
> 
> 
>  Now I want this String packageName to use in my java class.

You can access the packageName from your app with BuildConfig.APPLICATION_ID

For your own varaiables you can use:

// for resources
resValue "string", "<variable name>", "<value>"

// for Java fields in BuildConfig
buildConfigField "String", "<variable name>_AUTHORITY", "<value>"

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/56A94FF0.9070906%40the4thfloor.eu.
For more options, visit https://groups.google.com/d/optout.

Reply via email to