how to use startActivityForResult in Nativescript
问题 I use a extended activity in my old project, and I want to use startActivityForResult() in the public onCreate() function. However I don't know how to solve the error System.err: Caused by: java.lang.Exception: Failed resolving method startActivityForResult on class android.support.v4.app.FragmentActivity the code was ok. activity.startActivityForResult( intent, this.MY_PERMISSION_REQUEST ); the above code was in the public onCreate() function. but when I upgraded all the npm packges,