Skip to content

Instantly share code, notes, and snippets.

Roman Zavarnitsyn rom4ek

Block or report user

Report or block rom4ek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View balance_search_crash
09-12 09:34:23.899 5154-5154/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.runtastic.android.balance.lite, PID: 5154
java.lang.NullPointerException: Attempt to write to field 'java.lang.ref.WeakReference o.ト.ˊ' on a null object reference
at o.טּ.ˎ(:57041)
at o.טּ.ˋ(:64)
at o.nx$1.run(:90)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
@rom4ek
rom4ek / build.gradle
Created Jul 25, 2017
Stream + Retrolambda sample
View build.gradle
apply plugin: 'com.android.application'
apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'com.neenbedankt.android-apt'
android {
compileSdkVersion 26
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "rom4ek.com.sparktestapp"
minSdkVersion 14
View KeyActivity.java
public void russian(View v) {
/* page1.setVisibility(View.INVISIBLE);
page2.setVisibility(View.INVISIBLE);
page3.setVisibility(View.INVISIBLE);
page4.setVisibility(View.VISIBLE);*/
page1=null;
page2=null;
page3=null;
View FaceDetection
/*
* Copyright (C) The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
View PathView plays
package com.eftimoff.empty;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PathMeasure;
import android.graphics.RectF;
import android.os.Handler;
import android.util.AttributeSet;
View CurrentListRecyclerAdapter
public class CurrentListRecyclerAdapter extends RecyclerView.Adapter<CurrentListRecyclerAdapter.ViewHolder> {
protected ArrayList<Order> dataset;
private ViewHolder.ViewHolderClickListener mListener;
public CurrentListRecyclerAdapter(ViewHolder.ViewHolderClickListener listener) {
super();
mListener = listener;
dataset = new ArrayList<>();
}
View FavoritesFragment
package com.stylezappmen.android.fragments;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
View CustomToastInFragment
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View parent = inflater.inflate(R.layout.your_fragment_layout, container, false);
new LoadTask().execute();
return parent;
}
You can’t perform that action at this time.