Google Warned Me that my google Api key exposed in Manifest file and in Java file. My Manifest file looks like :
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIza..................................03E"/>
In strings.xml file :
<string name="google_direction_api_key">AIza................................03E</string>
In Java:
+"&"+"key="+getResources().getString(R.string.google_direction_api_key);
so, My question is how to use this Api key in java and in xml file so that the key will not exposes? Is there any way?
Thanks.