am 844b1ed7: am f0c01122: simplify a bit the native-activity sample code