Authordattatray.nande

Use of basic Authentication for post URL

U

To mark all url in application authenticate, use of basic authentication could good option. In Below example I used Username and Password to generate Authentication header .   String authentication = editusername.getText().toString().trim()+”:”+editpassword.getText().toString().trim(); String authHeader =Base64.encodeToString(authentication.getBytes(), Base64.NO_WRAP);   Use...

Rotate the Activity.

R

To rotate Activity around it’s X-axis use Activity Switcher class. For Animation Out: ActivitySwitcher.animationOut(findViewById(R.id.rootLayoutIdOfActivity), getWindowManager(), new ActivitySwitcher.AnimationFinishedListener() { @Override public void onAnimationFinished() { startActivity(intent); } });   For Animation In: ActivitySwitcher.animationIn(findViewById(R.id...

Write signature on device screen

W

To write signature in app ….use this gesture code.   Write this gesture in xml: <android.gesture.GestureOverlayView android:id=”@+id/signaturePad”           android:layout_width=”match_parent”           android:layout_height=”0dp”           android:layout_weight=”5″           android:background=”#FFFFFF”         ...

Category