Back to project page wigle-wifi-wardriving.
The source code is released under:
/* * Copyright (c) 2010-2012, Andrew Carra, Robert Hagemann, Hugh Kennedy * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permi...
If you think the Android project wigle-wifi-wardriving listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.wigle.wigleandroid; /*from w w w . ja va 2s.c o m*/ import android.content.Context; import android.graphics.Canvas; import android.util.AttributeSet; import android.widget.TabHost; public class FixedTabHost extends TabHost { public FixedTabHost(Context context, AttributeSet attrs) { super(context, attrs); } public FixedTabHost(Context context) { super(context); } @Override public void dispatchWindowFocusChanged(boolean hasFocus) { // API LEVEL <7 occasionally throws a NPE here if(getCurrentView() != null){ super.dispatchWindowFocusChanged(hasFocus); } } @Override protected void dispatchDraw(Canvas canvas) { // API LEVEL <7 occasionally throws a NPE here try { super.dispatchDraw(canvas); } catch (Exception ignored) { MainActivity.info("Ignored exception: " + ignored, ignored); } } }