Select to view content in your preferred language

Where put clientID and API Key

4058
4
Jump to solution
12-07-2015 01:25 AM
stevekenneth
Deactivated User

    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
Frequent Contributor

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
Honored Contributor

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
Deactivated User

Everything is good now. thanks

AaronNash1
Frequent Contributor

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

0 Kudos
stevekenneth
Deactivated User

Thanks for your reply.

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