import "android.app.*"
import "android.content.Context"
am = activity:getSystemService(Context.ACTIVITY_SERVICE)
runningActivity=am:getRunningTasks(1):get(0).topActivity:getClassName()
tw(runningActivity)
--[[
权限
<uses-permission android:name="android.permission.GET_TASKS" />
--请标明"摘自@枭燚的源码"请尊重他人智力劳动成果,谢谢
--]]