IBM Worklight v5.0.5 > Develop IBM Worklight applications > Development guidelines for mobile environments > Web and native code in iPhone, iPad, and Android

Animate the transitions from and to a Java page


// Transition animation from the web view to the native page 

@Override
public void onCreate(Bundle savedInstanceState) 
{
    super.onCreate(savedInstanceState);
    overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
}


// Transition animation from the native page to the web view 

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) 
{
    //your code goes here.... 
    finish();
    overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
}


Parent Web and native code in iPhone, iPad, and Android


+

Search Tips   |   Advanced Search