Compdigitec Labs

Mobile

Fixing IllegalStateException: The content of the adapter has changed but ListView did not receive a notification

Saturday, November 16th, 2013

Recently while working with a custom BaseAdapter in ListView, I came across this error: this.notifyDataSetChanged() was already being called, so that couldn’t have been the problem. The solution? If registerDataSetObserver() and unregisterDataSetObserver() are going to be overridden, ensure that the superclass’ methods are being called too. If you forget to call them, then when Android […]

Check if an Intent can be used in Android

Saturday, June 15th, 2013

From: http://www.curious-creature.org/2008/12/15/android-can-i-use-this-intent/ [Romain Guy]

Techniques for testing Android fragments

Monday, March 4th, 2013

How to test a fragment-based Android application: Switching fragments directly from a sub-fragment (inside backstack) - This tests how well your fragment switching code deals with backstacks while switching fragments. Switching from another top level fragment - This tests your fragment switching code. Turning off the screen - This tests your onResume() and onResumeFragments() handlers […]

Android DTS benchmark - libavcodec vs libdca

Friday, January 4th, 2013

Galaxy Nexus with Android 4.1, ARMv7+NEON, VLC for Android 0.0.9-git (libdca 0.0.5 and libav revision 53c25ee), and OpenSL ES audio output See previous audio benchmark for method Summary/Conclusion: On an ARMv7 processor with NEON, libavcodec is faster by about 7% CPU-wise. libdca libavcodec Mean 18.326% 11.193% Median 17.7% 9.4% Mode 17.5% 9% Raw data:

Exploring and rooting the iPPea TV

Saturday, November 24th, 2012

Skip to the rooting process, if you wish. The iPPea TV is a pretty neat gadget, to say the least. The USB-stick sized device features a full Android 4.0.3 OS, a 1Ghz Ingenic JZ4770 MIPS processor (complete with FPU!), 512 MB of RAM, 2 GB flash storage, and about 800 MB of internal memory. Overall, […]

Modifying Android settings from the filesystem / terminal

Monday, November 5th, 2012

(Root access is required for this entire procedure; but root access is usually present on development builds anyway.) Normally, the built-in Settings app can be used on Android to change system settings. But if you’re on a development build where the settings app is broken and can’t be used, the Android settings database can be […]

Libavcodec - native NEON compile vs hybrid mode

Thursday, October 4th, 2012

Background Benchmarks using the latest VLC beta and benching whether a native build solely for NEON is faster or a hybrid build. The expectation is that the native build should be very slightly faster than the hybrid build. This is done on a TI OMAP 4460 (Galaxy Nexus). Method is same as previous benchmarks. Results […]

libmedia source code in Android 4.1 Jellybean

Tuesday, August 28th, 2012

If you’ve been wondering where the libmedia.so sources (previously located at platform/frameworks/base/media/libmedia) have gone in Android 4.1 “Jellybean”, it has been split to a new repository, platform/frameworks/av. This was initially announced on Google Groups in April but it was not specified where the files were to be relocated to. Most Google searches for libmedia still […]

Compiling GNU Nano for Android

Friday, July 13th, 2012

If you just want a pre-built, ready to use version of Nano for Android, you can get the pre-built version. The results of these steps include: GNU Nano 2.2.6 with statically-linked libncurses Compatibility with ≥ Android 2.1 A working enter key, in adb shell and Term.apk A terminfo package

Android MPEG-2 benchmarks

Thursday, July 12th, 2012

VLC for Android beta benchmarks (July 12, 2012) for the MPEG-2 format. Specs and method are the same as in the audio benchmarks. MPEG-2 sample http://streams.videolan.org/samples/MPEG2/dvd.mpeg Skip to ARMv6 without VFP ARMv7 with NEON ARMv6 without VFP Results - libmpeg2 libmpeg2 Mean: 72.99% Median: 72.80% Mode: N/A libavcodec Mean: 73.17% Median: 73.70% Mode: 71.50% MPEG-2 […]

« Previous Entries