How set Metadata function on code?

Hi,all… :pray: :slight_smile:

I want create extension workon google place

I have this metada:

<meta-data android:name="com.google.android.geo.API_KEY"
            android:value="YOUR_API_KEY" />

how write code function to add API KEY ?
but i have try this:

    @SimpleFunction
    	public void KeyApi(String keyApi){
    		mGoogleApiClient = new GoogleApiClient.Builder(this.context)
                    .addApi(keyApi)
                    .build();
    	}

I not sure :thinking:

I hope anyone can help me …
Thanks before.

regard,
kangris

1 Like