How to connect android app to google cloud storage via JSON API -


i have problem connect android app google cloud storage. want connect via json api, can't use google authorization this.

i generated api key. in internet found, should on manifest .xml:

<meta-data             android:name="??????"             android:value="my_api_key" /> 

but don't know, should put on:

android:name="??????" 

can me?

`"meta-data contains name-value pair item of additional, arbitrary data can supplied parent component"

a meta-data made of following:

android:name: unique name item. ensure name unique, use java-style naming convention — example, "com.example.project.activity.fred".

android:resource: reference resource. id of resource value assigned item. id can retrieved meta-data bundle bundle.getint() method.

android:value: value assigned item. data types can assigned values , bundle methods components use retrieve values listed in following table: source.

you supposed use unique name api-key in app.take @ these 2 examples:

<meta-data     android:name="my_api_key"     android:value="mykey123" />   <meta-data android:name="com.google.android.gms.version"   android:value="@integer/google_play_services_version" /> 

in second example, @integer/google_play_services_version" gets value string.xml.

simply put, name expects name of stuff intend use in meta-data , value expects value of stuff.

read this explanation of how use meta-data in manifest.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -