Code Monkey home page Code Monkey logo

screenrecorder's Issues

能不能不唤醒activity

我想将这个功能做到悬浮窗中,但是每次都会唤醒应用的activity,我猜想可能是startActivityForResult在activity中调用的缘故。但是service又无法调用startActivityForResult函数。不知道有没有方案可以在service中录屏,或者不唤醒activity?

minSdkVersion error

Should update minSdkVersion to 21 in ScreenRecorder/recorder/build.gradle

...
    minSdkVersion 9
...

stop error

java.lang.RuntimeException: stop failed.
at android.media.MediaRecorder.stop(Native Method)
the saved mp4 can not play.

录屏代码太复杂了 有封装好的吗

录屏代码太复杂了 有封装好的吗
直接弄3个函数
一个start录屏
一个stop录屏
一个获取录屏结果 可以保存成文件 可以变成流媒体传给服务器
求大佬看看 谢谢谢谢🙏🙏🙏🙏🙏

java.lang.ArrayIndexOutOfBoundsException

Here will case ArrayIndexOutOfBoundsException in MainActivity

if (grantResults[0] != PackageManager.PERMISSION_GRANTED) {

exception


E/AndroidRuntime: FATAL EXCEPTION: main
                  Process: com.glgjing.recorder, PID: 12158
                  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.glgjing.recorder/com.glgjing.recorder.MainActivity}: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
                      at android.app.ActivityThread.-wrap12(ActivityThread.java)
                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
                      at android.os.Handler.dispatchMessage(Handler.java:102)
                      at android.os.Looper.loop(Looper.java:154)
                      at android.app.ActivityThread.main(ActivityThread.java:6077)
                      at java.lang.reflect.Method.invoke(Native Method)
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
                   Caused by: java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
                      at com.glgjing.recorder.MainActivity.onRequestPermissionsResult(MainActivity.java:87)
                      at android.app.Activity.requestPermissions(Activity.java:4116)
                      at android.support.v4.app.ActivityCompatApi23.requestPermissions(ActivityCompat23.java:32)
                      at android.support.v4.app.ActivityCompat.requestPermissions(ActivityCompat.java:316)
                      at com.glgjing.recorder.MainActivity.onCreate(MainActivity.java:59)
                      at android.app.Activity.performCreate(Activity.java:6664)
                      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)
                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707) 
                      at android.app.ActivityThread.-wrap12(ActivityThread.java) 
                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460) 
                      at android.os.Handler.dispatchMessage(Handler.java:102) 
                      at android.os.Looper.loop(Looper.java:154) 
                      at android.app.ActivityThread.main(ActivityThread.java:6077) 
                      at java.lang.reflect.Method.invoke(Native Method) 
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) 
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) 

老哥我想请教下你的强力监测app

获取应用大小,我在网上看8.0一下通过aidl 反射就可以获取到。 8.0向上需要授权检测别的应用运行情况。老哥你是怎么做啊?我看你并不需要授权这个步骤

部分机型SURFACE找不到异常

mediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE);
报错:
setVideoSource failed
机型:华为HRY-AL00a 安卓10.0.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.