TransWikia.com

Iniciar un fragment al pulsar una notificación

Stack Overflow en español Asked by Lukaman on September 3, 2020

Tengo este método, pero es para pasar a una activity y con un fragment no funciona.

 private void setPendingIntent(){

    Fragment fragment=new ListaReservasFragment();

    getSupportFragmentManager().beginTransaction().replace(R.id.reserva,fragment);

    if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN) {
        TaskStackBuilder taskStackBuilder=TaskStackBuilder.create(this);
    }
}



          

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP