Hello all, i'm working on an ads library, the library is able to display fullscreen ads, interstitial ads, video ads etc....
But i need some help figuring something out, In the example i have downloaded from the ads company and which obviously runs in eclipse everything works fine, on the interstitial ads there's a "close" button on the top right side of the ad, the images that are automatically assigned by the sdk to the close button are in the res/drawable folder, when i port the jar file and xml files to use them in Basic4Android everything works fine but for the interstitial ads there's no "close button", i tried copying the two image files to the res/drawable folder in basic4android but i still get this error;
I know the problem is that it doesn't find the interstitial_close_button_normal image, is there a way to add this either to the manifest file, to tell it where to get this image from, i also tried adding it to the R.java file like this
does anyone here have any idea how to solve this issue?
thanks,
Walter
But i need some help figuring something out, In the example i have downloaded from the ads company and which obviously runs in eclipse everything works fine, on the interstitial ads there's a "close" button on the top right side of the ad, the images that are automatically assigned by the sdk to the close button are in the res/drawable folder, when i port the jar file and xml files to use them in Basic4Android everything works fine but for the interstitial ads there's no "close button", i tried copying the two image files to the res/drawable folder in basic4android but i still get this error;
java.lang.NoSuchFieldException: tapit_interstitial_close_button_normal
at java.lang.ClassCache.findFieldByName(ClassCache.java:446)
at java.lang.Class.getField(Class.java:864)
at com.tapit.adview.AdInterstitialBaseView.getResourceIdByName(AdInterstitialBaseView.java:233)
at com.tapit.adview.AdInterstitialView.showInterstitialCloseButton(AdInterstitialView.java:39)
at com.tapit.adview.AdInterstitialView.getInterstitialView(AdInterstitialView.java:30)
at com.tapit.adview.AdActivity.onCreate(AdActivity.java:31)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1660)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1716)
at android.app.ActivityThread.access$1500(ActivityThread.java:124)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:968)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3806)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
No package identifier when getting value for resource number 0x00000000
android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.Resources.getValue(Resources.java:907)
at android.content.res.Resources.getDrawable(Resources.java:595)
at com.tapit.adview.AdInterstitialView.showInterstitialCloseButton(AdInterstitialView.java:39)
at com.tapit.adview.AdInterstitialView.getInterstitialView(AdInterstitialView.java:30)
at com.tapit.adview.AdActivity.onCreate(AdActivity.java:31)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1660)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1716)
at android.app.ActivityThread.access$1500(ActivityThread.java:124)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:968)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3806)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
I know the problem is that it doesn't find the interstitial_close_button_normal image, is there a way to add this either to the manifest file, to tell it where to get this image from, i also tried adding it to the R.java file like this
but it doesn't work either.public static final int interstitial_close_button_normal=0x7f020001;
does anyone here have any idea how to solve this issue?
thanks,
Walter