Skip to content

Instantly share code, notes, and snippets.

View mjurkus's full-sized avatar

Martynas Jurkus mjurkus

View GitHub Profile

Android Homework Assignment

Duration

  • Time is not constrained, feel free to solve it whenever you're able. Just don't forget to communicate with us if you couldn't find a free evening for a couple of weeks.

Task

  • Develop an Android application which should display information from Swapi API

Requirements

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
diff --git a/application/build.gradle b/application/build.gradle
index e8310d8..b1fd129 100644
--- a/application/build.gradle
+++ b/application/build.gradle
@@ -1,5 +1,5 @@
buildscript {
- ext.kotlin_version = '1.0.0-beta-3595'
+ ext.kotlin_version = '1.0.0-beta-4584'
repositories {
jcenter();
@mjurkus
mjurkus / AbstractCameraFragment
Created April 27, 2015 11:15
Abstract camera fragment implementation using focus modes
public abstract class AbstractCameraFragment extends MDFragment implements UnexpectedTerminationHelper.OnCrashListener, SurfaceHolder.Callback, Camera.AutoFocusCallback {
protected Camera camera;
private boolean previewRunning, cameraReleased, focusAreaSupported, meteringAreaSupported;
private UnexpectedTerminationHelper terminationHelper;
private int focusAreaSize;
private FocusSound focusSound;
private Matrix matrix;
protected ResultListener resultListener;