Comments (5)
Hi,
Would you be able to create an empty project isolating the issue?
Most of the time it could be related to bad hardware or integration issue. Also make sure you have the latest Teads version (curently 4.2.4)
from teadssdk-android.
Hi @HugoGresse
I have created isolating project, and verification test looks so green. But i still have black screen with sound again. In other side, i have install TeadsSDK project then i run the app sample it shown video, but why my apps has different behavior.
this is my isolating code in same project
public class TestActivity extends AppCompatActivity {
private InReadAdView videoAds;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_test);
videoAds = findViewById(R.id.teadsAdView);
videoAds.setPid(Integer.valueOf(getString(R.string.ads_teads_read_page)));
videoAds.setListener(new TribunTeadsListener());
ViewGroup group = findViewById(R.id.adContainer);
videoAds.setAdContainerView(group);
videoAds.load(new AdSettings.Builder()
.userConsent("0", "0")
.pageUrl("http:\\/\\/www.tribunnews.com\\/seleb\\/2019\\/09\\/06\\/vicky-prasetyo-ketahuan-dm-instagram-tamara-bleszynski-tapi-tak-digubris-ini-reaksi-teuku-rassya")
.enableValidationMode()
.build());
}
}
and this is my layout test
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.tribunnews.app.TestActivity">
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="8dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/lorem_medium"
android:textSize="16dp" />
<FrameLayout
android:id="@+id/adContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<tv.teads.sdk.android.InReadAdView
android:id="@+id/teadsAdView"
android:layout_width="wrap_content"
android:layout_gravity="center"
android:layout_height="wrap_content"/>
</FrameLayout>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/lorem_medium"
android:textSize="16dp"/>
</LinearLayout>
</ScrollView>
</LinearLayout>
from teadssdk-android.
So your code sample indeed work. Can you make sure hardwareAccelerated
is enable (true
), either on the activity or on a superview? Could be linked to this.
from teadssdk-android.
it's work!, i enable hardwareAccelerated... thanks @HugoGresse
from teadssdk-android.
no problem, closing this ticket.
from teadssdk-android.
Related Issues (20)
- NullPointerException TeadsCrashController HOT 5
- Teads Ads Display just white space HOT 7
- Duplicate class a.a.a.a.a.a found in modules jetified-sdk-4.8.1-runtime.jar (tv.teads.sdk.android:sdk:4.8.1) HOT 3
- Video ad in WebView does not adjust position automatically HOT 3
- Remove android.support dependencies from teads Android project HOT 5
- How to pass InReadAdView to my Viewholder (TeadsViewholder)? HOT 2
- error: cannot find symbol import tv.teads.sdk.android.AdFailedReason; after updating the teads SDK HOT 1
- Je prends des nouvelles 🤗 HOT 2
- Is there custom mediation support? HOT 5
- About the equivalent of Teads ad types in other ad networks HOT 5
- Jetifier still not removed HOT 5
- Validation mode not working in 5.0.12 HOT 1
- internal crash related to some coroutines issues on version 5.0.13 HOT 2
- visibility 0 HOT 6
- video ad is not playing HOT 12
- TeadsAdapter in admobadapter does not implement CustomEvent HOT 2
- META-INF/sdk_prodRelease.kotlin_module
- teads SDK error on low OS version HOT 4
- InReadAdBaseListener error codes, descriptions and fail reasons HOT 3
- android:allowBackup removal HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teadssdk-android.