How to set license on ArcGIS runtime android 100

3223
4
Jump to solution
11-28-2016 11:44 AM
JinYingMin1
New Contributor

Hi,

I have been develop Android GIS application on ArcGIS runtime SDK.

Recently I have download the ArcGIS Android SDK 100.0 as new version.

You can get your runtime license from this url.

Licensing your ArcGIS Runtime App | ArcGIS for Developers 

This is that describe how set programmatically your license at runtime .

License your app—ArcGIS Runtime SDK for Android | ArcGIS for Developers 

the sample code is like this.

ArcGISRuntimeEnvironment.setLicense("runtimelite,1000,rud#########,day-month-year,####################");

but actually the code doesn't works.

there not found the setLicense()  with these parameters.

I don't understand why?

I have correctly configure to develop application on ArcGIS android runtime100.0.

I am looking at someone who can help me.

0 Kudos
1 Solution

Accepted Solutions
EricBader
Occasional Contributor III

A few questions:

Have you copied and pasted the lite string from the developers site as-is?

I'm not sure why your code is calling setLicense() twice, as your screen shot indicates. Can you explain? The second one you show should be all you need to call. The single-parameter license string should work. Can you get the LicenseResult returned from this and tell is what it says?

Thanks!

View solution in original post

4 Replies
EricBader
Occasional Contributor III

A few questions:

Have you copied and pasted the lite string from the developers site as-is?

I'm not sure why your code is calling setLicense() twice, as your screen shot indicates. Can you explain? The second one you show should be all you need to call. The single-parameter license string should work. Can you get the LicenseResult returned from this and tell is what it says?

Thanks!

JinYingMin1
New Contributor

Hello.

Thank you very much.

I resolved this issue.

When I call the "setLicense" method, I was confusing.

.....
ArcGISRuntimeEnvironment.setLicense("runtimelite,1000,xxxxxxx,none,xxxxxxxx");

.....

You are right.

Thanks again for your help.

I have more question, Could you reply?

0 Kudos
EricBader
Occasional Contributor III

Of course!

0 Kudos
JinYingMin1
New Contributor

Hello.

I have been working on ArcGIS android SDK 100.0.

But strangely there not found the way for use shape files.

In past work, I have worked with shape file on ArcGIS android 10.28.

I want to know the reason why I can't use shape files on ArcGIS android SDK 100.0.

Could you explain it?

Looks as you are very collaborate and very kind.

I also may help you, if you have issue and I can do it.

Best regards.

0 Kudos