I've used some Viewproperty animation in my application. Once it compile on android 3.0 tablet its working fine, if run on 3.0 emulator application crashes and its showing error on logcat.
Code:
ImageButton home = (ImageButton)findViewById(R.id.Home);
home.animate().setDuration(200);
smmslogo.animate().alpha(1);
Error:
java.lang.NullPointerException
at android.view.ViewPropertyAnimator.animatePropertyBy
can anyone help me?