This file contains 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
2018-10-18 12:40:50.546 28076-28076/app.spryfit.kiipsample I/zygote64: Rejecting re-init on previously-failed class java.lang.Class<uJ>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/TracingController; | |
2018-10-18 12:40:50.546 28076-28076/app.spryfit.kiipsample I/zygote64: at java.lang.Class java.lang.Class.classForName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:-2) | |
2018-10-18 12:40:50.546 28076-28076/app.spryfit.kiipsample I/zygote64: at java.lang.Class java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:453) | |
2018-10-18 12:40:50.546 28076-28076/app.spryfit.kiipsample I/zygote64: at java.lang.Class android.webkit.WebViewFactory.getWebViewProviderClass(java.lang.ClassLoader) (WebViewFactory.java:150) | |
2018-10-18 12:40:50.546 28076-28076/app.spryfit.kiipsample I/zygote64: at java.lang.Class android.webkit.WebViewFactory.getProviderClass() (WebViewFactory.java:417) | |
2018-10-18 12:40:50.546 28076-28076/app.spryfit.kiipsample |
This file contains 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
public class CircularStack<T> { | |
private LruCache<Integer, T> valueHistory; | |
private int bottom; | |
private int top; | |
public CircularStack(int maxSize) { | |
valueHistory = new LruCache<>(maxSize + 1); | |
bottom = 0; | |
top = 0; | |
} |
This file contains 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
maven { url "https://jitpack.io" } | |
implementation 'com.github.framgia:android-emulator-detector:1.4.0' | |
<uses-permission android:name="android.permission.READ_PHONE_STATE"/> | |
<uses-permission android:name="android.permission.INTERNET"/> | |
EmulatorDetector.with(this) | |
.setCheckTelephony(true) | |
.detect { |
This file contains 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
set gdefault | |
set ignorecase | |
set visualbell | |
set hlsearch | |
set surround | |
nnoremap re :source ~/.ideavimrc<CR> | |
nnoremap ss :action Android.SyncProject<CR> | |
nnoremap rr :action Run<CR> | |
nnoremap cc :action CleanGradleProject<CR> |
This file contains 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.content.Context; | |
import android.graphics.Color; | |
import android.graphics.Typeface; | |
import android.text.SpannableString; | |
import android.text.Spanned; | |
import android.text.TextPaint; | |
import android.text.method.LinkMovementMethod; | |
import android.text.style.CharacterStyle; | |
import android.text.style.ClickableSpan; | |
import android.util.AttributeSet; |
This file contains 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 java.util.Random; | |
/** | |
* Created by sangc on 2016-02-09. | |
*/ | |
public class Rand { | |
public static void main(String[] args) { | |
for (int i = 0; i < 100; i++) { | |
getRandom(10); | |
} |
This file contains 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
C:\OpenSource\FishBun\FishBun\src\main\java\com\sangcomz\fishbun\adapter\AlbumListAdapter.java:6: error: package android.support.v7.widget does not exist | |
import android.support.v7.widget.RecyclerView; | |
^ | |
C:\OpenSource\FishBun\FishBun\src\main\java\com\sangcomz\fishbun\adapter\AlbumListAdapter.java:14: error: package com.bumptech.glide does not exist | |
import com.bumptech.glide.Glide; | |
^ | |
C:\OpenSource\FishBun\FishBun\src\main\java\com\sangcomz\fishbun\adapter\AlbumListAdapter.java:15: error: cannot find symbol | |
import com.sangcomz.fishbun.R; | |
^ | |
symbol: class R |
This file contains 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
protected void onActivityResult(int requestCode, int resultCode, | |
Intent imageData) { | |
super.onActivityResult(requestCode, resultCode, imageData); | |
switch (requestCode) { | |
case Define.ALBUM_REQUEST_CODE: | |
if (resultCode == RESULT_OK) { | |
path = imageData.getStringArrayListExtra(Define.INTENT_PATH); | |
mainAdapter.changePath(path); | |
break; |
This file contains 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
Intent intent = new Intent(getApplicationContext(), SplashActivity.class); | |
ComponentName cn = intent.getComponent(); | |
Intent mainIntent = IntentCompat.makeRestartActivityTask(cn);startActivity(mainIntent); |