An android library to open custom camera and user can add text on display. This library is encouraged to use as little memory as possible.
- It's displaying server date time.
- Open camera in SurfaceCamera.
- Customize click button.
- Marshmallow code
Usage
-
Added code in your application.
-
implement module in application build file.
implementation project(':cameralib')
- Introduce activity in your appication manifest file .
- Start camera activity from your application.
public class ExampleMainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main_example);
findViewById(R.id.example_open_camera).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(ExampleMainActivity.this, CameraActivity.class));
}
});
}
}
- All permission handle by module. No need to handle permisssion.
License Copyright 2019 datanapps.