code: public static void startActivity  ( Context context , String chatId ) { Intent intent = new Intent ( context , SendGroupFile . class ) ; intent . putExtra ( EXTRA_CHAT_ID , chatId ) ; context . startActivity ( intent ) ; }