Skip to content

Instantly share code, notes, and snippets.

SupportMenuInflater W Ignoring attribute 'actionProviderClass'. Action view already specified.
W Cannot instantiate class: android.support.v7.app.MediaRouteButton
W java.lang.ClassNotFoundException: Didn't find class "android.support.v7.app.MediaRouteButton" on path: /system/framework/com.google.android.maps.jar:/data/app/com.google.android.
apps.plus-1.apk
W at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
W at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
W at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
W at lk.a(PG:480)
W at lk.a(PG:441)
W at li.a(PG:196)
apply plugin: 'android'
repositories {
jcenter()
mavenCentral()
maven {
name 'maven.aviary.com'
url uri("http://maven.aviary.com/repo/release")
}
}
@skyisle
skyisle / gist:97d9e6fa607c99010430
Created March 13, 2015 02:47
junit test + retrolambda build error
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:compileDebugNdk UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:generateDebugBuildConfig
:app:generateDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:processDebugJavaRes UP-TO-DATE
:app:validateDebugSigning
@skyisle
skyisle / install-support-future.sh
Last active August 29, 2015 14:19
Install android support library snapshot to local repository
#!/bin/bash
# Fix the CircleCI path
export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH"
DEPS="$ANDROID_HOME/installed-support-furture"
if [ ! -e $DEPS ]; then
echo y | android update sdk -u -a -t android-4 &&
echo y | android update sdk -u -a -t android-5 &&
#1 - restore working copy of /sd-ext partition from backup
~ # dd if=/sdcard/mmc-good.img of=/dev/block/mmcblk0p2 bs=4096
125000+0 records in
125000+0 records out
512000000 bytes (488.3MB) copied, 109.406085 seconds, 4.5MB/s
#2 - check tune2fs output
~ # tune2fs -l /dev/block/mmcblk0p2
@skyisle
skyisle / gist:1787141
Created February 10, 2012 06:18
Copy font info
#!/usr/bin/python
import sys
import fontforge
if len(sys.argv) < 3:
print("Usage: %s <from> <to>" % sys.argv[0])
sys.exit(1)
fromfile = sys.argv[1]
@skyisle
skyisle / gist:3870191
Created October 11, 2012 04:37
Force to use overflow menu
try {
// force to use overflow menu
ViewConfiguration config = ViewConfiguration.get(this);
Field menuKeyField = ViewConfiguration.class
.getDeclaredField("sHasPermanentMenuKey");
if (menuKeyField != null) {
menuKeyField.setAccessible(true);
menuKeyField.setBoolean(config, false);
}
} catch (Exception ex) {
@skyisle
skyisle / gist:4083319
Created November 16, 2012 02:14
getSecureRawKey
static byte[] getSecureRawKey(String seed) {
/*
* check http://www.motorola.com/sites/motodev/library/using_aes_in_android.html
* for detail information
*/
char[] humanPassphrase = seed.toCharArray();
byte[] salt = {
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xA, 0xB, 0xC, 0xD, 0xE, 0xF
}; // must save this!
final int HASH_ITERATIONS = 10000;
@skyisle
skyisle / gist:4522471
Last active December 11, 2015 01:19
LG-F180K (F180K20b) logcat dump.
555 WifiServiceExt V checkPollTimer Cnt= 0 rssi =-58 threshold=-100
1046 TELProfiling D [getValue] ---> key lgu_global_roaming Vale null
1046 SignalStrength W [Helen] Not AT&T
1046 SignalStrength W SignalStrength after validate=SignalStrength: 99 0 -120 -160 -120 -1 -1 25 -94 -15 22 2147483647 2147483647 cdma 0
1046 SignalStrength W [Helen] Enter RSSI - mGsmSignalStrength=99Dbm=-160
555 SignalStrength W getLevelKR level =5
555 CNE W mDefaultApnLinkProp is null
781 SignalStrength W getLevelKR level =5
555 CNE_DEBUG I getSignalStrength networkType= 13
555 CNE_DEBUG I CNE sendWwanStatus - type:13 strength:-1 ipV4Addr:null roaming:0 iface:null timeStamp:2013-01-13 14:19:08.275
@skyisle
skyisle / gist:5035807
Last active December 14, 2015 05:29
AsyncLoader
import android.content.Context;
import android.support.v4.content.AsyncTaskLoader;
public abstract class AsyncLoader<D> extends AsyncTaskLoader<D> {
private D data;
public AsyncLoader(Context context) {
super(context);
}