Skip to content

Instantly share code, notes, and snippets.

View robUx4's full-sized avatar

Steve Lhomme robUx4

View GitHub Profile
@robUx4
robUx4 / gist:5480142
Created April 29, 2013 07:05
StackTrace: DROID RAZR HD running 4.1.2
java.lang.IllegalArgumentException: bad parameter
at org.apache.http.client.utils.URLEncodedUtils.parse(URLEncodedUtils.java:139)
at org.apache.http.client.utils.URLEncodedUtils.parse(URLEncodedUtils.java:76)
at android.webkit.AccessibilityInjector.getAxsUrlParameterValue(AccessibilityInjector.java:404)
at android.webkit.AccessibilityInjector.shouldInjectJavaScript(AccessibilityInjector.java:323)
at android.webkit.AccessibilityInjector.onPageFinished(AccessibilityInjector.java:282)
at android.webkit.WebViewClassic.onPageFinished(WebViewClassic.java:3958)
at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:325)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
@robUx4
robUx4 / gist:5487013
Created April 30, 2013 06:49
StackTrace: devices running ICS and JB
java.lang.NullPointerException
at android.webkit.DeviceMotionService$2.run(DeviceMotionService.java:103)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:1065)
at java.lang.Thread.run(Thread.java:856)
@robUx4
robUx4 / gist:5487024
Created April 30, 2013 06:52
StackTrace: devices running Android 4.2.2
java.lang.NullPointerException
at android.webkit.HTML5VideoViewProxy$VideoPlayer.exitFullScreenVideo(HTML5VideoViewProxy.java:180)
at android.webkit.HTML5VideoViewProxy.exitFullScreenVideo(HTML5VideoViewProxy.java:770)
at android.webkit.WebViewClassic$PrivateHandler.handleMessage(WebViewClassic.java:7422)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
@robUx4
robUx4 / gist:5508085
Created May 3, 2013 09:01
Wiko Slim 4.1.1
Caused by: java.lang.NullPointerException
at android.view.GestureDetector.<init>(GestureDetector.java:352)
at android.view.GestureDetector.<init>(GestureDetector.java:336)
at uk.co.senab.photoview.PhotoViewAttacher.<init>(PhotoViewAttacher.java:147)
at uk.co.senab.photoview.PhotoView.<init>(PhotoView.java:45)
at uk.co.senab.photoview.PhotoView.<init>(PhotoView.java:39)
at com.levelup.touiteur.widgets.PhotoViewSafe.<init>(PhotoViewSafe.java:17)
... 55 more
@robUx4
robUx4 / gist:5530753
Created May 7, 2013 07:06
Misc devices running Android 2.x
java.lang.NullPointerException
at android.app.ActivityThread.handleStopActivity(ActivityThread.java:2476)
at android.app.ActivityThread.access$1800(ActivityThread.java:117)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:952)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3691)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
@robUx4
robUx4 / gist:5569251
Created May 13, 2013 15:38
Samsung device running 4.1.2
java.lang.ClassCastException: com.levelup.touiteur.outbox.OutboxService$LocalBinder cannot be cast to com.levelup.touiteur.outbox.OutboxService$LocalBinder
at com.levelup.touiteur.outbox.DBOutbox$1.onServiceConnected(DBOutbox.java:376)
at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1098)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1115)
at android.os.Handler.handleCallback(Handler.java:615)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4938)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
@robUx4
robUx4 / gist:5678904
Created May 30, 2013 15:46
Why does it keep a ref to the Locale ? It gets the view back when transforming...
class PagerTitleStripIcs {
public static void setSingleLineAllCaps(TextView text) {
text.setTransformationMethod(new SingleLineAllCapsTransform(text.getContext()));
}
private static class SingleLineAllCapsTransform extends SingleLineTransformationMethod {
private static final String TAG = "SingleLineAllCapsTransform";
private Locale mLocale;
@robUx4
robUx4 / gist:5976360
Created July 11, 2013 15:16
Volley oops
// Set the error for this request
request.setError(error);
if (request != null) {
// Send the batched response
batchResponse(cacheKey, request);
}
@robUx4
robUx4 / gist:6029108
Created July 18, 2013 13:02
Safe Fragment class
package com.levelup.touiteur;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public abstract class FragmentTransactionSafe extends Fragment {
private boolean mCanDoTransaction = true;
@robUx4
robUx4 / gist:6077610
Created July 25, 2013 07:43
Samsung SGH-T959D running 2.3.3
android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
at android.view.ViewRoot.checkThread(ViewRoot.java:3020)
at android.view.ViewRoot.invalidateChild(ViewRoot.java:647)
at android.view.ViewRoot.invalidateChildInParent(ViewRoot.java:673)
at android.view.ViewGroup.invalidateChild(ViewGroup.java:2511)
at android.view.View.invalidate(View.java:5308)
at android.webkit.WebView.viewInvalidate(WebView.java:2732)
at android.webkit.WebView.invalidateContentRect(WebView.java:2751)
at android.webkit.WebView.access$6500(WebView.java:313)
at android.webkit.WebView$PrivateHandler.handleMessage(WebView.java:8780)