Git Product home page Git Product logo

Comments (5)

HugoGresse avatar HugoGresse commented on June 3, 2024

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.

superdiazzz avatar superdiazzz commented on June 3, 2024

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.
2019-09-06 09_41_00-Window

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.

HugoGresse avatar HugoGresse commented on June 3, 2024

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.

superdiazzz avatar superdiazzz commented on June 3, 2024

it's work!, i enable hardwareAccelerated... thanks @HugoGresse

from teadssdk-android.

HugoGresse avatar HugoGresse commented on June 3, 2024

no problem, closing this ticket.

from teadssdk-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.