Android OnClickListner Start intent error - android
import com.nextgenintl.edlineformobile.R;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Button;
import android.widget.ProgressBar;
#SuppressLint("SetJavaScriptEnabled")
public class MainActivity extends Activity {
/** Called when the activity is first created. */
private WebView myWebView;
private ProgressBar progressBar1;
private Button button1;
final Activity activity = this;
#Override
public void onBackPressed() {
if (myWebView.copyBackForwardList().getCurrentIndex() > 0) {
myWebView.goBack();
}
else {
super.onBackPressed(); // finishes activity
}
}
#Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().requestFeature(Window.FEATURE_PROGRESS);
setContentView(R.layout.activity_main);
myWebView = (WebView) findViewById(R.id.webView1);
progressBar1 = (ProgressBar) findViewById(R.id.progressBar1);
button1 = (Button) findViewById(R.id.button1);
//
String url = "http://www.example.com";
myWebView.setWebViewClient(new WebViewClient());
myWebView.getSettings().setJavaScriptEnabled(true);
myWebView.loadUrl(url);
button1.setOnClickListener( new View.OnClickListener() {
public void onClick(View v) {
String currentUrl = myWebView.getUrl();
Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse(currentUrl));
startActivity(i);
}
});
myWebView.setWebChromeClient(new WebChromeClient()
{
public void onProgressChanged(WebView view, int progress)
{
if (progress<100)
{
progressBar1.setVisibility(ProgressBar.VISIBLE);
}
else if (progress==100)
{
progressBar1.setVisibility(ProgressBar.GONE);
}
progressBar1.setProgress(progress);
}
});
}
}
I have this code, and on a button click, it is supposed to send the current url to a browser. However, the app crashes. What should I fix and how to properly use onckicklistner? I have seen many questions that did not solve my problem. Thank you.
EDIT
My log cat:
02-03 12:29:55.385: E/cutils-trace(1278): Error opening trace file: No such file or directory (2)
02-03 12:29:55.405: D/TilesManager(1278): Starting TG #0, 0xb8abf2e8
02-03 12:29:55.409: D/TilesManager(1278): new EGLContext from framework: b8a1fe00
02-03 12:29:55.409: D/GLWebViewState(1278): Reinit shader
02-03 12:29:55.717: D/GLWebViewState(1278): Reinit transferQueue
02-03 12:29:57.133: A/libc(1278): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 1299 (WebViewCoreThre)
02-03 12:30:01.613: D/dalvikvm(1324): Late-enabling CheckJNI
02-03 12:30:01.693: D/dalvikvm(1324): GC_FOR_ALLOC freed 168K, 25% free 2777K/3656K, paused 6ms, total 6ms
02-03 12:30:01.701: D/dalvikvm(1324): GC_FOR_ALLOC freed 0K, 24% free 2929K/3808K, paused 6ms, total 6ms
02-03 12:30:01.705: I/dalvikvm-heap(1324): Grow heap (frag case) to 3.878MB for 349068-byte allocation
02-03 12:30:01.709: D/dalvikvm(1324): GC_FOR_ALLOC freed 3K, 22% free 3267K/4152K, paused 2ms, total 2ms
02-03 12:30:01.717: D/dalvikvm(1324): GC_FOR_ALLOC freed 152K, 25% free 3267K/4304K, paused 3ms, total 3ms
02-03 12:30:01.721: I/dalvikvm-heap(1324): Grow heap (frag case) to 4.208MB for 349068-byte allocation
02-03 12:30:01.729: D/dalvikvm(1324): GC_FOR_ALLOC freed <1K, 23% free 3608K/4648K, paused 9ms, total 9ms
02-03 12:30:01.749: D/dalvikvm(1324): GC_FOR_ALLOC freed 151K, 23% free 3608K/4648K, paused 5ms, total 5ms
02-03 12:30:01.757: I/dalvikvm-heap(1324): Grow heap (frag case) to 4.542MB for 349068-byte allocation
02-03 12:30:01.765: D/dalvikvm(1324): GC_FOR_ALLOC freed <1K, 21% free 3949K/4992K, paused 3ms, total 3ms
02-03 12:30:01.765: D/dalvikvm(1324): GC_FOR_ALLOC freed 151K, 21% free 3950K/4992K, paused 2ms, total 2ms
02-03 12:30:01.765: I/dalvikvm-heap(1324): Grow heap (frag case) to 4.875MB for 349068-byte allocation
02-03 12:30:01.769: D/dalvikvm(1324): GC_FOR_ALLOC freed <1K, 20% free 4290K/5336K, paused 2ms, total 2ms
02-03 12:30:01.773: D/dalvikvm(1324): GC_FOR_ALLOC freed 151K, 20% free 4291K/5336K, paused 2ms, total 2ms
02-03 12:30:01.777: I/dalvikvm-heap(1324): Grow heap (frag case) to 5.208MB for 349068-byte allocation
02-03 12:30:01.777: D/dalvikvm(1324): GC_FOR_ALLOC freed 0K, 19% free 4632K/5680K, paused 2ms, total 2ms
02-03 12:30:01.785: D/dalvikvm(1324): GC_FOR_ALLOC freed 303K, 20% free 4822K/6024K, paused 3ms, total 3ms
02-03 12:30:01.789: D/dalvikvm(1324): GC_FOR_ALLOC freed <1K, 18% free 4974K/6024K, paused 3ms, total 3ms
02-03 12:30:01.797: D/dalvikvm(1324): GC_FOR_ALLOC freed 151K, 17% free 5315K/6368K, paused 3ms, total 3ms
02-03 12:30:01.813: D/dalvikvm(1324): GC_FOR_ALLOC freed 256K, 18% free 5738K/6936K, paused 2ms, total 2ms
02-03 12:30:01.813: I/dalvikvm-heap(1324): Grow heap (frag case) to 7.364MB for 1127532-byte allocation
02-03 12:30:01.817: D/dalvikvm(1324): GC_FOR_ALLOC freed 1K, 15% free 6838K/8040K, paused 3ms, total 3ms
02-03 12:30:01.821: D/dalvikvm(1324): GC_FOR_ALLOC freed <1K, 15% free 6837K/8040K, paused 3ms, total 3ms
02-03 12:30:01.829: I/dalvikvm-heap(1324): Grow heap (frag case) to 9.782MB for 2536932-byte allocation
02-03 12:30:01.833: D/dalvikvm(1324): GC_FOR_ALLOC freed <1K, 12% free 9314K/10520K, paused 5ms, total 5ms
02-03 12:30:01.937: D/dalvikvm(1324): GC_FOR_ALLOC freed 1585K, 21% free 9437K/11856K, paused 6ms, total 6ms
02-03 12:30:01.953: D/dalvikvm(1324): GC_FOR_ALLOC freed 456K, 12% free 10460K/11856K, paused 3ms, total 3ms
02-03 12:30:02.081: D/libEGL(1324): loaded /system/lib/egl/libEGL_genymotion.so
02-03 12:30:02.081: D/(1324): HostConnection::get() New Host Connection established 0xb8a4e328, tid 1324
02-03 12:30:02.093: D/libEGL(1324): loaded /system/lib/egl/libGLESv1_CM_genymotion.so
02-03 12:30:02.097: D/libEGL(1324): loaded /system/lib/egl/libGLESv2_genymotion.so
02-03 12:30:02.157: W/EGL_genymotion(1324): eglSurfaceAttrib not implemented
02-03 12:30:02.161: E/OpenGLRenderer(1324): Getting MAX_TEXTURE_SIZE from GradienCache
02-03 12:30:02.169: E/OpenGLRenderer(1324): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
02-03 12:30:02.173: D/OpenGLRenderer(1324): Enabling debug mode 0
02-03 12:30:04.161: W/chromium_net(1324): external/chromium/net/disk_cache/backend_impl.cc:1835: [0203/123004:WARNING:backend_impl.cc(1835)] Destroying invalid entry.
02-03 12:30:04.873: E/cutils-trace(1324): Error opening trace file: No such file or directory (2)
02-03 12:30:04.889: D/TilesManager(1324): Starting TG #0, 0xb8bb4350
02-03 12:30:04.889: D/TilesManager(1324): new EGLContext from framework: b8a50898
02-03 12:30:04.889: D/GLWebViewState(1324): Reinit shader
02-03 12:30:05.417: D/GLWebViewState(1324): Reinit transferQueue
02-03 12:45:45.121: D/dalvikvm(2158): GC_FOR_ALLOC freed 172K, 25% free 2777K/3660K, paused 4ms, total 4ms
02-03 12:45:45.125: D/dalvikvm(2158): GC_FOR_ALLOC freed 3K, 24% free 2925K/3812K, paused 3ms, total 3ms
02-03 12:45:45.125: I/dalvikvm-heap(2158): Grow heap (frag case) to 3.875MB for 349068-byte allocation
02-03 12:45:45.129: D/dalvikvm(2158): GC_FOR_ALLOC freed <1K, 22% free 3266K/4156K, paused 3ms, total 3ms
02-03 12:45:45.141: D/dalvikvm(2158): GC_FOR_ALLOC freed 151K, 25% free 3267K/4308K, paused 4ms, total 4ms
02-03 12:45:45.141: I/dalvikvm-heap(2158): Grow heap (frag case) to 4.208MB for 349068-byte allocation
02-03 12:45:45.149: D/dalvikvm(2158): GC_FOR_ALLOC freed <1K, 23% free 3608K/4652K, paused 2ms, total 4ms
02-03 12:45:45.153: D/dalvikvm(2158): GC_FOR_ALLOC freed 151K, 23% free 3608K/4652K, paused 1ms, total 1ms
02-03 12:45:45.153: I/dalvikvm-heap(2158): Grow heap (frag case) to 4.541MB for 349068-byte allocation
02-03 12:45:45.165: D/dalvikvm(2158): GC_FOR_ALLOC freed <1K, 21% free 3949K/4996K, paused 4ms, total 4ms
02-03 12:45:45.173: D/dalvikvm(2158): GC_FOR_ALLOC freed 151K, 21% free 3949K/4996K, paused 5ms, total 5ms
02-03 12:45:45.173: I/dalvikvm-heap(2158): Grow heap (frag case) to 4.875MB for 349068-byte allocation
02-03 12:45:45.193: D/dalvikvm(2158): GC_FOR_ALLOC freed <1K, 20% free 4290K/5340K, paused 2ms, total 2ms
02-03 12:45:45.217: D/dalvikvm(2158): GC_FOR_ALLOC freed 151K, 20% free 4291K/5340K, paused 18ms, total 21ms
02-03 12:45:45.221: I/dalvikvm-heap(2158): Grow heap (frag case) to 5.208MB for 349068-byte allocation
02-03 12:45:45.237: D/dalvikvm(2158): GC_FOR_ALLOC freed <1K, 19% free 4632K/5684K, paused 1ms, total 1ms
02-03 12:45:45.249: D/dalvikvm(2158): GC_FOR_ALLOC freed 303K, 20% free 4822K/6028K, paused 3ms, total 3ms
02-03 12:45:45.253: D/dalvikvm(2158): GC_FOR_ALLOC freed <1K, 18% free 4973K/6028K, paused 3ms, total 3ms
02-03 12:45:45.265: D/dalvikvm(2158): GC_FOR_ALLOC freed 151K, 17% free 5315K/6372K, paused 5ms, total 6ms
02-03 12:45:45.273: D/dalvikvm(2158): GC_FOR_ALLOC freed 256K, 18% free 5738K/6940K, paused 2ms, total 2ms
02-03 12:45:45.277: I/dalvikvm-heap(2158): Grow heap (frag case) to 7.364MB for 1127532-byte allocation
02-03 12:45:45.281: D/dalvikvm(2158): GC_FOR_ALLOC freed 1K, 15% free 6837K/8044K, paused 4ms, total 4ms
02-03 12:45:45.285: D/dalvikvm(2158): GC_FOR_ALLOC freed <1K, 16% free 6837K/8044K, paused 4ms, total 4ms
02-03 12:45:45.289: I/dalvikvm-heap(2158): Grow heap (frag case) to 9.782MB for 2536932-byte allocation
02-03 12:45:45.293: D/dalvikvm(2158): GC_FOR_ALLOC freed <1K, 12% free 9314K/10524K, paused 5ms, total 5ms
02-03 12:45:45.373: D/dalvikvm(2158): GC_FOR_ALLOC freed 1585K, 21% free 9437K/11860K, paused 2ms, total 2ms
02-03 12:45:45.385: D/dalvikvm(2158): GC_FOR_ALLOC freed 456K, 12% free 10460K/11860K, paused 4ms, total 5ms
02-03 12:45:45.393: D/AndroidRuntime(2158): Shutting down VM
02-03 12:45:45.393: W/dalvikvm(2158): threadid=1: thread exiting with uncaught exception (group=0xa4c0f648)
02-03 12:45:45.409: E/AndroidRuntime(2158): FATAL EXCEPTION: main
02-03 12:45:45.409: E/AndroidRuntime(2158): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nextgenintl.edlineformobile/com.nextgenintl.edlineformobile.MainActivity}: java.lang.NullPointerException
02-03 12:45:45.409: E/AndroidRuntime(2158): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
02-03 12:45:45.409: E/AndroidRuntime(2158): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
02-03 12:45:45.409: E/AndroidRuntime(2158): at android.app.ActivityThread.access$600(ActivityThread.java:141)
02-03 12:45:45.409: E/AndroidRuntime(2158): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
02-03 12:45:45.409: E/AndroidRuntime(2158): at android.os.Handler.dispatchMessage(Handler.java:99)
02-03 12:45:45.409: E/AndroidRuntime(2158): at android.os.Looper.loop(Looper.java:137)
02-03 12:45:45.409: E/AndroidRuntime(2158): at android.app.ActivityThread.main(ActivityThread.java:5103)
02-03 12:45:45.409: E/AndroidRuntime(2158): at java.lang.reflect.Method.invokeNative(Native Method)
02-03 12:45:45.409: E/AndroidRuntime(2158): at java.lang.reflect.Method.invoke(Method.java:525)
02-03 12:45:45.409: E/AndroidRuntime(2158): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
02-03 12:45:45.409: E/AndroidRuntime(2158): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
02-03 12:45:45.409: E/AndroidRuntime(2158): at dalvik.system.NativeStart.main(Native Method)
02-03 12:45:45.409: E/AndroidRuntime(2158): Caused by: java.lang.NullPointerException
02-03 12:45:45.409: E/AndroidRuntime(2158): at com.nextgenintl.edlineformobile.MainActivity.onCreate(MainActivity.java:58)
02-03 12:45:45.409: E/AndroidRuntime(2158): at android.app.Activity.performCreate(Activity.java:5133)
02-03 12:45:45.409: E/AndroidRuntime(2158): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
02-03 12:45:45.409: E/AndroidRuntime(2158): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
02-03 12:45:45.409: E/AndroidRuntime(2158): ... 11 more
02-03 12:45:48.285: D/dalvikvm(2185): GC_FOR_ALLOC freed 175K, 25% free 2777K/3664K, paused 4ms, total 4ms
02-03 12:45:48.289: D/dalvikvm(2185): GC_FOR_ALLOC freed 0K, 24% free 2929K/3816K, paused 4ms, total 4ms
02-03 12:45:48.293: I/dalvikvm-heap(2185): Grow heap (frag case) to 3.878MB for 349068-byte allocation
02-03 12:45:48.305: D/dalvikvm(2185): GC_FOR_ALLOC freed 3K, 22% free 3266K/4160K, paused 10ms, total 10ms
02-03 12:45:48.317: D/dalvikvm(2185): GC_FOR_ALLOC freed 152K, 25% free 3267K/4312K, paused 3ms, total 3ms
02-03 12:45:48.321: I/dalvikvm-heap(2185): Grow heap (frag case) to 4.208MB for 349068-byte allocation
02-03 12:45:48.341: D/dalvikvm(2185): GC_FOR_ALLOC freed <1K, 23% free 3608K/4656K, paused 21ms, total 21ms
02-03 12:45:48.353: D/dalvikvm(2185): GC_FOR_ALLOC freed 151K, 23% free 3608K/4656K, paused 4ms, total 4ms
02-03 12:45:48.353: I/dalvikvm-heap(2185): Grow heap (frag case) to 4.541MB for 349068-byte allocation
02-03 12:45:48.357: D/dalvikvm(2185): GC_FOR_ALLOC freed <1K, 22% free 3949K/5000K, paused 2ms, total 2ms
02-03 12:45:48.365: D/dalvikvm(2185): GC_FOR_ALLOC freed 151K, 22% free 3949K/5000K, paused 3ms, total 3ms
02-03 12:45:48.365: I/dalvikvm-heap(2185): Grow heap (frag case) to 4.875MB for 349068-byte allocation
02-03 12:45:48.369: D/dalvikvm(2185): GC_FOR_ALLOC freed <1K, 20% free 4290K/5344K, paused 4ms, total 4ms
02-03 12:45:48.373: D/dalvikvm(2185): GC_FOR_ALLOC freed 151K, 20% free 4291K/5344K, paused 2ms, total 2ms
02-03 12:45:48.373: I/dalvikvm-heap(2185): Grow heap (frag case) to 5.208MB for 349068-byte allocation
02-03 12:45:48.381: D/dalvikvm(2185): GC_FOR_ALLOC freed <1K, 19% free 4632K/5688K, paused 3ms, total 4ms
02-03 12:45:48.393: D/dalvikvm(2185): GC_FOR_ALLOC freed 303K, 21% free 4822K/6032K, paused 2ms, total 2ms
02-03 12:45:48.397: D/dalvikvm(2185): GC_FOR_ALLOC freed <1K, 18% free 4973K/6032K, paused 2ms, total 2ms
02-03 12:45:48.405: D/dalvikvm(2185): GC_FOR_ALLOC freed 151K, 17% free 5315K/6376K, paused 3ms, total 3ms
02-03 12:45:48.417: D/dalvikvm(2185): GC_FOR_ALLOC freed 256K, 18% free 5738K/6944K, paused 2ms, total 2ms
02-03 12:45:48.417: I/dalvikvm-heap(2185): Grow heap (frag case) to 7.364MB for 1127532-byte allocation
02-03 12:45:48.421: D/dalvikvm(2185): GC_FOR_ALLOC freed 1K, 16% free 6837K/8048K, paused 3ms, total 3ms
02-03 12:45:48.425: D/dalvikvm(2185): GC_FOR_ALLOC freed <1K, 16% free 6837K/8048K, paused 3ms, total 3ms
02-03 12:45:48.429: I/dalvikvm-heap(2185): Grow heap (frag case) to 9.782MB for 2536932-byte allocation
02-03 12:45:48.433: D/dalvikvm(2185): GC_FOR_ALLOC freed <1K, 12% free 9314K/10528K, paused 3ms, total 3ms
02-03 12:45:48.505: D/dalvikvm(2185): GC_FOR_ALLOC freed 1585K, 21% free 9437K/11864K, paused 2ms, total 2ms
02-03 12:45:48.521: D/dalvikvm(2185): GC_FOR_ALLOC freed 456K, 12% free 10460K/11864K, paused 6ms, total 6ms
02-03 12:45:48.529: D/AndroidRuntime(2185): Shutting down VM
02-03 12:45:48.529: W/dalvikvm(2185): threadid=1: thread exiting with uncaught exception (group=0xa4c0f648)
02-03 12:45:48.529: E/AndroidRuntime(2185): FATAL EXCEPTION: main
02-03 12:45:48.529: E/AndroidRuntime(2185): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nextgenintl.edlineformobile/com.nextgenintl.edlineformobile.MainActivity}: java.lang.NullPointerException
02-03 12:45:48.529: E/AndroidRuntime(2185): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
02-03 12:45:48.529: E/AndroidRuntime(2185): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
02-03 12:45:48.529: E/AndroidRuntime(2185): at android.app.ActivityThread.access$600(ActivityThread.java:141)
02-03 12:45:48.529: E/AndroidRuntime(2185): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
02-03 12:45:48.529: E/AndroidRuntime(2185): at android.os.Handler.dispatchMessage(Handler.java:99)
02-03 12:45:48.529: E/AndroidRuntime(2185): at android.os.Looper.loop(Looper.java:137)
02-03 12:45:48.529: E/AndroidRuntime(2185): at android.app.ActivityThread.main(ActivityThread.java:5103)
02-03 12:45:48.529: E/AndroidRuntime(2185): at java.lang.reflect.Method.invokeNative(Native Method)
02-03 12:45:48.529: E/AndroidRuntime(2185): at java.lang.reflect.Method.invoke(Method.java:525)
02-03 12:45:48.529: E/AndroidRuntime(2185): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
02-03 12:45:48.529: E/AndroidRuntime(2185): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
02-03 12:45:48.529: E/AndroidRuntime(2185): at dalvik.system.NativeStart.main(Native Method)
02-03 12:45:48.529: E/AndroidRuntime(2185): Caused by: java.lang.NullPointerException
02-03 12:45:48.529: E/AndroidRuntime(2185): at com.nextgenintl.edlineformobile.MainActivity.onCreate(MainActivity.java:58)
02-03 12:45:48.529: E/AndroidRuntime(2185): at android.app.Activity.performCreate(Activity.java:5133)
02-03 12:45:48.529: E/AndroidRuntime(2185): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
02-03 12:45:48.529: E/AndroidRuntime(2185): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
02-03 12:45:48.529: E/AndroidRuntime(2185): ... 11 more
The url is null because the page loading is not finished yed. You can check if the theUrl is null or not. and use the following code to set theUrl
String theUrl;
WebView webView = new WebView(this);
setContentView(webView);
webview.setWebViewClient(new WebViewClient() {
public void onPageFinished(WebView view, String url) {
theUrl = url;
}
});
webView.loadUrl(myURL);
Related
My Application freezes
I am developing an android application for fingerprint reader, my operations include verifying user fingerprint(continuously), and registering new fingerprints(getting fingerprints from web API). I am using Morpho MSO 1300 fingerprint reader. when I run my application I am constantly getting following logcat messages 01-02 11:19:48.910 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:49.350 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:49.770 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:50.210 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:50.630 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:51.070 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:51.570 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:52.070 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:52.570 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:53.000 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:53.500 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:53.930 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:54.360 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 295K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:54.800 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3633K/4540K, paused 14ms, total 14ms 01-02 11:19:55.300 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 336K, 20% free 3652K/4540K, paused 14ms, total 14ms 01-02 11:19:55.730 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 301K, 20% free 3644K/4540K, paused 14ms, total 14ms 01-02 11:19:56.150 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 295K, 20% free 3644K/4540K, paused 15ms, total 15ms 01-02 11:19:56.600 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3644K/4540K, paused 14ms, total 14ms 01-02 11:19:57.010 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3644K/4540K, paused 14ms, total 14ms 01-02 11:19:57.440 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 295K, 20% free 3644K/4540K, paused 14ms, total 14ms 01-02 11:19:57.880 5286-11417/com.cms.attendance D/dalvikvm: GC_FOR_ALLOC freed 293K, 20% free 3644K/4540K, paused 14ms, total 14ms 01-02 11:19:58.030 24732-24776/com.baidu.video.pad:download V/P2PBase: [11:19:58:040][P2PBase] dns : media.p2sp.baidu.com resolve failed. wait 3 As I increase data in my application, say I get 1000 users from web API and I try to process them and register them in fingerprint reader and sqlite database eventually my application freezes. Any help will be appreciated.
This log means that Garbage collector just released the memory. You are making a lot of allocations and this is the reason why GC have to work frequently. I recommend You to use Android Profiler (Android Studio 3.0) and try to overcome this problem: https://developer.android.com/studio/profile/memory-profiler.html or past your code so that we can think about it together.
Too many GC_FOR_ALLOC in logcat
while running logcat on my app's logs, I see lots of GC_FOR_ALLOCs and no GC_CONCURRENT messages. I know I have memory leak, but everywhere in stack and other sites, logcat messages has lots of GC_CONCURRENT messages, and few GC_FOR_ALLOC messages. I wanna know what am I doing wrong? Do I have any special case of memory leak in my app? what's the problem? BTW: I know Eclipse MAT and I'm trying to fix memory leak using MAT. I just don't know why GC_FOR_ALLOC is called so frequent. logcat: D/dalvikvm(18068): GC_FOR_ALLOC freed 3974K, 8% free 54640K/58964K, paused 42ms, total 42ms D/dalvikvm(18068): GC_FOR_ALLOC freed 473K, 8% free 54622K/58964K, paused 28ms, total 28ms D/dalvikvm(18068): GC_FOR_ALLOC freed 139K, 7% free 55010K/58964K, paused 19ms, total 20ms I/dalvikvm-heap(18068): Grow heap (frag case) to 54.623MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 122K, 7% free 55071K/59032K, paused 29ms, total 29ms I/dalvikvm-heap(18068): Grow heap (frag case) to 54.683MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 20K, 7% free 55172K/59100K, paused 20ms, total 20ms I/dalvikvm-heap(18068): Grow heap (frag case) to 54.781MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 310K, 7% free 55165K/59168K, paused 18ms, total 19ms I/dalvikvm-heap(18068): Grow heap (frag case) to 54.774MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 485K, 7% free 55165K/59236K, paused 17ms, total 17ms I/dalvikvm-heap(18068): Grow heap (frag case) to 54.774MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 245K, 7% free 55365K/59304K, paused 17ms, total 17ms I/dalvikvm-heap(18068): Grow heap (frag case) to 54.970MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 66K, 7% free 55424K/59372K, paused 28ms, total 28ms I/dalvikvm-heap(18068): Grow heap (frag case) to 55.027MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 104K, 7% free 55568K/59440K, paused 21ms, total 21ms I/dalvikvm-heap(18068): Grow heap (frag case) to 55.167MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 47K, 7% free 55676K/59508K, paused 30ms, total 30ms I/dalvikvm-heap(18068): Grow heap (frag case) to 55.274MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 26K, 7% free 55791K/59576K, paused 24ms, total 24ms I/dalvikvm-heap(18068): Grow heap (frag case) to 55.386MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 30K, 7% free 55923K/59644K, paused 21ms, total 21ms I/dalvikvm-heap(18068): Grow heap (frag case) to 55.515MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 22K, 7% free 56048K/59712K, paused 17ms, total 18ms I/dalvikvm-heap(18068): Grow heap (frag case) to 55.636MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 611K, 7% free 55975K/59780K, paused 23ms, total 24ms I/dalvikvm-heap(18068): Grow heap (frag case) to 55.566MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 279K, 7% free 55975K/59848K, paused 20ms, total 20ms I/dalvikvm-heap(18068): Grow heap (frag case) to 55.565MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 92K, 7% free 56051K/59916K, paused 30ms, total 30ms I/dalvikvm-heap(18068): Grow heap (frag case) to 55.639MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 351K, 7% free 56272K/59984K, paused 31ms, total 31ms D/dalvikvm(18068): GC_FOR_ALLOC freed 25K, 7% free 56269K/59984K, paused 30ms, total 30ms I/dalvikvm-heap(18068): Grow heap (frag case) to 55.853MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 105K, 7% free 56320K/60052K, paused 19ms, total 19ms I/dalvikvm-heap(18068): Grow heap (frag case) to 55.902MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 526K, 7% free 56369K/60120K, paused 20ms, total 20ms D/dalvikvm(18068): GC_FOR_ALLOC freed 934K, 7% free 56462K/60120K, paused 19ms, total 20ms I/dalvikvm-heap(18068): Grow heap (frag case) to 56.041MB for 65552-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 140K, 7% free 56510K/60188K, paused 34ms, total 34ms I/dalvikvm-heap(18068): Grow heap (frag case) to 56.765MB for 775824-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 30K, 6% free 57414K/60948K, paused 17ms, total 17ms I/dalvikvm-heap(18068): Grow heap (frag case) to 57.241MB for 349072-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 6K, 6% free 57749K/61292K, paused 17ms, total 17ms I/dalvikvm-heap(18068): Grow heap (frag case) to 57.569MB for 349072-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed <1K, 6% free 58091K/61636K, paused 18ms, total 18ms I/dalvikvm-heap(18068): Grow heap (frag case) to 57.902MB for 349072-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed <1K, 6% free 58433K/61980K, paused 17ms, total 17ms I/dalvikvm-heap(18068): Grow heap (frag case) to 58.236MB for 349072-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed <1K, 6% free 58774K/62324K, paused 26ms, total 27ms I/dalvikvm-heap(18068): Grow heap (frag case) to 58.569MB for 349072-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed <1K, 6% free 59116K/62668K, paused 21ms, total 22ms I/dalvikvm-heap(18068): Grow heap (frag case) to 58.903MB for 349072-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed <1K, 6% free 59457K/63012K, paused 17ms, total 17ms I/dalvikvm-heap(18068): Grow heap (frag case) to 59.236MB for 349072-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed <1K, 6% free 59799K/63356K, paused 17ms, total 17ms I/dalvikvm-heap(18068): Grow heap (frag case) to 59.570MB for 349072-byte allocation D/dalvikvm(18068): GC_FOR_ALLOC freed 301K, 6% free 60326K/63700K, paused 25ms, total 25ms D/dalvikvm(18068): GC_FOR_ALLOC freed 168K, 5% free 60826K/63952K, paused 18ms, total 18ms I/dalvikvm(18068): Jit: resizing JitTable from 4096 to 8192 D/dalvikvm(18068): GC_FOR_ALLOC freed 1166K, 5% free 61664K/64476K, paused 23ms, total 23ms D/dalvikvm(18068): GC_FOR_ALLOC freed 2061K, 5% free 62858K/65748K, paused 25ms, total 26ms D/dalvikvm(18068): GC_FOR_ALLOC freed 1867K, 4% free 64650K/67260K, paused 24ms, total 28ms D/dalvikvm(18068): GC_FOR_ALLOC freed 5784K, 9% free 63169K/69304K, paused 42ms, total 42ms D/dalvikvm(18068): GC_FOR_ALLOC freed 115K, 5% free 66326K/69304K, paused 22ms, total 24ms D/dalvikvm(18068): GC_FOR_ALLOC freed 6127K, 10% free 65352K/71840K, paused 53ms, total 53ms D/dalvikvm(18068): GC_FOR_ALLOC freed 257K, 5% free 68326K/71840K, paused 23ms, total 23ms D/dalvikvm(18068): GC_FOR_ALLOC freed 6537K, 10% free 67693K/74588K, paused 43ms, total 43ms D/dalvikvm(18068): GC_FOR_ALLOC freed 114K, 6% free 70847K/74588K, paused 22ms, total 22ms D/dalvikvm(18068): GC_FOR_ALLOC freed 1977K, 4% free 74341K/77420K, paused 38ms, total 38ms D/dalvikvm(18068): GC_FOR_ALLOC freed 2684K, 4% free 79560K/82616K, paused 48ms, total 48ms D/dalvikvm(18068): GC_FOR_ALLOC freed 5961K, 8% free 81482K/87804K, paused 57ms, total 62ms D/dalvikvm(18068): GC_FOR_ALLOC freed 3869K, 8% free 82684K/89868K, paused 50ms, total 50ms D/dalvikvm(18068): GC_FOR_ALLOC freed 2325K, 5% free 87087K/90900K, paused 31ms, total 31ms thanks
This may be a problem in Android's heap implementation: http://androidxref.com/4.4.4_r1/xref/dalvik/vm/alloc/Heap.cpp See comment in tryMalloc: There will be a lot of churn if someone allocates a bunch of big objects in a row, and we hit the frag case each time. A full GC for each.
Framedrops --> Ideas for better Android Game rendering?
my simple application suffers from framedrop. I think this is due to my rendering method: public void draw(Canvas canvas) { drawBackground(canvas); drawPlayer(canvas); drawEnemy(canvas); } As you can see, the background gets drawn every single time this method is called, as well as player and enemy... the "drawBackground(canvas)" looks kinda like this: public void paintBackground(Canvas canvas) { canvas.drawBitmap(background, 0, 0, null); } drawPlayer and drawEnemy draw circles at the position my player/ or enemyobject returns. Is there any better solution for displaying background, player and other objects, without constantly redrawing them? Logcat: 02-14 17:30:11.904: D/dalvikvm(17783): GC_FOR_ALLOC freed 29K, 1% free 9069K/9132K, paused 17ms, total 18ms 02-14 17:30:11.912: I/dalvikvm-heap(17783): Grow heap (frag case) to 12.404MB for 3686416-byte allocation 02-14 17:30:11.927: D/dalvikvm(17783): GC_FOR_ALLOC freed <1K, 1% free 12669K/12736K, paused 20ms, total 20ms 02-14 17:30:12.341: D/dalvikvm(17783): GC_FOR_ALLOC freed 16K, 1% free 12696K/12748K, paused 24ms, total 24ms 02-14 17:30:12.349: I/dalvikvm-heap(17783): Grow heap (frag case) to 15.945MB for 3686416-byte allocation 02-14 17:30:12.373: D/dalvikvm(17783): GC_FOR_ALLOC freed <1K, 1% free 16296K/16352K, paused 24ms, total 24ms 02-14 17:30:12.560: D/OpenGLRenderer(17783): Enabling debug mode 0 02-14 17:30:18.045: D/dalvikvm(17783): GC_FOR_ALLOC freed 218K, 2% free 16377K/16632K, paused 20ms, total 20ms 02-14 17:30:18.052: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.541MB for 3686416-byte allocation 02-14 17:30:18.076: D/dalvikvm(17783): GC_FOR_ALLOC freed 6K, 2% free 19971K/20236K, paused 21ms, total 22ms 02-14 17:30:28.529: D/dalvikvm(17783): GC_FOR_ALLOC freed 3899K, 20% free 16395K/20332K, paused 19ms, total 19ms 02-14 17:30:28.537: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.557MB for 3686416-byte allocation 02-14 17:30:28.560: D/dalvikvm(17783): GC_FOR_ALLOC freed <1K, 2% free 19995K/20332K, paused 18ms, total 18ms 02-14 17:30:49.756: D/dalvikvm(17783): GC_FOR_ALLOC freed 4050K, 20% free 16464K/20552K, paused 20ms, total 34ms 02-14 17:30:49.763: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.625MB for 3686416-byte allocation 02-14 17:30:49.779: D/dalvikvm(17783): GC_FOR_ALLOC freed 6K, 3% free 20057K/20552K, paused 21ms, total 21ms 02-14 17:30:57.107: D/dalvikvm(17783): GC_FOR_ALLOC freed 3938K, 21% free 16373K/20552K, paused 17ms, total 17ms 02-14 17:30:57.107: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.536MB for 3686416-byte allocation 02-14 17:30:57.138: D/dalvikvm(17783): GC_FOR_ALLOC freed 14K, 3% free 19958K/20552K, paused 13ms, total 13ms 02-14 17:31:03.310: D/dalvikvm(17783): GC_FOR_ALLOC freed 3824K, 21% free 16370K/20552K, paused 31ms, total 31ms 02-14 17:31:03.310: I/dalvikvm-heap(17783): Grow heap (frag case) to 19.533MB for 3686416-byte allocation 02-14 17:31:03.381: D/dalvikvm(17783): GC_FOR_ALLOC freed 7K, 3% free 19962K/20552K, paused 30ms, total 30ms 02-14 17:33:31.943: D/dalvikvm(17783): GC_FOR_ALLOC freed 6253K, 27% free 17352K/23640K, paused 37ms, total 39ms Thanks in advance
Android GC_concurrent pauses activity
I love garbage collector, and it does it work good. But the problem is I have too many objects in my activity because there are too many Hashmaps and arraylists and other objects. So when I switch to other activity this happens. 12-04 01:02:17.119: D/dalvikvm(1124): GC_CONCURRENT freed 0K, 46% free 26267K/48327K, paused 2ms+5ms 12-04 01:02:17.249: D/dalvikvm(1124): GC_CONCURRENT freed 8877K, 60% free 19436K/48327K, paused 2ms+5ms 12-04 01:02:17.359: D/dalvikvm(1124): GC_CONCURRENT freed 1593K, 59% free 19888K/48327K, paused 2ms+5ms 12-04 01:02:17.459: D/dalvikvm(1124): GC_CONCURRENT freed 1572K, 58% free 20363K/48327K, paused 2ms+5ms 12-04 01:02:17.559: D/ExchangeService(578): Received deviceId from Email app: null 12-04 01:02:17.559: D/ExchangeService(578): !!! deviceId unknown; stopping self and retrying 12-04 01:02:17.569: D/dalvikvm(1124): GC_CONCURRENT freed 1594K, 57% free 20816K/48327K, paused 2ms+6ms 12-04 01:02:17.679: D/dalvikvm(1124): GC_CONCURRENT freed 1582K, 56% free 21278K/48327K, paused 2ms+5ms 12-04 01:02:17.779: D/dalvikvm(1124): GC_CONCURRENT freed 1582K, 56% free 21741K/48327K, paused 2ms+5ms 12-04 01:02:17.889: D/dalvikvm(1124): GC_CONCURRENT freed 1582K, 55% free 22203K/48327K, paused 2ms+5ms 12-04 01:02:17.999: D/dalvikvm(1124): GC_CONCURRENT freed 1579K, 54% free 22669K/48327K, paused 2ms+6ms 12-04 01:02:18.109: D/dalvikvm(1124): GC_CONCURRENT freed 1585K, 53% free 23130K/48327K, paused 2ms+6ms 12-04 01:02:18.229: D/dalvikvm(1124): GC_CONCURRENT freed 1580K, 52% free 23592K/48327K, paused 2ms+6ms 12-04 01:02:18.339: D/dalvikvm(1124): GC_CONCURRENT freed 1584K, 51% free 24052K/48327K, paused 2ms+5ms 12-04 01:02:18.449: D/dalvikvm(1124): GC_CONCURRENT freed 1570K, 50% free 24527K/48327K, paused 2ms+5ms 12-04 01:02:18.569: D/dalvikvm(1124): GC_CONCURRENT freed 1563K, 49% free 25012K/48327K, paused 2ms+6ms 12-04 01:02:18.649: D/dalvikvm(1124): GC_FOR_ALLOC freed 623K, 48% free 25189K/48327K, paused 39ms 12-04 01:02:18.659: I/dalvikvm-heap(1124): Grow heap (frag case) to 29.909MB for 5510676-byte allocation 12-04 01:02:18.719: D/dalvikvm(1124): GC_CONCURRENT freed 0K, 37% free 30571K/48327K, paused 2ms+5ms 12-04 01:02:19.159: D/dalvikvm(1124): GC_CONCURRENT freed 1976K, 37% free 30571K/48327K, paused 2ms+5ms 12-04 01:02:19.599: D/dalvikvm(1124): GC_CONCURRENT freed 1972K, 37% free 30571K/48327K, paused 2ms+5ms 12-04 01:02:20.049: D/dalvikvm(1124): GC_CONCURRENT freed 1976K, 37% free 30571K/48327K, paused 2ms+6ms So the problem is Switching to other activity pauses the application for like 4 to 5 seconds and it looks like the app is going to do Unfortunately and then ohter activity starts. So what can I do to NOT pause the activity the app What I have tried 1. Starting Activity in async task. (Displaying the progressbar when GC does the above work) but the progress dialog also pauses. 2. Do the same with handler and thread. above things did not help. So How can I display a progress dialog when GC does its work and not pause the activity? I don't want to manually remove manually.
ZXing onActivityResult not called multiple times
I'm trying to integrate ZXing in my project, but having problems. It works correctly on the first scan, and on the second scan. But on the third+ scans the onActivityResult method never gets fired. Here is where I start the scan: public void performScan(){ IntentIntegrator scanIntegrator = new IntentIntegrator(thisActivity); scanIntegrator.initiateScan(); } Here is my onActivityResult method: #Override public void onActivityResult(int requestCode, int resultCode, Intent intent) { super.onActivityResult(requestCode, resultCode, intent); //retrieve scan result Log.w("ZZ", activityName + ": onActivityResult ... requestCode=" + requestCode + " ... resultCode=" + resultCode); //BT_debugger.showIt(activityName + ": onActivityResult ... requestCode=" + requestCode + " ... resultCode=" + resultCode); if (resultCode == RESULT_OK){ IntentResult scanningResult = IntentIntegrator.parseActivityResult(requestCode, resultCode, intent); if (scanningResult != null) { //we have a result String scanContent = scanningResult.getContents(); //resultText.setText(scanContent); if (scanContent.length()>0) loadQuestion(scanContent); else { Toast toast = Toast.makeText(getApplicationContext(), "No scan data received!", Toast.LENGTH_SHORT); toast.show(); } } else{ Toast toast = Toast.makeText(getApplicationContext(), "No scan data received!", Toast.LENGTH_SHORT); toast.show(); } } } And here is the resulting LogCat starting with the scan that doesn't work. 09-02 01:24:48.310 435-13722/? I/ActivityManager: START u0 {act=com.google.zxing.client.android.SCAN cat=[android.intent.category.DEFAULT] flg=0x4080000 pkg=com.google.zxing.client.android cmp=com.google.zxing.client.android/.CaptureActivity} from pid 8312 09-02 01:24:48.310 435-13722/? W/ActivityManager: startActivity called from non-Activity context; forcing Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { act=com.google.zxing.client.android.SCAN cat=[android.intent.category.DEFAULT] flg=0x4080000 pkg=com.google.zxing.client.android cmp=com.google.zxing.client.android/.CaptureActivity } 09-02 01:24:48.340 8312-8312/com.testrotary I/Choreographer: Skipped 50 frames! The application may be doing too much work on its main thread. 09-02 01:24:48.410 8312-8312/com.testrotary W/ZZ: Cr_rr_qrreader:onPause (BASE CLASS) 09-02 01:24:48.430 435-682/? I/ActivityManager: Config changes=1480 {1.0 310mcc?mnc en_US ldltr sw600dp w961dp h528dp 213dpi lrg land finger -keyb/v/h -nav/h s.259} 09-02 01:24:48.550 435-487/? I/InputReader: Reconfiguring input devices. changes=0x00000004 09-02 01:24:48.550 435-487/? I/InputReader: Device reconfigured: id=2, name='elan-touchscreen', size 800x1280, orientation 1, mode 1, display id 0 09-02 01:24:48.550 435-487/? I/InputReader: Reconfiguring input devices. changes=0x00000004 09-02 01:24:48.550 435-487/? I/InputReader: Device reconfigured: id=2, name='elan-touchscreen', size 800x1280, orientation 1, mode 1, display id 0 09-02 01:24:48.620 4263-4271/? W/MediaPlayer-JNI: MediaPlayer finalized without being released 09-02 01:24:48.620 4263-4267/? D/dalvikvm: GC_CONCURRENT freed 407K, 13% free 8241K/9396K, paused 7ms+26ms, total 63ms 09-02 01:24:48.640 4263-4263/? I/PlatformSupportManager: Using implementation class com.google.zxing.client.android.common.executor.HoneycombAsyncTaskExecInterface of interface com.google.zxing.client.android.common.executor.AsyncTaskExecInterface for SDK 11 09-02 01:24:48.720 520-520/? D/PhoneStatusBar: mSettingsPanelGravity = 8388661 09-02 01:24:48.760 8312-8312/com.testrotary W/ZZ: testrotary_appDelegate: onTrimMemory with level: 20 09-02 01:24:48.820 4263-4263/? I/com.google.zxing.client.android.camera.open.OpenCameraInterface: No camera facing back; returning camera #0 09-02 01:24:48.820 125-459/? I/AwesomePlayer: setDataSource_l(URL suppressed) 09-02 01:24:48.850 3245-3249/? D/dalvikvm: GC_CONCURRENT freed 386K, 8% free 7878K/8488K, paused 72ms+2ms, total 188ms 09-02 01:24:48.860 125-459/? I/AwesomePlayer: setDataSource_l(URL suppressed) 09-02 01:24:48.890 125-459/? I/CameraClient: Opening camera 0 09-02 01:24:48.890 125-459/? I/NvOmxCamera: HAL_camera_device_open: open camera 0 09-02 01:24:48.920 125-8922/? E/: ioctl SetWhiteBalance failed: -1 09-02 01:24:48.920 125-459/? E/NvOmxCameraSettingsParser: Param type 70 not supported 09-02 01:24:48.920 125-459/? I/NvOmxCamera: HAL_camera_device_open: opened camera 0 (0x4761bb20) 09-02 01:24:48.930 4263-4263/? I/CameraConfiguration: Screen resolution: Point(1280, 736) 09-02 01:24:48.930 4263-4263/? I/CameraConfiguration: Supported preview sizes: 1280x720 960x720 720x576 704x576 800x448 720x480 768x432 640x480 720x408 480x480 352x288 320x240 176x144 09-02 01:24:48.930 4263-4263/? I/CameraConfiguration: Using largest suitable preview size: Point(1280, 720) 09-02 01:24:48.930 4263-4263/? I/CameraConfiguration: Camera resolution: Point(1280, 720) 09-02 01:24:48.930 4263-4263/? I/CameraConfiguration: Initial camera parameters: preferred-preview-size-for-video=720x576;rotation-values=0,90,180,270;zoom=0;recording-hint=false;max-num-detected-faces-hw=0;video-stabilization=false;zoom-supported=true;whitebalance=auto;video-stabilization-values=false,true;jpeg-quality=95;nv-flip-preview=off;preview-format-values=yuv420p,yuv420sp;rotation=0;jpeg-thumbnail-quality=90;preview-format=yuv420sp;metering-areas=(0,0,0,0,0);video-frame-format-values=yuv420p;video-size-values=40x30,176x144,320x240,352x288,640x480,704x576,720x480,720x576,768x432,1280x720;nv-flip-preview-values=off,vertical,horizontal,both;preview-size=320x240;focal-length=2.080;preview-frame-rate-values=5,8,10,15,20,24,25,30;max-num-metering-areas=0;preview-frame-rate=30;nv-flip-still=off;focus-mode-values=fixed;jpeg-thumbnail-width=320;video-size=1280x720;preview-fps-range-values=(4000,60000);jpeg-thumbnail-size-values=0x0,320x240;zoom-ratios=100,125,150,175,200,225,250,275,300,325,350,375,400,425,450,475,500,525,550,575,600,625,650,675,700,725,750,775,800;preview-size-values=176x144,320x240,352x288,480x480,640x480,704x576,720x408,720x480,720x576,768x432,800x448,960x720,1280x720;recording-hint-values=false,true;picture-size-values=320x240,480x480,640x480,800x600,1024x768,1280x720,1280x960;preview-fps-range=4000,60000;auto-whitebalance-lock=false;min-exposure-compensation=-20;antibanding=off;max-num-focus-areas=0;vertical-view-angle=72.600;horizontal-view-angle=72.600;video-stabilization-supported=false;jpeg-thumbnail-height=240;smooth-zoom-supported=true;focus-mode=fixed;nv-flip-still-values=off,vertical,horizontal,both;auto-whitebalance-lock-supported=true;video-frame-format=yuv420p;picture-format-values=jpeg,jfif,exif;max-exposure-compensation=20;video-snapshot-supported=true;exposure-compensation=0;exposure-compensation-step=0.1;auto-exposure-lock=false;effect-values=mono,negative,none,posterize,sepia,aqua,solarize,nv-vivid,nv-emboss;picture-size=1280x960;max-zoom=28;effect=none;whitebalance-values=auto,incandescent,fluorescent,daylight;picture-format=jpeg;focus-distances=0.95,1.9,Infinity;auto-exposure-lock-values=false,true;auto-exposure-lock-supported=true;auto-whitebalance-lock-values=false,true;antibanding-values=off,auto,50hz,60hz 09-02 01:24:48.930 4263-4263/? I/CameraConfiguration: Supported values: null 09-02 01:24:48.940 4263-4263/? I/CameraConfiguration: Settable value: null 09-02 01:24:48.940 4263-4263/? I/CameraConfiguration: Supported values: [fixed] 09-02 01:24:48.940 4263-4263/? I/CameraConfiguration: Settable value: null 09-02 01:24:48.940 4263-4263/? I/CameraConfiguration: Supported values: [fixed] 09-02 01:24:48.940 4263-4263/? I/CameraConfiguration: Settable value: null 09-02 01:24:48.940 4263-4263/? I/DecodeThread: Hints: {POSSIBLE_FORMATS=[CODABAR, CODE_39, CODE_93, CODE_128, DATA_MATRIX, EAN_8, EAN_13, ITF, QR_CODE, RSS_14, RSS_EXPANDED, UPC_A, UPC_E], NEED_RESULT_POINT_CALLBACK=com.google.zxing.client.android.ViewfinderResultPointCallback#420c8040} 09-02 01:24:48.960 125-8929/? D/NvOsDebugPrintf: NvMMLiteBlockCreate : Block : BlockType = 1 09-02 01:24:48.970 125-8929/? D/NvOsDebugPrintf: NvMMLiteJPEGEncGetBufferRequirements : BufferSize 1843200 09-02 01:24:49.020 125-8922/? D/: Camera fd open as: 151 09-02 01:24:49.550 125-8929/? D/NvOsDebugPrintf: Image Physically rotated in DZ 09-02 01:24:49.550 125-8929/? D/NvOsDebugPrintf: NvMMExif_Orientation_0_Degrees= 1 09-02 01:24:49.550 125-889/? E/NvOmxCamera: OMX_ERRORTYPE android::NvOmxCamera::getCameraStereoMode(NvxComponent*, NvOmxCameraUserStereoMode&): Error: invalid NVX mode 0. 09-02 01:24:49.550 125-889/? E/NvOmxCamera: OMX_ERRORTYPE android::NvOmxCamera::getCameraStereoModeAndCaptureInfo(NvxComponent*, NvOmxCameraUserStereoMode&, NVX_STEREOCAPTUREINFO&): getCameraStereoMode failed with 0x00000000 09-02 01:24:49.580 4263-4263/? I/PlatformSupportManager: Using implementation class com.google.zxing.client.android.common.executor.HoneycombAsyncTaskExecInterface of interface com.google.zxing.client.android.common.executor.AsyncTaskExecInterface for SDK 11 09-02 01:24:49.580 4263-4263/? I/AutoFocusManager: Current focus mode 'fixed'; use auto focus? false 09-02 01:24:49.600 4263-4263/? I/Choreographer: Skipped 47 frames! The application may be doing too much work on its main thread. 09-02 01:24:49.610 4263-4263/? D/CameraManager: Calculated framing rect: Rect(240, 138 - 1040, 598) 09-02 01:24:49.680 435-451/? I/ActivityManager: Displayed com.google.zxing.client.android/.CaptureActivity: +1s277ms 09-02 01:24:49.680 435-606/? W/InputMethodManagerService: Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy#42ac36f8 (uid=10069 pid=8312) 09-02 01:24:49.690 8312-8312/com.testrotary W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection 09-02 01:24:49.700 122-159/? I/hwcomposer: Setting interactive mode: Off 09-02 01:24:49.740 435-451/? I/WindowManager: Screen frozen for +1s332ms due to Window{425238e0 u0 Starting com.google.zxing.client.android} 09-02 01:24:49.790 4263-4273/? D/dalvikvm: GC_FOR_ALLOC freed 173K, 12% free 8309K/9396K, paused 95ms, total 95ms 09-02 01:24:49.800 4263-4273/? I/dalvikvm-heap: Grow heap (frag case) to 9.491MB for 1382416-byte allocation 09-02 01:24:49.820 122-159/? I/hwcomposer: Setting interactive mode: On 09-02 01:24:49.840 4263-4263/? D/dalvikvm: GC_FOR_ALLOC freed 2K, 11% free 9656K/10748K, paused 38ms, total 38ms 09-02 01:24:49.890 4263-4267/? D/dalvikvm: GC_CONCURRENT freed 4K, 11% free 9654K/10748K, paused 3ms+2ms, total 51ms 09-02 01:24:49.940 8312-8312/com.testrotary W/ZZ: Cr_rr_qrreader:onStop (BASE CLASS) 09-02 01:24:50.100 4263-7700/? D/dalvikvm: GC_FOR_ALLOC freed 1791K, 23% free 8304K/10748K, paused 27ms, total 27ms 09-02 01:24:50.100 4263-7700/? I/dalvikvm-heap: Grow heap (frag case) to 9.486MB for 1382416-byte allocation 09-02 01:24:50.130 4263-4271/? D/dalvikvm: GC_FOR_ALLOC freed 0K, 11% free 9654K/10748K, paused 29ms, total 29ms 09-02 01:24:50.150 122-159/? I/hwcomposer: Setting interactive mode: Off 09-02 01:24:50.170 4263-4267/? D/dalvikvm: GC_CONCURRENT freed 4K, 11% free 9657K/10748K, paused 3ms+10ms, total 41ms 09-02 01:24:50.350 4263-4274/? D/dalvikvm: GC_FOR_ALLOC freed 1780K, 23% free 8304K/10748K, paused 28ms, total 28ms 09-02 01:24:50.350 4263-4274/? I/dalvikvm-heap: Grow heap (frag case) to 9.486MB for 1382416-byte allocation 09-02 01:24:50.380 4263-4271/? D/dalvikvm: GC_FOR_ALLOC freed 0K, 11% free 9654K/10748K, paused 23ms, total 23ms 09-02 01:24:50.410 4263-4267/? D/dalvikvm: GC_CONCURRENT freed 6K, 11% free 9656K/10748K, paused 3ms+4ms, total 29ms 09-02 01:24:50.600 4263-4273/? D/dalvikvm: GC_FOR_ALLOC freed 1780K, 23% free 8304K/10748K, paused 30ms, total 30ms 09-02 01:24:50.600 4263-4273/? I/dalvikvm-heap: Grow heap (frag case) to 9.486MB for 1382416-byte allocation 09-02 01:24:50.630 4263-4271/? D/dalvikvm: GC_FOR_ALLOC freed 0K, 11% free 9654K/10748K, paused 28ms, total 28ms 09-02 01:24:50.660 4263-4267/? D/dalvikvm: GC_CONCURRENT freed 7K, 11% free 9656K/10748K, paused 9ms+1ms, total 33ms 09-02 01:24:50.800 4263-4546/? D/dalvikvm: GC_FOR_ALLOC freed 1777K, 23% free 8304K/10748K, paused 26ms, total 26ms 09-02 01:24:50.800 4263-4546/? I/dalvikvm-heap: Grow heap (frag case) to 9.486MB for 1382416-byte allocation 09-02 01:24:50.820 4263-4271/? D/dalvikvm: GC_FOR_ALLOC freed 0K, 11% free 9654K/10748K, paused 18ms, total 18ms 09-02 01:24:50.850 4263-4267/? D/dalvikvm: GC_CONCURRENT freed 5K, 11% free 9657K/10748K, paused 5ms+3ms, total 28ms 09-02 01:24:50.960 4263-7700/? D/dalvikvm: GC_FOR_ALLOC freed 1781K, 23% free 8304K/10748K, paused 17ms, total 17ms 09-02 01:24:50.960 4263-7700/? I/dalvikvm-heap: Grow heap (frag case) to 9.486MB for 1382416-byte allocation 09-02 01:24:50.980 4263-4271/? D/dalvikvm: GC_FOR_ALLOC freed 0K, 11% free 9654K/10748K, paused 21ms, total 21ms 09-02 01:24:51.010 4263-4267/? D/dalvikvm: GC_CONCURRENT freed 6K, 11% free 9656K/10748K, paused 9ms+2ms, total 28ms 09-02 01:24:51.200 4263-4274/? D/dalvikvm: GC_FOR_ALLOC freed 1777K, 23% free 8304K/10748K, paused 25ms, total 25ms 09-02 01:24:51.200 4263-4274/? I/dalvikvm-heap: Grow heap (frag case) to 9.486MB for 1382416-byte allocation 09-02 01:24:51.220 4263-4271/? D/dalvikvm: GC_FOR_ALLOC freed 0K, 11% free 9654K/10748K, paused 19ms, total 19ms 09-02 01:24:51.260 4263-4267/? D/dalvikvm: GC_CONCURRENT freed 9K, 11% free 9656K/10748K, paused 9ms+5ms, total 34ms 09-02 01:24:51.410 4263-4273/? D/dalvikvm: GC_FOR_ALLOC freed 1775K, 23% free 8304K/10748K, paused 23ms, total 23ms 09-02 01:24:51.410 4263-4273/? I/dalvikvm-heap: Grow heap (frag case) to 9.486MB for 1382416-byte allocation 09-02 01:24:51.430 4263-4271/? D/dalvikvm: GC_FOR_ALLOC freed 0K, 11% free 9654K/10748K, paused 24ms, total 24ms 09-02 01:24:51.470 4263-4267/? D/dalvikvm: GC_CONCURRENT freed 1K, 11% free 9656K/10748K, paused 2ms+4ms, total 40ms 09-02 01:24:51.640 4263-4546/? D/dalvikvm: GC_FOR_ALLOC freed 1785K, 23% free 8304K/10748K, paused 16ms, total 16ms 09-02 01:24:51.640 4263-4546/? I/dalvikvm-heap: Grow heap (frag case) to 9.487MB for 1382416-byte allocation 09-02 01:24:51.660 4263-4271/? D/dalvikvm: GC_FOR_ALLOC freed 0K, 11% free 9654K/10748K, paused 25ms, total 25ms 09-02 01:24:51.690 4263-4267/? D/dalvikvm: GC_CONCURRENT freed 5K, 11% free 9656K/10748K, paused 2ms+3ms, total 30ms 09-02 01:24:51.870 4263-7700/? D/dalvikvm: GC_FOR_ALLOC freed 1779K, 23% free 8304K/10748K, paused 21ms, total 21ms 09-02 01:24:51.870 4263-7700/? I/dalvikvm-heap: Grow heap (frag case) to 9.486MB for 1382416-byte allocation 09-02 01:24:51.890 435-451/? D/dalvikvm: GC_EXPLICIT freed 1189K, 27% free 20885K/28352K, paused 13ms+10ms, total 135ms 09-02 01:24:51.890 4263-4271/? D/dalvikvm: GC_FOR_ALLOC freed 0K, 11% free 9654K/10748K, paused 25ms, total 25ms 09-02 01:24:51.920 4263-4267/? D/dalvikvm: GC_CONCURRENT freed 8K, 11% free 9656K/10748K, paused 3ms+3ms, total 27ms 09-02 01:24:52.100 4263-4546/? D/dalvikvm: GC_FOR_ALLOC freed 1778K, 23% free 8304K/10748K, paused 42ms, total 42ms 09-02 01:24:52.100 4263-4546/? I/dalvikvm-heap: Grow heap (frag case) to 9.486MB for 1382416-byte allocation 09-02 01:24:52.150 4263-4271/? D/dalvikvm: GC_FOR_ALLOC freed <1K, 11% free 9654K/10748K, paused 47ms, total 47ms 09-02 01:24:52.170 4263-4267/? D/dalvikvm: GC_CONCURRENT freed 5K, 11% free 9656K/10748K, paused 3ms+6ms, total 24ms 09-02 01:24:52.260 4263-8928/? D/DecodeHandler: Found barcode in 105 ms 09-02 01:24:52.300 4263-8928/? D/dalvikvm: GC_FOR_ALLOC freed 432K, 11% free 9655K/10748K, paused 45ms, total 45ms 09-02 01:24:52.350 4263-4267/? D/dalvikvm: GC_CONCURRENT freed 2K, 4% free 10369K/10748K, paused 8ms+3ms, total 33ms 09-02 01:24:52.350 4263-8928/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 7ms 09-02 01:24:52.350 4263-4263/? D/CaptureActivityHandler: Got decode succeeded message 09-02 01:24:52.380 4263-4263/? D/dalvikvm: GC_FOR_ALLOC freed 2077K, 22% free 8666K/11100K, paused 18ms, total 18ms 09-02 01:24:53.990 4263-4263/? D/CaptureActivityHandler: Got return scan result message 09-02 01:24:54.160 125-8922/? D/: Camera fd close (MI1040) 09-02 01:24:54.220 125-481/? E/NvOmxCamera: Already called release() 09-02 01:24:54.220 125-481/? I/CameraClient: Destroying camera 0 09-02 01:24:54.220 125-481/? W/NvOmxCamera: Already called release() 09-02 01:24:54.230 125-459/? W/AudioFlinger: session id 3092 not found for pid 125 09-02 01:24:54.230 125-459/? W/AudioFlinger: session id 3093 not found for pid 125 09-02 01:24:54.270 435-487/? I/InputReader: Reconfiguring input devices. changes=0x00000004 09-02 01:24:54.270 435-487/? I/InputReader: Device reconfigured: id=2, name='elan-touchscreen', size 800x1280, orientation 0, mode 1, display id 0 09-02 01:24:54.270 435-1814/? I/ActivityManager: Config changes=1480 {1.0 310mcc?mnc en_US ldltr sw600dp w600dp h880dp 213dpi lrg port finger -keyb/v/h -nav/h s.260} 09-02 01:24:54.310 8312-8312/com.testrotary W/ZZ: Cr_rr_qrreader:onStart (BASE CLASS) 09-02 01:24:54.310 8312-8312/com.testrotary W/ZZ: Cr_rr_qrreader: start GPS is set to NO in the applications configuration data, not starting GPS 09-02 01:24:54.310 8312-8312/com.testrotary W/ZZ: Cr_rr_qrreader:onResume (BASE CLASS) 09-02 01:24:54.330 122-159/? I/hwcomposer: Setting interactive mode: On 09-02 01:24:54.390 4263-4263/? W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection 09-02 01:24:54.400 520-520/? D/PhoneStatusBar: mSettingsPanelGravity = 8388661 09-02 01:24:54.420 520-520/? V/PhoneStatusBar: setLightsOn(true) 09-02 01:24:54.450 14442-14445/? D/dalvikvm: GC_CONCURRENT freed 383K, 6% free 7613K/8068K, paused 1ms+3ms, total 147ms 09-02 01:24:54.540 435-451/? I/WindowManager: Screen frozen for +302ms due to Window{4237e0a8 u0 com.testrotary/com.testrotary.Cr_rr_qrreader} 09-02 01:24:56.650 435-451/? D/dalvikvm: GC_EXPLICIT freed 631K, 26% free 21049K/28352K, paused 15ms+9ms, total 111ms 09-02 01:30:01.270 14442-14442/? V/DigitalWidgetViewsFactory: DigitalWidget sets next alarm string to null 09-02 01:30:24.050 435-508/? I/ActivityManager: Start proc com.google.android.apps.currents for service com.google.android.apps.currents/com.google.apps.dots.android.app.service.SyncService: pid=9079 uid=10009 gids={50009, 3003, 1015, 1028} 09-02 01:30:24.450 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 266K, 5% free 7663K/7992K, paused 4ms+1ms, total 31ms 09-02 01:30:24.450 9079-9097/? D/ActivityThread: Loading provider com.google.android.apps.currents: com.google.apps.dots.android.currents.provider.CurrentsContentProvider 09-02 01:30:24.560 9079-9079/? W/GAV2: Thread[main,5,main]: Need to call initialize() and be in fallback mode to start dispatch. 09-02 01:30:24.740 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 341K, 5% free 7833K/8236K, paused 2ms+2ms, total 20ms 09-02 01:30:24.740 9079-9079/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 5ms 09-02 01:30:24.740 9079-9079/? I/DotsApplication: Starting up... 09-02 01:30:24.760 9079-9107/? I/SyncService: Starting background sync (01:30:24) 09-02 01:30:27.260 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 249K, 4% free 7985K/8296K, paused 6ms+3ms, total 23ms 09-02 01:30:27.890 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 337K, 5% free 8077K/8476K, paused 3ms+3ms, total 30ms 09-02 01:30:27.990 9079-9110/? D/dalvikvm: GC_FOR_ALLOC freed 111K, 4% free 8289K/8628K, paused 16ms, total 16ms 09-02 01:30:28.020 9079-9110/? D/dalvikvm: GC_FOR_ALLOC freed 348K, 7% free 8278K/8840K, paused 15ms, total 15ms 09-02 01:30:28.510 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 497K, 7% free 8285K/8848K, paused 2ms+3ms, total 23ms 09-02 01:30:28.620 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 258K, 4% free 8517K/8848K, paused 3ms+5ms, total 26ms 09-02 01:30:28.680 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 271K, 4% free 8750K/9088K, paused 2ms+2ms, total 20ms 09-02 01:30:28.680 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 7ms 09-02 01:30:28.730 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 285K, 4% free 8972K/9324K, paused 3ms+2ms, total 25ms 09-02 01:30:28.730 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 10ms 09-02 01:30:28.790 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 335K, 5% free 9136K/9540K, paused 3ms+2ms, total 26ms 09-02 01:30:28.790 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 4ms 09-02 01:30:28.840 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 403K, 5% free 9209K/9680K, paused 2ms+2ms, total 24ms 09-02 01:30:29.160 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 433K, 6% free 9275K/9776K, paused 5ms+2ms, total 35ms 09-02 01:30:29.620 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 488K, 6% free 9280K/9836K, paused 3ms+3ms, total 31ms 09-02 01:30:29.760 9079-9102/? I/GAV2: Thread[GAThread,5,main]: No campaign data found. 09-02 01:30:29.930 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 469K, 6% free 9405K/9940K, paused 2ms+3ms, total 26ms 09-02 01:30:30.000 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 542K, 7% free 9415K/10108K, paused 3ms+1ms, total 22ms 09-02 01:30:30.000 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 19ms 09-02 01:30:30.100 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 496K, 7% free 9479K/10108K, paused 3ms+2ms, total 26ms 09-02 01:30:30.340 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 712K, 8% free 9403K/10184K, paused 2ms+3ms, total 25ms 09-02 01:30:30.560 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 633K, 8% free 9415K/10184K, paused 2ms+2ms, total 28ms 09-02 01:30:30.560 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 7ms 09-02 01:30:30.770 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 505K, 7% free 9512K/10184K, paused 3ms+2ms, total 26ms 09-02 01:30:30.990 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 633K, 7% free 9529K/10232K, paused 3ms+3ms, total 30ms 09-02 01:30:31.090 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 627K, 7% free 9585K/10280K, paused 1ms+2ms, total 25ms 09-02 01:30:31.090 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 8ms 09-02 01:30:31.200 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 560K, 7% free 9625K/10280K, paused 1ms+2ms, total 24ms 09-02 01:30:31.490 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 696K, 8% free 9611K/10376K, paused 2ms+2ms, total 25ms 09-02 01:30:31.630 9079-9110/? D/dalvikvm: GC_FOR_ALLOC freed 344K, 7% free 9653K/10376K, paused 22ms, total 22ms 09-02 01:30:31.690 9079-9110/? D/dalvikvm: GC_FOR_ALLOC freed 481K, 8% free 9669K/10444K, paused 21ms, total 21ms 09-02 01:30:31.790 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 615K, 7% free 9780K/10464K, paused 3ms+2ms, total 27ms 09-02 01:30:31.790 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 6ms 09-02 01:30:32.020 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 752K, 8% free 9789K/10612K, paused 3ms+2ms, total 28ms 09-02 01:30:32.020 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 12ms 09-02 01:30:32.350 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 844K, 9% free 9710K/10624K, paused 3ms+2ms, total 27ms 09-02 01:30:32.350 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 11ms 09-02 01:30:32.570 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 708K, 9% free 9724K/10624K, paused 3ms+1ms, total 27ms 09-02 01:30:32.770 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 710K, 9% free 9764K/10624K, paused 4ms+2ms, total 30ms 09-02 01:30:32.770 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 13ms 09-02 01:30:33.140 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 826K, 9% free 9702K/10624K, paused 2ms+2ms, total 26ms 09-02 01:30:33.140 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 8ms 09-02 01:30:33.320 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 677K, 9% free 9757K/10624K, paused 3ms+2ms, total 27ms 09-02 01:30:33.630 435-705/? D/dalvikvm: GC_EXPLICIT freed 3092K, 26% free 21035K/28352K, paused 6ms+9ms, total 112ms 09-02 01:30:33.690 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 641K, 9% free 9770K/10624K, paused 2ms+2ms, total 26ms 09-02 01:30:33.980 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 1147K, 12% free 9389K/10624K, paused 3ms+2ms, total 27ms 09-02 01:30:33.980 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 10ms 09-02 01:30:34.230 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 634K, 12% free 9393K/10624K, paused 1ms+2ms, total 25ms 09-02 01:30:34.230 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 9ms 09-02 01:30:34.420 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 637K, 12% free 9398K/10624K, paused 3ms+2ms, total 26ms 09-02 01:30:34.420 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 8ms 09-02 01:30:34.620 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 597K, 12% free 9416K/10624K, paused 1ms+3ms, total 24ms 09-02 01:30:34.800 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 555K, 11% free 9510K/10624K, paused 1ms+2ms, total 24ms 09-02 01:30:34.800 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 8ms 09-02 01:30:37.270 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 492K, 9% free 9698K/10624K, paused 2ms+2ms, total 25ms 09-02 01:30:37.270 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 15ms 09-02 01:30:37.350 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 159K, 4% free 10282K/10624K, paused 1ms+2ms, total 27ms 09-02 01:30:37.350 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 14ms 09-02 01:30:37.480 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 1108K, 11% free 10104K/11280K, paused 1ms+4ms, total 39ms 09-02 01:30:37.480 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 26ms 09-02 01:30:37.580 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 1589K, 17% free 9393K/11280K, paused 3ms+2ms, total 29ms 09-02 01:30:37.580 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 10ms 09-02 01:30:37.650 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 612K, 17% free 9402K/11280K, paused 3ms+3ms, total 27ms 09-02 01:30:37.720 9079-9082/? D/dalvikvm: GC_CONCURRENT freed 613K, 17% free 9429K/11280K, paused 2ms+2ms, total 26ms 09-02 01:30:37.720 9079-9110/? D/dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 9ms 09-02 01:30:37.740 9079-9107/? I/SyncService: sync service finished (01:30:37) 09-02 01:32:50.500 435-474/? W/ActivityManager: Unable to start service Intent { flg=0x4 cmp=com.google.android.apps.maps/com.google.googlenav.prefetch.android.PrefetcherService (has extras) } U=0: not found 09-02 01:32:59.940 27449-9143/? W/l: [TiclService] Skipping unknown enum class name ah 09-02 01:32:59.940 27449-9143/? W/l: [TiclService] Skipping unknown enum class name ah 09-02 01:32:59.980 27449-27453/? D/dalvikvm: GC_CONCURRENT freed 478K, 7% free 7816K/8356K, paused 8ms+1ms, total 72ms 09-02 01:33:00.610 27449-9152/? W/MsgSenderSvc: IOException sending to the data center (https://clients4.google.com//invalidation/android/request/CHES6wESzAFBUEE5MWJHWHV3N21JUVBxQ0h2bWJubERVdXd4MUtkLVNob29MbG8xNWI5Q2x1WXVfZlliNHhwaVVJZUh3Ti02LTB0UmJiY2pyeEZjV3NQSG5GbVRKUGZjMDB6NXByZkZydFVxbV93ZmNob0tVbHpsNGVhUFJXMGExcjI0MjZSZGVCam1JcHF3emduTGVaYUNhUmZnS3hlZWNTNlJLUFd1TEVPOWdkaC1BN1FNemtIZjBSUl9iUWgzX2o4dHRBTlE2LXNYRTJ2cWZ4ZzgaACoECAAQADISY29tLmFuZHJvaWQuY2hyb21l?service=chromiumsync): java.io.EOFException What's strange is that the QR Code Reader app briefly shows the text from the QR Code before exiting back to my app. So the code was scanned successfully. However, when my app is returned, the onActivityResult doesn't fire. I'm guessing it's a problem with something (the IntentIntegrator maybe?) not being released from memory properly. I'm testing this on a Google Nexus 7 (1st gen) device using the front camera.
I think I fixed it. Changed the calling method to: public void performScan(){ IntentIntegrator scanIntegrator = new IntentIntegrator(this); scanIntegrator.initiateScan(); } ("thisActivity") was previously being defined and must have been released along the way.