This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void openCamera() { | |
if (mCamera == null) { | |
try { | |
mCamera = Camera.open(); | |
} catch (RuntimeException e) { | |
mCamera = null; | |
} | |
} | |
if (mCamera == null) { | |
MessageProxy.showError(this, R.string.msg_camera_invalid); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void openCamera() { | |
if (mCamera == null) { | |
try { | |
mCamera = Camera.open(); | |
} catch (RuntimeException e) { | |
mCamera = null; | |
} | |
} | |
if (mCamera == null) { | |
MessageProxy.showError(this, R.string.msg_camera_invalid); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.parkingwang.app.account.vehicle.takephoto; | |
import android.app.Activity; | |
import android.content.ComponentName; | |
import android.content.Intent; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.BitmapRegionDecoder; | |
import android.graphics.Matrix; | |
import android.graphics.Rect; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.Activity; | |
import android.content.Intent; | |
import android.graphics.ImageFormat; | |
import android.hardware.Camera; | |
import android.os.Bundle; | |
import android.support.annotation.Nullable; | |
import android.view.SurfaceHolder; | |
import android.view.SurfaceView; | |
import android.view.View; | |
import android.view.ViewGroup; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2015. Xi'an iRain IOT Technology Service CO., Ltd. All Rights Reserved. | |
*/ | |
package com.parkingwang.widget; | |
import android.content.Context; | |
import android.content.res.ColorStateList; | |
import android.content.res.TypedArray; | |
import android.graphics.Canvas; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.parkingwang.widget; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Canvas; | |
import android.graphics.Paint; | |
import android.util.AttributeSet; | |
import android.widget.LinearLayout; | |
import com.parkingwang.app.R; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 绑定Checkable控件的Layout. | |
*/ | |
public static class ForceableChoiceLayout extends DefaultChoiceView { | |
/** | |
* 是否强制设为选中状态 | |
*/ | |
private boolean mForceChecked; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install -y libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Subscription subscription = Observable.interval(0, 1, TimeUnit.SECONDS) | |
.take(seconds + 1) | |
.map(new Func1<Long, Long>() { | |
@Override | |
public Long call(Long past) { | |
return seconds - past - 1; | |
} | |
}) | |
.filter(new Func1<Long, Boolean>() { | |
@Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task syncJavadoc(type: Sync) { | |
from javadoc.destinationDir | |
into rootProject.file('docs') | |
} |
OlderNewer