Setting Config options

media Jun 28, 2012 01:25AM EDT

Hello,

Unfortunately I find the documentation for the Android SDK to be quite lacking in the area of the config settings. I consider myself to be an intermediate java developer, and yet it still is not clear to me what is necessary to set these options so that I can include the AddThis buttons in my app with the proper IDs.

The following statement is very ambiguous:
"The configurations and customization can be changed by changing the values given in Config and the resources files : strings.xml, colors.xml."
My project already has a file called config.java, and changing it at this point is far more headache than it is worth. I see nowhere in the SDK files that I can edit myself or view for reference.

So could I please get some more elaborate instructions here? This is the last step I need to get this working. What file do I need to create, what class does it need exactly, and how should that be instantiated?

Thank you!

--Cody Erekson

Up 0 Rated Down
Jithin (AddThis Happiness Specialist) Jul 04, 2012 07:32AM EDT
Hi,

Apologize for the confusion, by changing values in Config means you can changes values assigned to the SDK using different setters provided by the Config class.
For example you can set FB ids as :
Config.configObject().setShouldUseFacebookConnect(true);
Config.configObject().setFacebookAppId("yourkey");

Hope this help.

Thanks,
Jithin Roy

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Still need help?


General Topics

 

Developers