For those who've used medialets - having a problem dynamically setting
the ap_id.

I have a couple of apps that use an android Library. Medialets uses an
"app_id" string in the strings.xml of the app. All of the
functionality for the ads is in the Library code (see below), but each
app needs to have its own unique medialets app id.

Here's how the app is laid out:

App1 - MainActivity.class -> extends Activity, sets up some
parameters, starts the Library's main activity and finishes.
App1's strings.xml has the medialets app_id.

Library - LibraryActivity.class -> extends an abstract Medialets
wrapper class, and runs a method of that class to initiate the ads.
Library - Medialets wrapper class -> extends AdManager (Medialets)

Here's the problem - if the Library does not have a proper medialets
app_id in its strings.xml, the ads fail. As soon as I make sure it has
a proper app_id, it works fine.

The Android docs make it very clear that when using a Library,
conflicting files are "merged" with the Library and the class using
the Library always overrides. When I debug Medialets, I can in fact
confirm that the proper key is being sent to them. But sure enough,
unless a proper app_id is IN the Library's strings.xml, the ads do not
work.

Any thoughts?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to