altaf2892
altaf2892
`FaceDetector faceDetector = new FaceDetector(faceBoundsOverlay); cameraView.setFacing(lensFacing); cameraView.addFrameProcessor(new FrameProcessor() { @Override public void process(@NonNull Frame frame) { Size size=new Size(frame.getSize().getWidth(),frame.getSize().getHeight()); LensFacing lensFacing1=cameraView.getFacing()==Facing.BACK?LensFacing.BACK:LensFacing.FRONT; faceDetector.process(new husaynhakeem.io.facedetector.Frame( frame.getData(),frame.getRotationToUser(),size,frame.getFormat(),lensFacing1)); Log.e("FRAME", frame.getData().toString()); } });`
**crash in VERSION 7 and WORKING IN 8 OREO** > ` java.lang.IllegalArgumentException: View=android.widget.FrameLayout{e3fb200 V.E...C.. ......I. 0,0-210,210} not attached to window manager at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:473) at android.view.WindowManagerGlobal.updateViewLayout(WindowManagerGlobal.java:368) at android.view.WindowManagerImpl.updateViewLayout(WindowManagerImpl.java:99) at com.premnirmal.Magnet.Magnet$WindowManagerPerformer.onSpringUpdate(Magnet.java:666) at...
i want to change shape for PorterShapeImageView programatically? how do i do so?
` TextSticker sticker = new TextSticker(this); sticker.setDrawable(drawable); stickerView.addSticker(sticker);` **error log** ` Process: com.icanstudioz.photoeditor, PID: 27775 java.lang.NullPointerException: Attempt to invoke virtual method 'int android.text.StaticLayout.getHeight()' on a null object reference at com.xiaopo.flying.sticker.TextSticker.draw(TextSticker.java:99)...
it would be more cool if u add feature to positioning the toast..
i want to let user to download in background with notification current code takes the user to the app and over there asks to download or share link ..
how to detect which menu item is clicked? any method ?