java - Android aviary converting to fragment -


how can convert code below can work in fragment.

@override protected void onresume() {     log.i( log_tag, "onresume" );     super.onresume();      if ( getintent() != null ) {         handleintent( getintent() );         setintent( new intent() );     } } 

i have tried this. doesn't worked.

public void onresume() {     log.i( log_tag, "onresume" );     super.onresume();      if ( getactivity().getintent() != null ) {         handleintent( getactivity().getintent() );         getactivity().setintent( new intent() );     } } 


Comments

Popular posts from this blog

c++ - OpenMP unpredictable overhead -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

javascript - Wordpress slider, not displayed 100% width -