Where put clientID and API Key

3797
4
Jump to solution
12-07-2015 01:25 AM
stevekenneth
New Contributor II

    Morning, i'm building an application android with the arcgis runtime sdk sample, particularly the popupUIcustomization.

When i use ArcGISRuntime.setClientId("myClientID"); i got an error from android studio.

Also, i would know where put the GCM notification API Key.

Thanks

0 Kudos
1 Solution

Accepted Solutions
AaronNash1
Occasional Contributor II

I put mine in the very beginning of the onCreate function, right after super.onCreate

View solution in original post

0 Kudos
4 Replies
EricBader
Occasional Contributor III

Have you followed the instructions in the License your app topic?

Does your setClientId code come before any ArcGIS Runtime API calls are made?

What kind of error are you getting from within Android Studio?

0 Kudos
stevekenneth
New Contributor II

Everything is good now. thanks

AaronNash1
Occasional Contributor II

I put mine in the very beginning of the onCreate function, right after super.onCreate

0 Kudos
stevekenneth
New Contributor II

Thanks for your reply.

I have follw your advice and follow the sample at (Basic License | ArcGIS for Developers ) and success at last