Posts

Showing posts from May, 2016

Android: Create Android application video from command line

adb shell screenrecord --size 1280x720 /sdcard/example.mp4

Android: On Configuration change or Orientation change

savedInstanceState will be null when the activity is created. savedInstanceState will be not null when the activity is re created check condition on the activity onCreate. if ( null == savedInstanceState) { // Add fragment to the activity }

React-Native: Android React Native Setup

# Install Adnroid SDK # Install Node Js # Install react # run the following commands npm install -g react-native-cli react-native init AwesomeProject # To run with local server, run the following commands under your react-native project root directory react-native start  /dev/null 2>&1 & adb reverse tcp:8081 tcp:8081