surfaceview Questions
1
In my app I'm using several surface views (for displaying videos and google maps), displayed on the screen in the same time.
Now I have to add the possibility to change the configuration (position...
Euthanasia asked 22/5, 2013 at 12:57
2
Solved
I'm trying to create a Camera2 CameraCaptureSession that is capable of four outputs:
On-screen preview (SurfaceView, up to 1080p)
Photo capture (ImageReader, up to 8k photos)
Video Capture (MediaR...
Rebellious asked 16/8, 2023 at 14:0
3
Solved
I have a MediaPlayer in a Fragment which retains its instance on configuration changes. The player is playing a video loaded from my assets directory. I have the scenario set up with the goal of re...
Aldin asked 1/10, 2013 at 0:46
3
Solved
I'm building video player with android media player object. i'm able to hear the audio but the video does not appear on surfaceView. here is my code
public class PlayerActivity extends Activity i...
Paramagnet asked 22/5, 2013 at 20:0
23
Solved
<ImageButton android:id="@+id/previous"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/media_skip_backward"
android:background="@drawable/transpa...
Bots asked 4/8, 2010 at 5:15
15
Solved
I've been working on making my custom camera activity on Android, but when rotating the camera, the aspect ratio of the surface view gets messed up.
In my oncreate for the activity, I set the fram...
Wow asked 24/10, 2013 at 21:46
0
Is there a good way to draw standard Android View objects on top of a GLSurfaceView and synchronize the movement between the two layers?
My layout looks like
<FrameLayout>
<RelativeLayout...
Pierpont asked 20/1, 2023 at 14:45
2
Solved
I want to record video of whatever happens on surface.
I'm playing video on surface and showing camera preview over it. I want to record both in one video and export as .mp4. what should I do for i...
Alunite asked 16/12, 2021 at 12:28
0
I am developing a 2D game for mobile using Unity.
I am getting the following error on devices running Android 12 only. The project has target API 31. Previous Android versions are not getting this ...
Marble asked 18/10, 2022 at 15:31
7
Solved
My xml file:
<SurfaceView
android:id="@+id/surfaceView"
android:layout_marginTop="50dp"
android:layout_width="fill_parent"
android:layout_height="300dp" />
My function to setDisplay:
...
Offer asked 24/4, 2013 at 14:41
2
Solved
Recently I studied webrtc in android.
I wanna click SurfaceView A to make it fullscreen and another SurfaceView B becomes small, or maybe click B. But I found it is hard to change the z-order of tw...
Adermin asked 23/5, 2016 at 7:55
2
Solved
I'm creating a screen recorder app using the MediaProjection API. In my app, I'm showing the stop button as a small overlay window. I've kept this view as secure so that it doesn't come up in the f...
Iterative asked 26/10, 2016 at 6:32
2
Context
I'm using the Android firebase-ml-vision to scan barcodes using SurfaceView with continuous ByteBuffer of pictures frames. I used the ML kit quickstart project as a starting point and it w...
Marlinemarlinespike asked 4/7, 2018 at 17:10
21
Solved
In order to make a simple game, I used a template that draws a canvas with bitmaps like this:
private void doDraw(Canvas canvas) {
for (int i=0;i<8;i++)
for (int j=0;j<9;j++)
for (int k=0...
Bandit asked 20/4, 2011 at 11:19
6
Solved
I've been studying Android especially View system.
I have a question differences between them but there is no documents or references in my mother language. So I want to know from you guys.
Vinnievinnitsa asked 4/6, 2013 at 11:40
4
Solved
I'm trying to create a 2D game engine for an Android app. I've followed this tutorial, which works fine for creating a full screen display, but I don't want that. I want to make my view take the to...
Cari asked 7/8, 2012 at 20:6
4
Solved
I would like to take a picture without any preview. I used this code but I'm getting an error:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentVi...
Pul asked 29/5, 2012 at 13:16
1
How can i implement counterpart of SurfaceView used with another thread to draw and update in a specific interval in Jetpack Compose?
And with coroutines i use it like this
abstract class Coroutine...
Nationalize asked 30/7, 2021 at 12:57
4
I'm implementing a fairly standard app with the Android sdk that involves drawing using the SurfaceView, SurfaceHolder, Callback setup.
In my main thread (UI thread) I have no drawing or handling ...
Nickolenicks asked 29/9, 2010 at 2:10
12
Solved
I am getting this error. I tried many solutions but I coudn't solve this. Help me! I need to add the surface view and the button to the activity using fragments.
CamActivity.java:
public class CamA...
Fireball asked 18/4, 2014 at 8:2
4
I'm afraid to already have the unfortunate answer to this question but just in case... I'm using a SurfaceView to do some image processing with bitmaps (lights and colors modifications) and I would...
Cacique asked 20/1, 2011 at 2:15
3
Solved
In my Android application, I use a SurfaceView to draw things. It has been working fine on thousands of devices -- except that now users started reporting ANRs on the following devices:
LG G4
A...
Tuition asked 16/12, 2015 at 7:11
5
Solved
I am attempting to Take a Screenshot of my Game through code and Share it through an Intent. I able to do of those things, however the screenshot always appears black. Here is the Code Related to S...
Grubbs asked 7/1, 2015 at 10:41
2
I'm successfully able to pause the video by calling
surfaceViewRenderer.pauseVideo();
But I'm not able to resume it. Any help will be useful. There's no function as start or resume.
Pulpit asked 13/5, 2020 at 19:35
4
I have a SurfaceView. I just draw on it manually from an other Thread.
It runs nicely. But after 10-20 minutes of running in average I get this exception:
01-14 08:51:25.000 3740-3740/com.myPacka...
Stormie asked 19/1, 2015 at 8:16
1 Next >
© 2022 - 2024 — McMap. All rights reserved.