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
Post a Comment