android - How to create a string resource programatically -
i using webtrends analytics in app. (ref-http://help.webtrends.com/en/android/)
the webtrends apis written in such way initialization happens only resources file. provide webtrends.xml sdk , parameters set values xml file.
now problem have set couple of values dynamically based on our server feed.
here have 2 choices:
(1) set webtrends initialization values in code looks impossible webtrends sdk. neither member variables exposed outside library nor there setters/methods set initialization params.
(2) create resources webtrends.xml dynamically or @ least set values resources dynamically seems impossible.
can please suggest way out of deadlock?
you cannot that. when add string resource automatic entry made resource in r.java file @ compile time.
example:
public static final class string { public static final int app_name=0x7f040000; } where app_name name of string resource. so, not possible.
Comments
Post a Comment