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

Prolog - Listing -

orchardcms - change base url in local copy in Orchard CMS -

linear regression - Trying to get confidence/prediction intervals with `predict.lm` in R, but I keep getting an error regarding my dichotomous variable -