我真的被困在如何编程这个.如何Android Canvas用半径绘制圆圈并指向边缘?
设计这个的最佳方法是什么?
A和B正在通电话.在通话期间,A按下一个按钮,该按钮从资源中提取音频并通过电话呼叫播放给B.
这可能使用Android框架吗?目标是让通话另一端的人听到音频.
如果不可能,它是硬件限制还是Android框架的限制?
我正在使用exifInterface进行照片旋转问题代码如下:面对从相机捕获的图像方向问题.
Bitmap b = BitmapFactory.decodeFile(imagePath);
Run Code Online (Sandbox Code Playgroud)
int width = b.getWidth();
int height = b.getHeight();
int newWidth = 150;
int newHeight = 150;
float scaleWidth = ((float) newWidth) / width;
float scaleHeight = ((float) newHeight) / height;
Matrix matrix = new Matrix();
matrix.postScale(scaleWidth, scaleHeight);
// Bitmap resizedBitmap = Bitmap.createBitmap(b, 0, 0, width, height, matrix, true);
// resizedBitmap.compress(Bitmap.CompressFormat.JPEG, 70, out);
Run Code Online (Sandbox Code Playgroud)
ExifInterface exif = new ExifInterface(imagePath);
String orientation = exif.getAttribute(ExifInterface.TAG_ORIENTATION);
if (orientation.equals(ExifInterface.ORIENTATION_NORMAL)) {
// Do nothing. The original image is fine. …Run Code Online (Sandbox Code Playgroud)