Skip to content

Instantly share code, notes, and snippets.

View btow's full-sized avatar

Vladimir Bobkov btow

View GitHub Profile
package com.example.samsung.gps_coordinate_determiner;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static junit.framework.Assert.assertEquals;
"C:\Program Files\Android\Android Studio\jre\bin\java" -Didea.launcher.port=7532 "-Didea.launcher.bin.path=C:\Program Files\Android\Android Studio\bin" -Didea.junit.sm_runner -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Android\Android Studio\lib\idea_rt.jar;C:\Program Files\Android\Android Studio\plugins\junit\lib\junit-rt.jar;C:\Users\samsung\AppData\Local\Android\Sdk\platforms\android-25\data\res;D:\Users\samsung\AndroidStudioProjects\MyProjects\QIWI-Users-Balance\app\build\intermediates\classes\test\debug;D:\Users\samsung\AndroidStudioProjects\MyProjects\QIWI-Users-Balance\app\build\intermediates\classes\debug;C:\Users\samsung\.gradle\caches\modules-2\files-2.1\org.robolectric\robolectric-utils\3.1-rc1\ce5020a3fa4b55faaedc97c1274cafaa6619d9c3\robolectric-utils-3.1-rc1.jar;C:\Users\samsung\.gradle\caches\modules-2\files-2.1\org.hamcrest\hamcrest-library\1.3\4785a3c21320980282f9f33d0d1264a69040538f\hamcrest-library-1.3.jar;C:\Users\samsung\.gradle\caches\modules-2\files-2.1\org.ow2.asm\asm-commons\5.0
@btow
btow / ControllerDB
Created August 15, 2017 11:13
java.lang.ClassCastException: com.example.service_library.model.ApplicationControllerDB cannot be cast to com.example.module_00_lib.model.ControllerDB
public class ControllerDB extends ApplicationControllerDB implements InterfaceControllerDB<JsonQiwisUsers> {
//......
}
@btow
btow / ListQiwiUsersBalancesAdapter.java
Created August 18, 2017 11:52
ErrorReport ListQiwiUsersBalancesAdapter
package com.example.module_00_lib.model;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.example.module_00_lib.R;
@btow
btow / Stack Trace
Last active June 28, 2018 13:58
Retrofit 2: com.sun.jdi.InternalException : Unexpected JDWP Error: 103
09-07 07:48:13.971 11488-11513/com.example.users_interface E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
Process: com.example.users_interface, PID: 11488
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:318)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
@btow
btow / KeyboardsController.java
Created July 6, 2018 07:29
The class for controll of a keyboard
import android.app.Activity;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import java.util.Objects;
@InjectViewState
class Frag5_Presenter : MvpPresenter<Frag5_View>() {
var mData = Any()
private var checkResult: Boolean = false
val SERVERS_ADDRESS = 1
val DEVICES_ID = 2
private val MODE_SAVE_SETTINGS: Boolean = true
private val MODE_CLOSE_SETTINGS: Boolean = false