Update AppDelegate.cpp

yan xin merge AppDelegate.cpp