In logcat I found these messages, my application runs correctly (No error/ No exception/ and correct result), but why these messages appears in log cat. I closed all cursors. And one more thing, Application goes a little bit slow to displaying activity( Which activity is listed in my logcat message), I think it takes that time to generate these log messages. What is solution for this.
I/ActivityManager( 63): Starting activity: Intent { cmp=com.pankaj.myapp/.SelectedContactActivity (has extras) }
D/dalvikvm( 251): GC freed 2584 objects / 174064 bytes in 139ms
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d2c688 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d2bf58 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d2b5a8 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d29af0 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d293c0 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d28a28 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d26f70 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d26808 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d25e60 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d24310 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d23be0 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d23238 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d21780 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d21028 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d20688 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d1ebd0 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d1e480 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d1dae0 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d1bfa0 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d1b760 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 251): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 251): Ljava/lang/IllegalStateException;: Finalizing cursor android.database.sqlite.SQLiteCursor#43d1ac40 on contacts_tags that has not been deactivated or closed
I/dalvikvm( 251): at android.database.sqlite.SQLiteCursor.finalize(SQLiteCursor.java:596)
I/dalvikvm( 251): at dalvik.system.NativeStart.run(Native Method)
I/ActivityManager( 63): Displayed activity com.pankaj.myapp/.SelectedContactActivity: 2245 ms (total 2245 ms)
Caller Activity is using List View, And after clicking of list item "SelectedContactActivity" activity calls.
In caller Activity
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.contacts_list_item);
SimpleAdapter contactAdapter = getAdapter(); // This method returns SimpleAdapter object
// Bind to our new adapter.
setListAdapter(contactAdapter);
}
protected void onListItemClick(ListView l, View view, int position, long id) {
super.onListItemClick(l, view, position, id);
Intent intent = new Intent().setClass(this, AddModifyTag.class);
intent.putExtra("_id",contactInfo.get("_id"));
intent.putExtra("name", contactInfo.get("name"));
intent.putExtra("number", contactInfo.get("number"));
intent.putExtra("position", position);
this.startActivityForResult(intent, EDIT_CONTACT_TAGS);
}
On called Activity
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
......
......
Cursor tags;
db.open();
tags = db.getContactTags(contactID);
startManagingCursor(tags);
.......
.......
db.close();
}
I think you are getting this error because you did not close the Cursor in onStop() or onDestroy(). Try to close the Cursor. You can also use startManagingCursor() for you Cursor which will help you to close the Cursor by Android.
Related
I have a activity which uses a listview element as follows
public class List1 extends Activity
{
Context context=this;
#Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.listview);
try{
//DB
final SQLiteDatabase db;
db = openOrCreateDatabase(
"Secret.db"
, SQLiteDatabase.CREATE_IF_NECESSARY
, null
);
db.setVersion(1);
db.setLocale(Locale.getDefault());
db.setLockingEnabled(true);
Cursor cur = db.query("tbl_user",null,null,null,null,null,null);
//DB Over
ListView listView = (ListView) findViewById(R.id.mylist);
listView.setTextFilterEnabled(true);
final String[] values = new String[50];
int i=0;
while(cur.moveToNext())
{
values[i]=Integer.toString(cur.getInt(0))+":"+cur.getString(1)+":"+cur.getString(2);
i++;
}
cur.close();
ArrayAdapter<String> adapter = new ArrayAdapter<String>(context,R.layout.list_item,values);
listView.setAdapter(adapter);
listView.setVisibility(0);
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view, int position,long id)
//public void onItemClick(ListView<?> listview, View view, int position,long id)
{
try
{
Intent i=new Intent(List1.this,Form1.class);
i.putExtra("uid","85");
startActivity(i);
finish();
}
catch(Exception e)
{
String insert2="insert into login values("+"\""+e.toString()+"\""+");";
db.execSQL(insert2);
}
}
});
db.close();
//required
}
catch(Exception e)
{
Toast.makeText(getApplicationContext(), e.toString(), Toast.LENGTH_LONG).show();}
}
}
This is my listview.xml file
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<ListView
android:id="#+id/mylist"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
</ListView>
</RelativeLayout>
This is my list_item.xml file which has the required textview
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="#+id/tv1"
android:padding="10dp"
android:background="#drawable/textview1"
style="#style/textview_text"
android:textSize="16dp">
</TextView>
But the ListView is not working. I mean after coming to this activity the app is showing error showing "APP_NAME is stopped unexpectedly". The same code works for one or two times and then shows the above error continuously after that. May I kno why is it happening?
EDIT
This is logcat file
W/dalvikvm( 2694): threadid=3: thread exiting with uncaught exception (group=0x4
001b188)
E/AndroidRuntime( 2694): Uncaught handler: thread main exiting due to uncaught e
xception
E/AndroidRuntime( 2694): java.lang.NullPointerException
E/AndroidRuntime( 2694): at android.widget.ArrayAdapter.createViewFromRes
ource(ArrayAdapter.java:355)
E/AndroidRuntime( 2694): at android.widget.ArrayAdapter.getView(ArrayAdap
ter.java:323)
E/AndroidRuntime( 2694): at android.widget.AbsListView.obtainView(AbsList
View.java:1274)
E/AndroidRuntime( 2694): at android.widget.ListView.makeAndAddView(ListVi
ew.java:1668)
E/AndroidRuntime( 2694): at android.widget.ListView.fillDown(ListView.jav
a:637)
E/AndroidRuntime( 2694): at android.widget.ListView.fillFromTop(ListView.
java:694)
E/AndroidRuntime( 2694): at android.widget.ListView.layoutChildren(ListVi
ew.java:1521)
E/AndroidRuntime( 2694): at android.widget.AbsListView.onLayout(AbsListVi
ew.java:1113)
E/AndroidRuntime( 2694): at android.view.View.layout(View.java:6830)
E/AndroidRuntime( 2694): at android.widget.RelativeLayout.onLayout(Relati
veLayout.java:900)
E/AndroidRuntime( 2694): at android.view.View.layout(View.java:6830)
E/AndroidRuntime( 2694): at android.widget.FrameLayout.onLayout(FrameLayo
ut.java:333)
E/AndroidRuntime( 2694): at android.view.View.layout(View.java:6830)
E/AndroidRuntime( 2694): at android.widget.LinearLayout.setChildFrame(Lin
earLayout.java:1119)
E/AndroidRuntime( 2694): at android.widget.LinearLayout.layoutVertical(Li
nearLayout.java:998)
E/AndroidRuntime( 2694): at android.widget.LinearLayout.onLayout(LinearLa
yout.java:918)
E/AndroidRuntime( 2694): at android.view.View.layout(View.java:6830)
E/AndroidRuntime( 2694): at android.widget.FrameLayout.onLayout(FrameLayo
ut.java:333)
E/AndroidRuntime( 2694): at android.view.View.layout(View.java:6830)
E/AndroidRuntime( 2694): at android.view.ViewRoot.performTraversals(ViewR
oot.java:996)
E/AndroidRuntime( 2694): at android.view.ViewRoot.handleMessage(ViewRoot.
java:1633)
E/AndroidRuntime( 2694): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 2694): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 2694): at android.app.ActivityThread.main(ActivityThrea
d.java:4363)
E/AndroidRuntime( 2694): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 2694): at java.lang.reflect.Method.invoke(Method.java:5
21)
E/AndroidRuntime( 2694): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 2694): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:618)
E/AndroidRuntime( 2694): at dalvik.system.NativeStart.main(Native Method)
D/dalvikvm( 2694): GC freed 6621 objects / 343272 bytes in 126ms
I/dalvikvm( 2694): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 2694): Ljava/lang/IllegalStateException;: Finalizing cursor android.
database.sqlite.SQLiteCursor#44c60cd0 on login that has not been deactivated or
closed
I/dalvikvm( 2694): at android.database.sqlite.SQLiteCursor.finalize(SQLiteC
ursor.java:596)
I/dalvikvm( 2694): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 2694): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 2694): Ljava/lang/IllegalStateException;: Finalizing cursor android.
database.sqlite.SQLiteCursor#44c58028 on login that has not been deactivated or
closed
I/dalvikvm( 2694): at android.database.sqlite.SQLiteCursor.finalize(SQLiteC
ursor.java:596)
I/dalvikvm( 2694): at dalvik.system.NativeStart.run(Native Method)
I/dalvikvm( 2694): Uncaught exception thrown by finalizer (will be discarded):
I/dalvikvm( 2694): Ljava/lang/IllegalStateException;: Finalizing cursor android.
database.sqlite.SQLiteCursor#44c37fa0 on login that has not been deactivated or
closed
I/dalvikvm( 2694): at android.database.sqlite.SQLiteCursor.finalize(SQLiteC
ursor.java:596)
I/dalvikvm( 2694): at dalvik.system.NativeStart.run(Native Method)
I/Process ( 52): Sending signal. PID: 2694 SIG: 3
I/dalvikvm( 2694): threadid=7: reacting to signal 3
I/dalvikvm( 2694): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 2694): Sending signal. PID: 2694 SIG: 9
I/ActivityManager( 52): Process com.notification (pid 2694) has died.
I/WindowManager( 52): WIN DEATH: Window{44d90538 com.notification/com.notifica
tion.List1 paused=false}
I/UsageStats( 52): Unexpected resume of com.android.launcher while already res
umed in com.notification
W/InputManagerService( 52): Window already focused, ignoring focus gain of: co
m.android.internal.view.IInputMethodClient$Stub$Proxy#44d933c8
I/ActivityManager( 52): Start proc com.notification for broadcast com.notifica
tion/.AlarmReceiver: pid=2706 uid=10034 gids={3003}
D/ddm-heap( 2706): Got feature list request
D/dalvikvm( 1152): GC freed 194 objects / 8728 bytes in 88ms
I/ActivityManager( 52): Starting activity: Intent { act=android.intent.action.
MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.notification/
.NotificationActivity }
I/ActivityManager( 52): Starting activity: Intent { cmp=com.notification/.Back
ground }
I/ActivityManager( 52): Displayed activity com.notification/.Background: 262 m
s (total 8081 ms)
D/dalvikvm( 234): GC freed 44 objects / 2064 bytes in 134ms
D/AndroidRuntime( 2718):
D/AndroidRuntime( 2718): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 2718): CheckJNI is ON
D/AndroidRuntime( 2718): --- registering native functions ---
D/ddm-heap( 2718): Got feature list request
D/PackageParser( 52): Scanning package: /data/app/vmdl67950.tmp
I/PackageManager( 52): Removing non-system package:com.notification
D/PackageManager( 52): Removing package com.notification
D/PackageManager( 52): Services: com.notification.BackService
D/PackageManager( 52): Receivers: com.notification.AlarmReceiver
D/PackageManager( 52): Activities: com.notification.NotificationActivity com
.notification.Form1 com.notification.Background com.notification.Bg com.notifica
tion.List1
W/InputManagerService( 52): Window already focused, ignoring focus gain of: co
m.android.internal.view.IInputMethodClient$Stub$Proxy#44eb1868
D/PackageManager( 52): Scanning package com.notification
I/PackageManager( 52): /data/app/vmdl67950.tmp changed; unpacking
D/installd( 32): DexInv: --- BEGIN '/data/app/vmdl67950.tmp' ---
D/dalvikvm( 2724): DexOpt: load 40ms, verify 159ms, opt 2ms
D/installd( 32): DexInv: --- END '/data/app/vmdl67950.tmp' (success) ---
D/PackageManager( 52): Services: com.notification.BackService
D/PackageManager( 52): Receivers: com.notification.AlarmReceiver
D/PackageManager( 52): Activities: com.notification.NotificationActivity com
.notification.Form1 com.notification.Background com.notification.Bg com.notifica
tion.List1
D/ActivityManager( 52): Uninstalling process com.notification
D/ActivityManager( 52): Force removing process ProcessRecord{44e9eb48 2706:com
.notification/10034} (com.notification/10034)
I/Process ( 52): Sending signal. PID: 2706 SIG: 9
D/ActivityManager( 52): Received spurious death notification for thread androi
d.os.BinderProxy#44eec8b8
I/installd( 32): move /data/dalvik-cache/data#app#vmdl67950.tmp#classes.dex ->
/data/dalvik-cache/data#app#com.notification.apk#classes.dex
D/PackageManager( 52): New package installed in /data/app/com.notification.apk
D/AndroidRuntime( 2718): Shutting down VM
D/dalvikvm( 2718): DestroyJavaVM waiting for non-daemon threads to exit
D/dalvikvm( 2718): DestroyJavaVM shutting VM down
D/dalvikvm( 2718): HeapWorker thread shutting down
D/dalvikvm( 2718): HeapWorker thread has shut down
D/jdwp ( 2718): JDWP shutting down net...
I/dalvikvm( 2718): Debugger has detached; object registry had 1 entries
D/dalvikvm( 2718): VM cleaning up
D/dalvikvm( 2718): LinearAlloc 0x0 used 623916 of 5242880 (11%)
D/ActivityManager( 52): Uninstalling process com.notification
I/dalvikvm( 2718): JNI: AttachCurrentThread (from ???.???)
E/AndroidRuntime( 2718): ERROR: thread attach failed
W/ResourceType( 52): Resources don't contain package for resource number 0x7f0
700e5
W/ResourceType( 52): Resources don't contain package for resource number 0x7f0
20031
W/ResourceType( 52): Resources don't contain package for resource number 0x7f0
20030
W/ResourceType( 52): Resources don't contain package for resource number 0x7f0
50000
W/ResourceType( 52): Resources don't contain package for resource number 0x7f0
60000
W/ResourceType( 52): Resources don't contain package for resource number 0x7f0
60001
D/dalvikvm( 1152): GC freed 139 objects / 5928 bytes in 230ms
D/dalvikvm( 52): GC freed 14606 objects / 863536 bytes in 259ms
W/ResourceType( 52): Resources don't contain package for resource number 0x7f0
700e5
W/ResourceType( 52): Resources don't contain package for resource number 0x7f0
20031
W/ResourceType( 52): Resources don't contain package for resource number 0x7f0
20030
W/ResourceType( 52): Resources don't contain package for resource number 0x7f0
50000
D/dalvikvm( 52): GC freed 425 objects / 17320 bytes in 275ms
W/ResourceType( 52): Resources don't contain package for resource number 0x7f0
60000
W/ResourceType( 52): Resources don't contain package for resource number 0x7f0
60001
D/AndroidRuntime( 2729):
D/AndroidRuntime( 2729): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 2729): CheckJNI is ON
D/AndroidRuntime( 2729): --- registering native functions ---
D/ddm-heap( 2729): Got feature list request
I/ActivityManager( 52): Starting activity: Intent { act=android.intent.action.
MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.notification/
.NotificationActivity }
I/ActivityManager( 52): Start proc com.notification for activity com.notificat
ion/.NotificationActivity: pid=2735 uid=10034 gids={3003}
D/AndroidRuntime( 2729): Shutting down VM
D/dalvikvm( 2729): DestroyJavaVM waiting for non-daemon threads to exit
D/dalvikvm( 2729): DestroyJavaVM shutting VM down
D/dalvikvm( 2729): HeapWorker thread shutting down
D/dalvikvm( 2729): HeapWorker thread has shut down
D/jdwp ( 2729): JDWP shutting down net...
I/dalvikvm( 2729): Debugger has detached; object registry had 1 entries
D/dalvikvm( 2729): VM cleaning up
E/AndroidRuntime( 2729): ERROR: thread attach failed
D/dalvikvm( 2729): LinearAlloc 0x0 used 639500 of 5242880 (12%)
D/dalvikvm( 30): GC freed 299 objects / 11576 bytes in 264ms
D/ddm-heap( 2735): Got feature list request
D/dalvikvm( 30): GC freed 57 objects / 2432 bytes in 160ms
D/dalvikvm( 30): GC freed 2 objects / 48 bytes in 360ms
I/ActivityManager( 52): Displayed activity com.notification/.NotificationActiv
ity: 1204 ms (total 1204 ms)
W/KeyCharacterMap( 2735): No keyboard for id 0
W/KeyCharacterMap( 2735): Using default keymap: /system/usr/keychars/qwerty.kcm.
bin
I/ActivityManager( 52): Starting activity: Intent { cmp=com.notification/.Bg (
has extras) }
I/ActivityManager( 52): Displayed activity com.notification/.Bg: 329 ms (total
329 ms)
D/dalvikvm( 1152): GC freed 2454 objects / 141000 bytes in 600ms
I/ActivityManager( 52): Starting activity: Intent { cmp=com.notification/.List
1 bnds=[0,152][480,248] }
W/ActivityManager( 52): startActivity called from non-Activity context; forcin
g Intent.FLAG_ACTIVITY_NEW_TASK for: Intent { cmp=com.notification/.List1 bnds=[
0,152][480,248] }
D/AndroidRuntime( 2735): Shutting down VM
W/dalvikvm( 2735): threadid=3: thread exiting with uncaught exception (group=0x4
001b188)
E/AndroidRuntime( 2735): Uncaught handler: thread main exiting due to uncaught e
xception
E/AndroidRuntime( 2735): java.lang.NullPointerException
E/AndroidRuntime( 2735): at android.widget.ArrayAdapter.createViewFromRes
ource(ArrayAdapter.java:355)
E/AndroidRuntime( 2735): at android.widget.ArrayAdapter.getView(ArrayAdap
ter.java:323)
E/AndroidRuntime( 2735): at android.widget.AbsListView.obtainView(AbsList
View.java:1256)
E/AndroidRuntime( 2735): at android.widget.ListView.measureHeightOfChildr
en(ListView.java:1147)
E/AndroidRuntime( 2735): at android.widget.ListView.onMeasure(ListView.ja
va:1060)
E/AndroidRuntime( 2735): at android.view.View.measure(View.java:7964)
E/AndroidRuntime( 2735): at android.widget.RelativeLayout.measureChild(Re
lativeLayout.java:554)
E/AndroidRuntime( 2735): at android.widget.RelativeLayout.onMeasure(Relat
iveLayout.java:377)
E/AndroidRuntime( 2735): at android.view.View.measure(View.java:7964)
E/AndroidRuntime( 2735): at android.view.ViewGroup.measureChildWithMargin
s(ViewGroup.java:3023)
E/AndroidRuntime( 2735): at android.widget.FrameLayout.onMeasure(FrameLay
out.java:245)
E/AndroidRuntime( 2735): at android.view.View.measure(View.java:7964)
E/AndroidRuntime( 2735): at android.widget.LinearLayout.measureVertical(L
inearLayout.java:464)
E/AndroidRuntime( 2735): at android.widget.LinearLayout.onMeasure(LinearL
ayout.java:278)
E/AndroidRuntime( 2735): at android.view.View.measure(View.java:7964)
E/AndroidRuntime( 2735): at android.view.ViewGroup.measureChildWithMargin
s(ViewGroup.java:3023)
E/AndroidRuntime( 2735): at android.widget.FrameLayout.onMeasure(FrameLay
out.java:245)
E/AndroidRuntime( 2735): at android.view.View.measure(View.java:7964)
E/AndroidRuntime( 2735): at android.view.ViewRoot.performTraversals(ViewR
oot.java:763)
E/AndroidRuntime( 2735): at android.view.ViewRoot.handleMessage(ViewRoot.
java:1633)
E/AndroidRuntime( 2735): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 2735): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 2735): at android.app.ActivityThread.main(ActivityThrea
d.java:4363)
E/AndroidRuntime( 2735): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 2735): at java.lang.reflect.Method.invoke(Method.java:5
21)
E/AndroidRuntime( 2735): at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 2735): at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:618)
E/AndroidRuntime( 2735): at dalvik.system.NativeStart.main(Native Method)
I/Process ( 52): Sending signal. PID: 2735 SIG: 3
I/dalvikvm( 2735): threadid=7: reacting to signal 3
I/dalvikvm( 2735): Wrote stack trace to '/data/anr/traces.txt'
W/ActivityManager( 52): Launch timeout has expired, giving up wake lock!
W/ActivityManager( 52): Activity idle timeout for HistoryRecord{44dcace0 com.n
otification/.List1}
I/Process ( 2735): Sending signal. PID: 2735 SIG: 9
I/ActivityManager( 52): Process com.notification (pid 2735) has died.
I/WindowManager( 52): WIN DEATH: Window{44d8db78 com.notification/com.notifica
tion.List1 paused=false}
I/UsageStats( 52): Unexpected resume of com.android.launcher while already res
umed in com.notification
I/ActivityManager( 52): Start proc com.notification for broadcast com.notifica
tion/.AlarmReceiver: pid=2745 uid=10034 gids={3003}
W/InputManagerService( 52): Window already focused, ignoring focus gain of: co
m.android.internal.view.IInputMethodClient$Stub$Proxy#44f2e3d8
E/gralloc ( 52): [unregister] handle 0x423290 still locked (state=40000001)
D/ddm-heap( 2745): Got feature list request
D/dalvikvm( 1152): GC freed 212 objects / 9560 bytes in 82ms
I/ActivityManager( 52): Starting activity: Intent { act=android.intent.action.
MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.notification/
.NotificationActivity }
I/ActivityManager( 52): Starting activity: Intent { cmp=com.notification/.Back
ground }
I/ActivityManager( 52): Displayed activity com.notification/.Background: 240 m
s (total 16387 ms)
D/dalvikvm( 234): GC freed 43 objects / 2024 bytes in 152ms
i think your adapter should know which textViewResourceId it should use.
So try this out: ArrayAdapter<String> adapter = new ArrayAdapter<String>(context,R.layout.list_item, R.id.tv1,values);
Change this to
<ListView
android:id="#+id/mylist"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
this
<ListView
android:id="#+id/mylist"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
And why do you need listView.setVisibility(0)?
final String[] values = new String[50];
int i=0;
while(cur.moveToNext())
{
values[i]=Integer.toString(cur.getInt(0))+":"+cur.getString(1)+":"+cur.getString(2);
i++;
}
cur.close();
Starting from the this spinet of code.
When the db.query returns you should rewind the cursor before starting to use it in the while loop. What if the query returns more the 50 results? Your app will crash with ArrayOutBoundException
I'm trying to run the example from NDK package on a AT91SAM9M10-EKES board running Android 2.1
The activity fails.
This is what I get in the logcat, Can someone please guide me with this ?
D/AndroidRuntime( 1153): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 1153): CheckJNI is ON
D/AndroidRuntime( 1153): --- registering native functions ---
D/ddm-heap( 1153): Got feature list request
D/AndroidRuntime( 1153): Shutting down VM
D/dalvikvm( 1153): DestroyJavaVM waiting for non-daemon threads to exit
D/dalvikvm( 1153): DestroyJavaVM shutting VM down
D/dalvikvm( 1153): HeapWorker thread shutting down
D/dalvikvm( 1153): HeapWorker thread has shut down
D/jdwp ( 1153): JDWP shutting down net...
I/dalvikvm( 1153): Debugger has detached; object registry had 1 entries
D/dalvikvm( 1153): VM cleaning up
E/AndroidRuntime( 1153): ERROR: thread attach failed
D/dalvikvm( 1153): LinearAlloc 0x0 used 629532 of 5242880 (12%)
D/AndroidRuntime( 1161):
D/AndroidRuntime( 1161): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 1161): CheckJNI is ON
D/AndroidRuntime( 1161): --- registering native functions ---
D/ddm-heap( 1161): Got feature list request
I/ActivityManager( 767): Starting activity: Intent { act=android.intent.action.MAIN cat=android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.example.hellojni/.HelloJni }
D/AndroidRuntime( 1161): Shutting down VM
D/dalvikvm( 1161): DestroyJavaVM waiting for non-daemon threads to exit
D/dalvikvm( 1161): DestroyJavaVM shutting VM down
D/dalvikvm( 1161): HeapWorker thread shutting down
D/dalvikvm( 1161): HeapWorker thread has shut down
D/jdwp ( 1161): JDWP shutting down net...
I/dalvikvm( 1161): Debugger has detached; object registry had 1 entries
D/dalvikvm( 1161): VM cleaning up
E/AndroidRuntime( 1161): ERROR: thread attach failed
D/dalvikvm( 1161): LinearAlloc 0x0 used 639500 of 5242880 (12%)
I/ActivityManager( 767): Start proc com.example.hellojni for activity com.example.hellojni/.HelloJni: pid=1168 uid=10018 gids={1015}
D/ddm-heap( 1168): Got feature list request
W/dalvikvm( 1168): Exception Ljava/lang/UnsatisfiedLinkError; thrown during Lcom/example/hellojni/HelloJni;.<clinit>
W/dalvikvm( 1168): Class init failed in newInstance call (Lcom/example/hellojni/HelloJni;)
D/AndroidRuntime( 1168): Shutting down VM
W/dalvikvm( 1168): threadid=3: thread exiting with uncaught exception (group=0x4001b168)
E/AndroidRuntime( 1168): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 1168): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 1168): at java.lang.Class.newInstanceImpl(Native Method)
E/AndroidRuntime( 1168): at java.lang.Class.newInstance(Class.java:1479)
E/AndroidRuntime( 1168): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
E/AndroidRuntime( 1168): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2409)
E/AndroidRuntime( 1168): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
E/AndroidRuntime( 1168): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
E/AndroidRuntime( 1168): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
E/AndroidRuntime( 1168): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1168): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 1168): at android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime( 1168): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1168): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 1168): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 1168): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 1168): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 1168): Caused by: java.lang.UnsatisfiedLinkError: Library hello-jni not found
E/AndroidRuntime( 1168): at java.lang.Runtime.loadLibrary(Runtime.java:489)
E/AndroidRuntime( 1168): at java.lang.System.loadLibrary(System.java:557)
E/AndroidRuntime( 1168): at com.example.hellojni.HelloJni.<clinit>(HelloJni.java:64)
E/AndroidRuntime( 1168): ... 15 more
I/Process ( 767): Sending signal. PID: 1168 SIG: 3
I/dalvikvm( 1168): threadid=7: reacting to signal 3
E/dalvikvm( 1168): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
W/ActivityManager( 767): Launch timeout has expired, giving up wake lock!
W/ActivityManager( 767): Activity idle timeout for HistoryRecord{43d5c310 com.example.hellojni/.HelloJni}
D/dalvikvm( 813): GC freed 301 objects / 14832 bytes in 91ms
I/power ( 767): *** set_screen_state 0
E/power ( 767): Failed setting last user activity: g_error=0
W/ActivityManager( 767): Activity pause timeout for HistoryRecord{43d5c310 com.example.hellojni/.HelloJni}
D/dalvikvm( 873): GC freed 165 objects / 6624 bytes in 81ms
you hadnt built the library(.so) file of the project thats why you are getting this error, try to build the project with help of android-ndk http://developer.android.com/sdk/ndk/index.html and cygwin http://www.cygwin.com/
I am getting a large or big value from the webservice. I am using sax parser to parse the value and add it to an arraylist. From the arraylist I am adding to tablelayout with scrollview at the I am getting an out of memory error in android. Can anybody tell me what I need to do to solve the issue? Is there any way to increase the heap size or free heap memory? Can anybody tell me which parser is the best for parsing large xml files?
I have nearly 7000 to 10000 record like article details title
Any help would be appreciated
my stack trace :
II/dalvikvm-heap( 992): Clamp target GC heap from 16.810MB to 16.000MB
D/dalvikvm( 992): GC freed 4148 objects / 272832 bytes in 386ms
I/dalvikvm-heap( 992): Forcing collection of SoftReferences for 8704-byte alloc
ation
I/dalvikvm-heap( 992): Clamp target GC heap from 16.810MB to 16.000MB
D/dalvikvm( 992): GC freed 0 objects / 0 bytes in 353ms
E/dalvikvm-heap( 992): Out of memory on a 8704-byte allocation.
I/dalvikvm( 992): "main" prio=5 tid=3 RUNNABLE
I/dalvikvm( 992): | group="main" sCount=0 dsCount=0 s=N obj=0x4001b268 self=0
xbd00
I/dalvikvm( 992): | sysTid=992 nice=0 sched=0/0 cgrp=default handle=-13440013
84
I/dalvikvm( 992): at android.view.ViewGroup.addInArray(ViewGroup.java:~1918)
I/dalvikvm( 992): at android.view.ViewGroup.addViewInner(ViewGroup.java:1879)
I/dalvikvm( 992): at android.view.ViewGroup.addView(ViewGroup.java:1756)
I/dalvikvm( 992): at android.widget.TableLayout.addView(TableLayout.java:418)
I/dalvikvm( 992): at android.view.ViewGroup.addView(ViewGroup.java:1713)
I/dalvikvm( 992): at android.widget.TableLayout.addView(TableLayout.java:400)
I/dalvikvm( 992): at android.view.ViewGroup.addView(ViewGroup.java:1693)
I/dalvikvm( 992): at android.widget.TableLayout.addView(TableLayout.java:391)
I/dalvikvm( 992): at com.inquest.HomeSearchArticle$HomeSearchTask.onPostExecu
te(HomeSearchArticle.java:199)
I/dalvikvm( 992): at com.inquest.HomeSearchArticle$HomeSearchTask.onPostExecu
te(HomeSearchArticle.java:1)
I/dalvikvm( 992): at android.os.AsyncTask.finish(AsyncTask.java:417)
I/dalvikvm( 992): at android.os.AsyncTask.access$300(AsyncTask.java:127)
I/dalvikvm( 992): at android.os.AsyncTask$InternalHandler.handleMessage(Async
Task.java:429)
I/dalvikvm( 992): at android.os.Handler.dispatchMessage(Handler.java:99)
I/dalvikvm( 992): at android.os.Looper.loop(Looper.java:123)
I/dalvikvm( 992): at android.app.ActivityThread.main(ActivityThread.java:4363
)
I/dalvikvm( 992): at java.lang.reflect.Method.invokeNative(Native Method)
I/dalvikvm( 992): at java.lang.reflect.Method.invoke(Method.java:521)
I/dalvikvm( 992): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.r
un(ZygoteInit.java:860)
I/dalvikvm( 992): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
618)
I/dalvikvm( 992): at dalvik.system.NativeStart.main(Native Method)
I/dalvikvm( 992):
I/System.out( 992): ######out of memory error is###java.lang.OutOfMemoryError
I/dalvikvm-heap( 992): Clamp target GC heap from 17.270MB to 16.000MB
D/dalvikvm( 992): GC freed 8418 objects / 744936 bytes in 468ms
I/dalvikvm-heap( 992): Clamp target GC heap from 17.471MB to 16.000MB
D/dalvikvm( 992): GC freed 8605 objects / 481136 bytes in 428ms
I/dalvikvm-heap( 992): Clamp target GC heap from 17.583MB to 16.000MB
D/dalvikvm( 992): GC freed 5050 objects / 297248 bytes in 413ms
I/dalvikvm-heap( 992): Clamp target GC heap from 17.595MB to 16.000MB
D/dalvikvm( 992): GC freed 1927 objects / 77160 bytes in 515ms
I/dalvikvm-heap( 992): Forcing collection of SoftReferences for 1028-byte alloc
ation
I/dalvikvm-heap( 992): Clamp target GC heap from 17.594MB to 16.000MB
D/dalvikvm( 992): GC freed 79 objects / 1264 bytes in 495ms
E/dalvikvm-heap( 992): Out of memory on a 1028-byte allocation.
I/dalvikvm( 992): "main" prio=5 tid=3 RUNNABLE
I/dalvikvm( 992): | group="main" sCount=0 dsCount=0 s=N obj=0x4001b268 self=0
xbd00
I/dalvikvm( 992): | sysTid=992 nice=0 sched=0/0 cgrp=default handle=-13440013
84
I/dalvikvm( 992): at android.text.StaticLayout.generate(StaticLayout.java:~13
8)
I/dalvikvm( 992): at android.text.StaticLayout.<init>(StaticLayout.java:97)
I/dalvikvm( 992): at android.text.StaticLayout.<init>(StaticLayout.java:54)
I/dalvikvm( 992): at android.text.StaticLayout.<init>(StaticLayout.java:45)
I/dalvikvm( 992): at android.widget.TextView.makeNewLayout(TextView.java:4914
)
I/dalvikvm( 992): at android.widget.TextView.onMeasure(TextView.java:5176)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.widget.TableRow.getColumnsWidths(TableRow.java:3
08)
I/dalvikvm( 992): at android.widget.TableLayout.findLargestCells(TableLayout.
java:497)
I/dalvikvm( 992): at android.widget.TableLayout.measureVertical(TableLayout.j
ava:462)
I/dalvikvm( 992): at android.widget.TableLayout.onMeasure(TableLayout.java:42
8)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.widget.ScrollView.measureChildWithMargins(Scroll
View.java:893)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.widget.ScrollView.onMeasure(ScrollView.java:276)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.widget.RelativeLayout.measureChildHorizontal(Rel
ativeLayout.java:569)
I/dalvikvm( 992): at android.widget.RelativeLayout.onMeasure(RelativeLayout.j
ava:361)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.widget.RelativeLayout.measureChildHorizontal(Rel
ativeLayout.java:569)
I/dalvikvm( 992): at android.widget.RelativeLayout.onMeasure(RelativeLayout.j
ava:361)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.LinearLayout.measureChildBeforeLayout(Lin
earLayout.java:888)
I/dalvikvm( 992): at android.widget.LinearLayout.measureHorizontal(LinearLayo
ut.java:619)
I/dalvikvm( 992): at android.widget.LinearLayout.onMeasure(LinearLayout.java:
280)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewGroup.measureChildWithMargins(ViewGroup
.java:3023)
I/dalvikvm( 992): at android.widget.FrameLayout.onMeasure(FrameLayout.java:24
5)
I/dalvikvm( 992): at android.view.View.measure(View.java:7964)
I/dalvikvm( 992): at android.view.ViewRoot.performTraversals(ViewRoot.java:76
3)
I/dalvikvm( 992): at android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
I/dalvikvm( 992): at android.os.Handler.dispatchMessage(Handler.java:99)
I/dalvikvm( 992): at android.os.Looper.loop(Looper.java:123)
I/dalvikvm( 992): at android.app.ActivityThread.main(ActivityThread.java:4363
)
I/dalvikvm( 992): at java.lang.reflect.Method.invokeNative(Native Method)
I/dalvikvm( 992): at java.lang.reflect.Method.invoke(Method.java:521)
I/dalvikvm( 992): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.r
un(ZygoteInit.java:860)
I/dalvikvm( 992): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
618)
I/dalvikvm( 992): at dalvik.system.NativeStart.main(Native Method)
I/dalvikvm( 992):
D/AndroidRuntime( 992): Shutting down VM
W/dalvikvm( 992): threadid=3: thread exiting with uncaught exception (group=0x4
001b188)
E/AndroidRuntime( 992): Uncaught handler: thread main exiting due to uncaught e
xception
I/dalvikvm-heap( 992): Clamp target GC heap from 17.609MB to 16.000MB
D/dalvikvm( 992): GC freed 289 objects / 10728 bytes in 407ms
I/dalvikvm-heap( 992): Forcing collection of SoftReferences for 938-byte alloca
tion
I/dalvikvm-heap( 992): Clamp target GC heap from 17.609MB to 16.000MB
D/dalvikvm( 992): GC freed 0 objects / 0 bytes in 402ms
E/dalvikvm-heap( 992): Out of memory on a 938-byte allocation.
I/dalvikvm( 992): "main" prio=5 tid=3 RUNNABLE
I/dalvikvm( 992): | group="main" sCount=0 dsCount=0 s=N obj=0x4001b268 self=0
xbd00
I/dalvikvm( 992): | sysTid=992 nice=0 sched=0/0 cgrp=default handle=-13440013
84
I/dalvikvm( 992): at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractSt
ringBuilder.java:~97)
I/dalvikvm( 992): at java.lang.AbstractStringBuilder.append0(AbstractStringBu
ilder.java:131)
I/dalvikvm( 992): at java.lang.StringBuffer.append(StringBuffer.java:273)
I/dalvikvm( 992): at java.io.StringWriter.write(StringWriter.java:138)
I/dalvikvm( 992): at java.io.PrintWriter.doWrite(PrintWriter.java:711)
I/dalvikvm( 992): at java.io.PrintWriter.write(PrintWriter.java:686)
I/dalvikvm( 992): at java.io.PrintWriter.write(PrintWriter.java:661)
I/dalvikvm( 992): at java.io.PrintWriter.write(PrintWriter.java:729)
I/dalvikvm( 992): at java.io.PrintWriter.print(PrintWriter.java:492)
I/dalvikvm( 992): at java.io.PrintWriter.println(PrintWriter.java:623)
I/dalvikvm( 992): at java.lang.Throwable.printStackTrace(Throwable.java:316)
I/dalvikvm( 992): at android.util.Log.getStackTraceString(Log.java:234)
I/dalvikvm( 992): at com.android.internal.os.RuntimeInit.crash(RuntimeInit.ja
va:315)
I/dalvikvm( 992): at com.android.internal.os.RuntimeInit$UncaughtHandler.unca
ughtException(RuntimeInit.java:76)
I/dalvikvm( 992): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java
:887)
I/dalvikvm( 992): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java
:884)
I/dalvikvm( 992): at dalvik.system.NativeStart.main(Native Method)
I/dalvikvm( 992):
I/dalvikvm-heap( 992): Clamp target GC heap from 17.614MB to 16.000MB
D/dalvikvm( 992): GC freed 64 objects / 5424 bytes in 447ms
I/dalvikvm-heap( 992): Forcing collection of SoftReferences for 754-byte alloca
tion
I/dalvikvm-heap( 992): Clamp target GC heap from 17.614MB to 16.000MB
D/dalvikvm( 992): GC freed 0 objects / 0 bytes in 440ms
E/dalvikvm-heap( 992): Out of memory on a 754-byte allocation.
I/dalvikvm( 992): "main" prio=5 tid=3 RUNNABLE
I/dalvikvm( 992): | group="main" sCount=0 dsCount=0 s=N obj=0x4001b268 self=0
xbd00
I/dalvikvm( 992): | sysTid=992 nice=0 sched=0/0 cgrp=default handle=-13440013
84
I/dalvikvm( 992): at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractSt
ringBuilder.java:~97)
I/dalvikvm( 992): at java.lang.AbstractStringBuilder.append0(AbstractStringBu
ilder.java:131)
I/dalvikvm( 992): at java.lang.StringBuffer.append(StringBuffer.java:273)
I/dalvikvm( 992): at java.io.StringWriter.write(StringWriter.java:138)
I/dalvikvm( 992): at java.io.PrintWriter.doWrite(PrintWriter.java:711)
I/dalvikvm( 992): at java.io.PrintWriter.write(PrintWriter.java:686)
I/dalvikvm( 992): at java.io.PrintWriter.write(PrintWriter.java:661)
I/dalvikvm( 992): at java.io.PrintWriter.write(PrintWriter.java:729)
I/dalvikvm( 992): at java.io.PrintWriter.print(PrintWriter.java:492)
I/dalvikvm( 992): at java.io.PrintWriter.println(PrintWriter.java:623)
I/dalvikvm( 992): at java.lang.Throwable.printStackTrace(Throwable.java:316)
I/dalvikvm( 992): at android.util.Log.getStackTraceString(Log.java:234)
I/dalvikvm( 992): at com.android.internal.os.RuntimeInit.crash(RuntimeInit.ja
va:323)
I/dalvikvm( 992): at com.android.internal.os.RuntimeInit$UncaughtHandler.unca
ughtException(RuntimeInit.java:76)
I/dalvikvm( 992): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java
:887)
I/dalvikvm( 992): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java
:884)
I/dalvikvm( 992): at dalvik.system.NativeStart.main(Native Method)
I/dalvikvm( 992):
I/Process ( 60): Sending signal. PID: 992 SIG: 3
I/dalvikvm( 992): threadid=7: reacting to signal 3
I/dalvikvm( 992): Wrote stack trace to '/data/anr/traces.txt'
D/dalvikvm( 60): GC freed 13970 objects / 689880 bytes in 201ms
Thanks
I'm facing a similar problem, although for a different application. Please see my post:
Problem with downloading multiple files using AsyncTask
I am new to android. I would like to ask you some question.
When I calling new activity from main activity by commands
Intent myIntent = new Intent(v.getContext(), PolarView.class);
//startActivityForResult(myIntent, 0);
startActivityForResult(myIntent, 0);
finish();
then in new activity I can't do any actions, e.g. such as button click
Both
Button btnSeven = (Button) this.findViewById(R.id.btn7);
btnSeven.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
InputStr = InputStr + "7";
InputViewField.setText(InputStr);
}
});
}
and
public void btn7_click(View v) {
InputStr = InputStr + "7";
InputViewField.setText(InputStr);
}
having defined android:onClick="btn7_click" in activity`s layout
where InputViewField is EditText object
In the first case new activity does not start, in the second case when I press this button, aplication crashes.
could you please help me?
Here is some last peace of logcat after change
StartActivityForResult()
to
StartActivity()
Logcat:
D/MediaScanner( 153): opendir /system/media/ failed, errno: 2
D/MediaScanner( 153): prescan time: 25225ms
D/MediaScanner( 153): scan time: 162ms
D/MediaScanner( 153): postscan time: 48ms
D/dalvikvm( 109): GC freed 1920 objects / 95640 bytes in 160ms
D/MediaScanner( 153): total time: 25435ms
D/MediaScannerService( 153): done scanning volume internal
D/MediaScannerService( 153): start scanning volume external
D/dalvikvm( 52): GREF has increased to 301
I/ActivityManager( 52): Starting activity: Intent { cmp=complex.ComplexCalc/.PolarView }
I/ActivityManager( 52): Displayed activity complex.ComplexCalc/.PolarView: 1414 ms (total 1414 ms)
V/MediaScanner( 153): pruneDeadThumbnailFiles... android.database.sqlite.SQLiteCursor#43bc30b8
V/MediaScanner( 153): /pruneDeadThumbnailFiles... android.database.sqlite.SQLiteCursor#43bc30b8
D/MediaScanner( 153): prescan time: 1509ms
D/MediaScanner( 153): scan time: 405ms
D/MediaScanner( 153): postscan time: 323ms
D/MediaScanner( 153): total time: 2237ms
D/MediaScannerService( 153): done scanning volume external
D/AndroidRuntime( 223): Shutting down VM
W/dalvikvm( 223): threadid=3: thread exiting with uncaught exception (group=0x4001b188)
E/AndroidRuntime( 223): Uncaught handler: thread main exiting due to uncaught exception
D/dalvikvm( 223): GC freed 3456 objects / 221888 bytes in 153ms
E/AndroidRuntime( 223): java.lang.IllegalStateException: Could not execute method of the activity
E/AndroidRuntime( 223): at android.view.View$1.onClick(View.java:2031)
E/AndroidRuntime( 223): at android.view.View.performClick(View.java:2364)
E/AndroidRuntime( 223): at android.view.View.onTouchEvent(View.java:4179)
E/AndroidRuntime( 223): at android.widget.TextView.onTouchEvent(TextView.java:6541)
E/AndroidRuntime( 223): at android.view.View.dispatchTouchEvent(View.java:3709)
E/AndroidRuntime( 223): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
E/AndroidRuntime( 223): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
E/AndroidRuntime( 223): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
E/AndroidRuntime( 223): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
E/AndroidRuntime( 223): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
E/AndroidRuntime( 223): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:884)
E/AndroidRuntime( 223): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1659)
E/AndroidRuntime( 223): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1107)
E/AndroidRuntime( 223): at android.app.Activity.dispatchTouchEvent(Activity.java:2061)
E/AndroidRuntime( 223): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1643)
E/AndroidRuntime( 223): at android.view.ViewRoot.handleMessage(ViewRoot.java:1691)
E/AndroidRuntime( 223): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 223): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 223): at android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime( 223): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 223): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 223): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 223): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 223): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 223): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 223): at complex.ComplexCalc.PolarView.btn7_click(PolarView.java:266)
E/AndroidRuntime( 223): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 223): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 223): at android.view.View$1.onClick(View.java:2026)
E/AndroidRuntime( 223): ... 23 more
E/AndroidRuntime( 223): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 223): ... 27 more
I/Process ( 52): Sending signal. PID: 223 SIG: 3
I/dalvikvm( 223): threadid=7: reacting to signal 3
I/dalvikvm( 223): Wrote stack trace to '/data/anr/traces.txt'
I/ARMAssembler( 52): generated scanline__00000077:03515104_00000000_00000000 [ 33 ipp] (47 ins) at [0x46eae8:0x46eba4] in 1562593 ns
I/ARMAssembler( 52): generated scanline__00000177:03515104_00001001_00000000 [ 91 ipp] (114 ins) at [0x46eba8:0x46ed70] in 1903198 ns
I/Process ( 223): Sending signal. PID: 223 SIG: 9
I/ActivityManager( 52): Process complex.ComplexCalc (pid 223) has died.
I/WindowManager( 52): WIN DEATH: Window{43cc3920 complex.ComplexCalc/complex.ComplexCalc.PolarView paused=false}
E/gralloc ( 52): [unregister] handle 0x481778 still locked (state=40000001)
I/UsageStats( 52): Unexpected resume of com.android.launcher while already resumed in complex.ComplexCalc
W/InputManagerService( 52): Got RemoteException sending setActive(false) notification to pid 223 uid 10024
I think part of your problem is that you are using startActivityForResult(..), when in fact you should be using startActivity(..), because your new activity might not be returning anything.
However, without error logs its difficult to tell what is really happening
I have an application which displays a series of custom views in a LinearLayout. The LinearLayout is in a ScrollView. The custom views draw a picture, when their onDraw method is called. Generally this works fine. But occasionally the application crashes on a drawPicture() call. When it crashes, no exception seems to be thrown, but I do get this message in logcat: "Wrote stack trace to 'data/anr/traces.txt'".
The contents of traces.txt is below:
DALVIK THREADS:
"main" prio=5 tid=3 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x2aac2250 self=0x84d00
| sysTid=412 nice=0 sched=0/0 cgrp=unknown handle=2130112448
at android.graphics.Canvas.native_drawPicture(Native Method)
at android.graphics.Canvas.drawPicture(Canvas.java:1404)
at com.MyView.onDraw(PDFPageView.java:100)
at android.view.View.draw(View.java:6534)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6537)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6537)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6537)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6537)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.ViewGroup.drawChild(ViewGroup.java:1529)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6537)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1849)
at android.view.ViewRoot.draw(ViewRoot.java:1349)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1114)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4325)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
at dalvik.system.NativeStart.main(Native Method)
"AsyncTask #1" prio=5 tid=17 WAIT
| group="main" sCount=1 dsCount=0 s=N obj=0x2e4262b0 self=0x351ab8
| sysTid=420 nice=10 sched=0/0 cgrp=unknown handle=3480528
at java.lang.Object.wait(Native Method)
- waiting on <0x195468> (a java.lang.VMThread)
at java.lang.Thread.parkFor(Thread.java:1535)
at java.lang.LangAccessImpl.parkFor(LangAccessImpl.java:48)
at sun.misc.Unsafe.park(Unsafe.java:317)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:131)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1996)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:359)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1001)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
at java.lang.Thread.run(Thread.java:1096)
"Binder Thread #3" prio=5 tid=15 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x2e3e9cc0 self=0x191798
| sysTid=419 nice=0 sched=0/0 cgrp=unknown handle=1738736
at dalvik.system.NativeStart.run(Native Method)
"Binder Thread #2" prio=5 tid=13 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x2e3e9c00 self=0x1a7510
| sysTid=418 nice=0 sched=0/0 cgrp=unknown handle=1792360
at dalvik.system.NativeStart.run(Native Method)
"Binder Thread #1" prio=5 tid=11 NATIVE
| group="main" sCount=1 dsCount=0 s=N obj=0x2e3e9b40 self=0x1aae60
| sysTid=417 nice=0 sched=0/0 cgrp=unknown handle=1738512
at dalvik.system.NativeStart.run(Native Method)
"JDWP" daemon prio=5 tid=9 VMWAIT
| group="system" sCount=1 dsCount=0 s=N obj=0x2e3e82a0 self=0x1b82a0
| sysTid=416 nice=0 sched=0/0 cgrp=unknown handle=1792208
at dalvik.system.NativeStart.run(Native Method)
"Signal Catcher" daemon prio=5 tid=7 RUNNABLE
| group="system" sCount=0 dsCount=0 s=N obj=0x2e3e81e8 self=0x1b9420
| sysTid=415 nice=0 sched=0/0 cgrp=unknown handle=1791968
at dalvik.system.NativeStart.run(Native Method)
"HeapWorker" daemon prio=5 tid=5 VMWAIT
| group="system" sCount=1 dsCount=0 s=N obj=0x2d68c4c8 self=0x1b9968
| sysTid=413 nice=0 sched=0/0 cgrp=unknown handle=1792792
at dalvik.system.NativeStart.run(Native Method)
This is the logcat output:
W/WindowManager( 53): Key dispatching timed out sending to com.mypackage/com.mypackage.MyActivity
W/WindowManager( 53): Dispatch state: {{KeyEvent{action=1 code=82 repeat=0 met
a=0 scancode=229 mFlags=8} to Window{4387d7f8 Keyguard paused=false} # 129122478
0532 lw=Window{4387d7f8 Keyguard paused=false} lb=android.view.ViewRoot$W#4387d4
08 fin=false gfw=true ed=true tts=0 wf=false fp=false mcf=Window{4392eb90 com.mypackage
s/com.mypackage.MyActivity paused=false}}}
W/WindowManager( 53): Current state: {{null to Window{4392eb90 com.mypackage
s/com.mypackage.MyActivity paused=false} # 1291225159009 lw=Window{4
392eb90 com.mypackage/com.mypackage.MyActivity paused=false} lb=an
droid.os.BinderProxy#4392e9b8 fin=false gfw=true ed=true tts=0 wf=false fp=false
mcf=Window{4392eb90
com.mypackage/com.mypackage.MyActivity paused
=false}}}
I/ActivityManager( 53): ANR in process: com.mypackage
(last in com.mypackage)
I/ActivityManager( 53): Annotation: keyDispatchingTimedOut
I/ActivityManager( 53): CPU usage:
I/ActivityManager( 53): Load: 0.71 / 0.81 / 0.44
I/ActivityManager( 53): CPU usage from 19028ms to 19ms ago:
I/ActivityManager( 53): com.mypackage: 34% = 34% user + 0% kernel / f
aults: 24 minor
I/ActivityManager( 53): system_server: 2% = 1% user + 0% kernel / faults: 8
minor
I/ActivityManager( 53): com.android.phone: 0% = 0% user + 0% kernel
I/ActivityManager( 53): adbd: 0% = 0% user + 0% kernel / faults: 72 minor
I/ActivityManager( 53): TOTAL: 38% = 36% user + 2% kernel
I/ActivityManager( 53): Removing old ANR trace file from /data/anr/traces.txt
I/Process ( 53): Sending signal. PID: 514 SIG: 3
I/dalvikvm( 514): threadid=7: reacting to signal 3
I/dalvikvm( 514): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 53 SIG: 3
I/dalvikvm( 53): threadid=7: reacting to signal 3
I/dalvikvm( 53): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 96 SIG: 3
I/dalvikvm( 96): threadid=7: reacting to signal 3
I/dalvikvm( 96): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 223 SIG: 3
I/dalvikvm( 223): threadid=7: reacting to signal 3
I/dalvikvm( 223): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 140 SIG: 3
I/dalvikvm( 140): threadid=7: reacting to signal 3
I/dalvikvm( 140): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 120 SIG: 3
I/dalvikvm( 120): threadid=7: reacting to signal 3
I/dalvikvm( 120): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 172 SIG: 3
I/dalvikvm( 172): threadid=7: reacting to signal 3
I/dalvikvm( 172): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 175 SIG: 3
I/dalvikvm( 175): threadid=7: reacting to signal 3
I/dalvikvm( 175): Wrote stack trace to '/data/anr/traces.txt'
I/Process ( 53): Sending signal. PID: 94 SIG: 3
I/dalvikvm( 94): threadid=7: reacting to signal 3
I/dalvikvm( 94): Wrote stack trace to '/data/anr/traces.txt'
W/WindowManager( 53): No window to dispatch pointer action 1
W/WindowManager( 53): No window to dispatch pointer action 1
W/WindowManager( 53): No window to dispatch pointer action 0
W/WindowManager( 53): No window to dispatch pointer action 1
D/dalvikvm( 53): GC freed 12498 objects / 629776 bytes in 174ms
This is not a crash, it's an ANR (Application Not Responding.) It means your application is taking too long to respond to an event (more than 5 seconds.)