android - second Activity to drawer fragment -


second activity drawer fragment drawer extend activity

enter image description here

i have issue..in navigate activity2 fragment of activity1

i have try code..

  fragment3 f3 = new fragment3();     f3.setarguments(getintent().getextras());      getfragmentmanager().begintransaction()     .add(android.r.id.content, f3).commit(); 

it work fragment3 not show in drawer....it overwrite on activity2

i want fragment3 in drawer after navigate....

try ,

  1. navigate activity1 activity 2

    intent intent = new intent(activity1.this, activity2.class); startactivity(intent ); 
  2. load fragment 1 on activity2's container

    fragment1 f1 = new fragment1(); f1.setarguments(getintent().getextras()); getfragmentmanager().begintransaction()     .add(android.r.id.content, f1).commit(); 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -