Well, I don’t know about you, but I use mine for gaming, watching videos, reading, chatting and browsing endlessly through the news feed/timeline of social networking sites. It does annoy me when the entire screen rotates when I’m in the midst of a multi-player gaming session or when I’m watching a video on YouTube.

Step 1: Download the ‘Tasker‘ app first from Google Play Store. Step 2: Now, open the Tasker app and tap on the ‘+‘ button provided at the bottom in the ‘Profiles‘ tab. I chose Messenger, Play Music, Quora, Relay and Yahoo Mail to name a few. Step 3: Now press the back button of your device once after you have selected the apps.

Make sure the value of ‘Set‘ category is ‘Off‘ and then press the back button of your device twice. Step 4: Now long press on the ‘Disable Auto Rotate‘ task.

Bug #1556496 “Telegram doesn't rotate” : Bugs : Telegram app

Bug #1556496 “Telegram doesn't rotate” : Bugs : Telegram app

Repeat #2 until tablet is back to original orientation. With front facing camera on 'west' (left) side of tablet (tablet in landscape mode), top of Telegram screen appears on left edge.

c. With front facing camera on 'east' (right) side of tablet (landscape mode), top of Telegram screen appears on right edge. d. With front facing camera on 'south' (bottom) side of tablet (portrait mode), top of Telegram screen appears at bottom of tablet.

In landscape mode, Telegram should appear in sidestage by default.

News Archives |

News Archives |

Instagram is bringing another element that permits clients to add a mediator to a live video.

android

android

bitrate : 921600); outputFormat.setInteger(MediaFormat.KEY_FRAME_RATE, 25); outputFormat.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, 10); if (Build.VERSION.SDK_INT < 18) { outputFormat.setInteger("stride", resultWidth + 32); outputFormat.setInteger("slice-height", resultHeight); } encoder = MediaCodec.createEncoderByType(MIME_TYPE); encoder.configure(outputFormat, null, null, MediaCodec.CONFIGURE_FLAG_ENCODE); if (Build.VERSION.SDK_INT >= 18) { inputSurface = new InputSurface(encoder.createInputSurface()); inputSurface.makeCurrent(); } encoder.start(); decoder = MediaCodec.createDecoderByType(inputFormat.getString(MediaFormat.KEY_MIME)); if (Build.VERSION.SDK_INT >= 18) { outputSurface = new OutputSurface(); } else { outputSurface = new OutputSurface(resultWidth, resultHeight, rotateRender); } decoder.configure(inputFormat, outputSurface.getSurface(), null, 0); decoder.start(); final int TIMEOUT_USEC = 2500; ByteBuffer[] decoderInputBuffers = null; ByteBuffer[] encoderOutputBuffers = null; ByteBuffer[] encoderInputBuffers = null; if (Build.VERSION.SDK_INT < 21) { decoderInputBuffers = decoder.getInputBuffers(); encoderOutputBuffers = encoder.getOutputBuffers(); if (Build.VERSION.SDK_INT < 18) { encoderInputBuffers = encoder.getInputBuffers(); } } while (!outputDone) { if (!inputDone) { boolean eof = false; int index = extractor.getSampleTrackIndex(); if (index == videoIndex) { int inputBufIndex = decoder.dequeueInputBuffer(TIMEOUT_USEC); if (inputBufIndex >= 0) { ByteBuffer inputBuf; if (Build.VERSION.SDK_INT < 21) { inputBuf = decoderInputBuffers[inputBufIndex]; } else { inputBuf = decoder.getInputBuffer(inputBufIndex); } int chunkSize = extractor.readSampleData(inputBuf, 0); if (chunkSize < 0) { decoder.queueInputBuffer(inputBufIndex, 0, 0, 0L, MediaCodec.BUFFER_FLAG_END_OF_STREAM); inputDone = true; } else { decoder.queueInputBuffer(inputBufIndex, 0, chunkSize, extractor.getSampleTime(), 0); extractor.advance(); } } } else if (index == -1) { eof = true; } if (eof) { int inputBufIndex = decoder.dequeueInputBuffer(TIMEOUT_USEC); if (inputBufIndex >= 0) { decoder.queueInputBuffer(inputBufIndex, 0, 0, 0L, MediaCodec.BUFFER_FLAG_END_OF_STREAM); inputDone = true; } } } boolean decoderOutputAvailable = !decoderDone; boolean encoderOutputAvailable = true; while (decoderOutputAvailable || encoderOutputAvailable) { int encoderStatus = encoder.dequeueOutputBuffer(info, TIMEOUT_USEC); if (encoderStatus == MediaCodec.INFO_TRY_AGAIN_LATER) { encoderOutputAvailable = false; } else if (encoderStatus == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) { if (Build.VERSION.SDK_INT < 21) { encoderOutputBuffers = encoder.getOutputBuffers(); } } else if (encoderStatus == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) { MediaFormat newFormat = encoder.getOutputFormat(); if (videoTrackIndex == -5) { videoTrackIndex = mediaMuxer.addTrack(newFormat, false); } } else if (encoderStatus < 0) { throw new RuntimeException("unexpected result from encoder.dequeueOutputBuffer: " + encoderStatus); } else { ByteBuffer encodedData; if (Build.VERSION.SDK_INT < 21) { encodedData = encoderOutputBuffers[encoderStatus]; } else { encodedData = encoder.getOutputBuffer(encoderStatus); } if (encodedData == null) { throw new RuntimeException("encoderOutputBuffer " + encoderStatus + " was null"); } if (info.size > 1) { if ((info.flags & MediaCodec.BUFFER_FLAG_CODEC_CONFIG) == 0) { if (mediaMuxer.writeSampleData(videoTrackIndex, encodedData, info, false)) { didWriteData(false, false); } } else if (videoTrackIndex == -5) { byte[] csd = new byte[info.size]; encodedData.limit(info.offset + info.size); encodedData.position(info.offset); encodedData.get(csd); ByteBuffer sps = null; ByteBuffer pps = null; for (int a = info.size - 1; a >= 0; a--) { if (a > 3) { if (csd[a] == 1 && csd[a - 1] == 0 && csd[a - 2] == 0 && csd[a - 3] == 0) { sps = ByteBuffer.allocate(a - 3); pps = ByteBuffer.allocate(info.size - (a - 3)); sps.put(csd, 0, a - 3).position(0); pps.put(csd, a - 3, info.size - (a - 3)).position(0); break; } } else { break; } } MediaFormat newFormat = MediaFormat.createVideoFormat(MIME_TYPE, resultWidth, resultHeight); if (sps != null && pps != null) { newFormat.setByteBuffer("csd-0", sps); newFormat.setByteBuffer("csd-1", pps); } videoTrackIndex = mediaMuxer.addTrack(newFormat, false); } } outputDone = (info.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0; encoder.releaseOutputBuffer(encoderStatus, false); } if (encoderStatus != MediaCodec.INFO_TRY_AGAIN_LATER) { continue; } if (!decoderDone) { int decoderStatus = decoder.dequeueOutputBuffer(info, TIMEOUT_USEC); if (decoderStatus == MediaCodec.INFO_TRY_AGAIN_LATER) { decoderOutputAvailable = false; } else if (decoderStatus == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED) { } else if (decoderStatus == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED) { MediaFormat newFormat = decoder.getOutputFormat(); } else if (decoderStatus < 0) { throw new RuntimeException("unexpected result from decoder.dequeueOutputBuffer: " + decoderStatus); } else { boolean doRender; if (Build.VERSION.SDK_INT >= 18) { doRender = info.size != 0; } else { doRender = info.size != 0 || info.presentationTimeUs != 0; } if (endTime > 0 && info.presentationTimeUs >= endTime) { inputDone = true; decoderDone = true; doRender = false; info.flags |= MediaCodec.BUFFER_FLAG_END_OF_STREAM; } if (startTime > 0 && videoTime == -1) { if (info.presentationTimeUs < startTime) { doRender = false; } else { videoTime = info.presentationTimeUs; } } decoder.releaseOutputBuffer(decoderStatus, doRender); if (doRender) { boolean errorWait = false; try { outputSurface.awaitNewImage(); } catch (Exception e) { errorWait = true; } if (!errorWait) { if (Build.VERSION.SDK_INT >= 18) { outputSurface.drawImage(false); inputSurface.setPresentationTime(info.presentationTimeUs * 1000); inputSurface.swapBuffers(); } else { int inputBufIndex = encoder.dequeueInputBuffer(TIMEOUT_USEC); if (inputBufIndex >= 0) { outputSurface.drawImage(true); ByteBuffer rgbBuf = outputSurface.getFrame(); ByteBuffer yuvBuf = encoderInputBuffers[inputBufIndex]; yuvBuf.clear(); convertVideoFrame(rgbBuf, yuvBuf, colorFormat, resultWidth, resultHeight, padding, swapUV); encoder.queueInputBuffer(inputBufIndex, 0, bufferSize, info.presentationTimeUs, 0); } else { } } } } if ((info.flags & MediaCodec.BUFFER_FLAG_END_OF_STREAM) != 0) { decoderOutputAvailable = false; if (Build.VERSION.SDK_INT >= 18) { encoder.signalEndOfInputStream(); } else { int inputBufIndex = encoder.dequeueInputBuffer(TIMEOUT_USEC); if (inputBufIndex >= 0) { encoder.queueInputBuffer(inputBufIndex, 0, 1, info.presentationTimeUs, MediaCodec.BUFFER_FLAG_END_OF_STREAM); } } } } } } } if (videoTime != -1) { videoStartTime = videoTime; } } catch (Exception e) { error = true; } extractor.unselectTrack(videoIndex); if (outputSurface != null) { outputSurface.release(); } if (inputSurface != null) { inputSurface.release(); } if (decoder != null) { decoder.stop(); decoder.release(); } if (encoder != null) { encoder.stop(); encoder.release(); } } } else { long videoTime = readAndWriteTrack(extractor, mediaMuxer, info, startTime, endTime, cacheFile, false); if (videoTime != -1) { videoStartTime = videoTime; } } if (!error) { readAndWriteTrack(extractor, mediaMuxer, info, videoStartTime, endTime, cacheFile, true); } } catch (Exception e) { error = true; e.printStackTrace(); } finally { if (extractor != null) { extractor.release(); } if (mediaMuxer != null) { try { mediaMuxer.finishMovie(false); } catch (Exception e) { } } } } else { didWriteData(true, true); return null; } didWriteData(true, error); return cacheFile; }.

7 Ways to Fix Android Screen Auto Rotate Not Working Issue

7 Ways to Fix Android Screen Auto Rotate Not Working Issue

Read on to know more about how to fix the Android screen auto rotate not working issue on your phone. Also, read | 3 Easy Ways To Disable Touch Screen on Android and iPhone.

Following are some issues that can stop your screen from rotating automatically when you turn your phone horizontally or vertically:. Most of the time a simple restart can fix all the issues your phone is facing.

This calibrates the accelerometer and G-sensor and makes their settings to default and this may help when you rotate the screen. In order to solve this, you can uninstall the app for the time and check if your Android’s auto-rotate feature is working now. Software updates mostly include bug fixes for all such minor issues of smartphones.

If nothing from the above-mentioned methods works, your phone’s hardware could be faulty, and it will need repairing by some professional.

Unable to rotate the screen even though the Auto-rotate feature is

After the Auto-rotate feature is enabled, the screen still cannot be rotated. If the issue persists, back up your data and take your device and proof of purchase to an authorized Huawei Customer Service Center for assistance.

Rotate the screen on your iPhone or iPod touch

Rotate the screen on your iPhone or iPod touch

If the screen still doesn't rotate, try a different app — like Safari or Messages — which are known to work in landscape mode.

Related Posts

Leave a reply