Thursday 12 September 2013

Logcat error description : Button launch crashes app

Logcat error description : Button launch crashes app

There was some permission constraint in manifest file .... I removed it
but the application still crashes on button click....Rest of the buttons
are working great..... It started happening when i used the Notepad sample
code in the SDK to impement a similar "save Notes" for my application
These are the logcat details



09-13 01:52:24.175: D/dalvikvm(786): GC_FOR_ALLOC freed 64K, 7% free
2543K/2724K, paused 215ms, total 216ms
09-13 01:52:24.195: I/dalvikvm-heap(786): Grow heap (frag case) to
4.939MB for 2457616-byte allocation
09-13 01:52:24.235: D/dalvikvm(786): GC_FOR_ALLOC freed <1K, 4% free
4943K/5128K, paused 36ms, total 36ms
09-13 01:52:24.736: W/SoundPool(786): sample 1 not READY
09-13 01:52:25.085: D/gralloc_goldfish(786): Emulator without GPU
emulation detected.
09-13 01:52:25.485: I/Choreographer(786): Skipped 31 frames! The
application may be doing too much work on its main thread.
09-13 01:52:26.905: E/AudioTrack(786): Could not get audio output for
stream type 3
09-13 01:52:26.905: E/SoundPool(786): Error creating AudioTrack
09-13 01:52:27.025: D/dalvikvm(786): GC_FOR_ALLOC freed 28K, 3% free
5674K/5828K, paused 26ms, total 27ms
09-13 01:52:27.135: D/dalvikvm(786): GC_FOR_ALLOC freed 22K, 3% free
6090K/6236K, paused 33ms, total 38ms
09-13 01:52:27.245: I/Choreographer(786): Skipped 86 frames! The
application may be doing too much work on its main thread.
09-13 01:52:27.585: I/Choreographer(786): Skipped 39 frames! The
application may be doing too much work on its main thread.
09-13 01:52:27.985: I/Choreographer(786): Skipped 65 frames! The
application may be doing too much work on its main thread.
09-13 01:52:38.305: I/Choreographer(786): Skipped 49 frames! The
application may be doing too much work on its main thread.
09-13 01:52:38.545: I/Choreographer(786): Skipped 56 frames! The
application may be doing too much work on its main thread.
09-13 01:52:38.875: D/dalvikvm(786): GC_FOR_ALLOC freed 122K, 4% free
6816K/7056K, paused 136ms, total 141ms
09-13 01:52:38.975: I/dalvikvm-heap(786): Grow heap (frag case) to
9.112MB for 2457616-byte allocation
09-13 01:52:39.065: D/dalvikvm(786): GC_FOR_ALLOC freed 2K, 3% free
9214K/9460K, paused 96ms, total 96ms
09-13 01:52:39.645: W/SoundPool(786): sample 1 not READY
09-13 01:52:40.215: I/Choreographer(786): Skipped 33 frames! The
application may be doing too much work on its main thread.
09-13 01:52:48.765: E/AudioTrack(786): Could not get audio output for
stream type 3
09-13 01:52:48.765: E/SoundPool(786): Error creating AudioTrack
09-13 01:52:49.205: D/dalvikvm(786): GC_FOR_ALLOC freed 70K, 2% free
9546K/9736K, paused 51ms, total 81ms
09-13 01:52:49.265: I/dalvikvm-heap(786): Grow heap (frag case) to
11.779MB for 2457616-byte allocation
09-13 01:52:49.425: D/dalvikvm(786): GC_FOR_ALLOC freed 3542K, 31%
free 8404K/12140K, paused 158ms, total 160ms
09-13 01:52:49.685: I/Choreographer(786): Skipped 186 frames! The
application may be doing too much work on its main thread.
09-13 01:52:49.845: I/Choreographer(786): Skipped 37 frames! The
application may be doing too much work on its main thread.
09-13 01:52:50.205: I/Choreographer(786): Skipped 79 frames! The
application may be doing too much work on its main thread.
09-13 01:52:54.234: E/AudioTrack(786): Could not get audio output for
stream type 3
09-13 01:52:54.234: E/SoundPool(786): Error creating AudioTrack
09-13 01:52:54.564: D/dalvikvm(786): GC_FOR_ALLOC freed 32K, 31% free
8440K/12140K, paused 62ms, total 73ms
09-13 01:52:54.604: I/dalvikvm-heap(786): Grow heap (frag case) to
11.305MB for 3094560-byte allocation
09-13 01:52:54.774: D/dalvikvm(786): GC_FOR_ALLOC freed 3K, 25% free
11459K/15164K, paused 170ms, total 170ms
09-13 01:52:55.095: I/Choreographer(786): Skipped 194 frames! The
application may be doing too much work on its main thread.
09-13 01:52:55.244: I/Choreographer(786): Skipped 34 frames! The
application may be doing too much work on its main thread.
09-13 01:52:55.495: I/Choreographer(786): Skipped 54 frames! The
application may be doing too much work on its main thread.
09-13 01:52:58.245: I/Choreographer(786): Skipped 47 frames! The
application may be doing too much work on its main thread.
09-13 01:52:59.015: E/AudioTrack(786): Could not get audio output for
stream type 3
09-13 01:52:59.015: E/SoundPool(786): Error creating AudioTrack
09-13 01:52:59.045: D/AndroidRuntime(786): Shutting down VM
09-13 01:52:59.045: W/dalvikvm(786): threadid=1: thread exiting with
uncaught exception (group=0x41465700)
09-13 01:52:59.065: E/AndroidRuntime(786): FATAL EXCEPTION: main
09-13 01:52:59.065: E/AndroidRuntime(786):
android.content.ActivityNotFoundException: Unable to find explicit
activity class
{hellog.diwesh.NugaBest/helog.diwesh.NugaBest.NotesList}; have you
declared this activity in your AndroidManifest.xml?
09-13 01:52:59.065: E/AndroidRuntime(786): at
android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1628)
09-13 01:52:59.065: E/AndroidRuntime(786): at
android.app.Instrumentation.execStartActivity(Instrumentation.java:1424)
09-13 01:52:59.065: E/AndroidRuntime(786): at
android.app.Activity.startActivityForResult(Activity.java:3390)
09-13 01:52:59.065: E/AndroidRuntime(786): at
android.app.Activity.startActivityForResult(Activity.java:3351)
09-13 01:52:59.065: E/AndroidRuntime(786): at
android.app.Activity.startActivity(Activity.java:3587)
09-13 01:52:59.065: E/AndroidRuntime(786): at
android.app.Activity.startActivity(Activity.java:3555)
09-13 01:52:59.065: E/AndroidRuntime(786): at
helog.diwesh.NugaBest.NUGA_MainMenuActivity$1.onClick(NUGA_MainMenuActivity.java:150)
09-13 01:52:59.065: E/AndroidRuntime(786): at
android.view.View.performClick(View.java:4240)
09-13 01:52:59.065: E/AndroidRuntime(786): at
android.view.View$PerformClick.run(View.java:17721)
09-13 01:52:59.065: E/AndroidRuntime(786): at
android.os.Handler.handleCallback(Handler.java:730)
09-13 01:52:59.065: E/AndroidRuntime(786): at
android.os.Handler.dispatchMessage(Handler.java:92)
09-13 01:52:59.065: E/AndroidRuntime(786): at
android.os.Looper.loop(Looper.java:137)
09-13 01:52:59.065: E/AndroidRuntime(786): at
android.app.ActivityThread.main(ActivityThread.java:5103)
09-13 01:52:59.065: E/AndroidRuntime(786): at
java.lang.reflect.Method.invokeNative(Native Method)
09-13 01:52:59.065: E/AndroidRuntime(786): at
java.lang.reflect.Method.invoke(Method.java:525)
09-13 01:52:59.065: E/AndroidRuntime(786): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-13 01:52:59.065: E/AndroidRuntime(786): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-13 01:52:59.065: E/AndroidRuntime(786): at
dalvik.system.NativeStart.main(Native Method)



Androidmanifst
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="hellog.diwesh.NugaBest"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="11" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:name="helog.diwesh.NugaBest.MyApplication"
android:debuggable="true"
android:icon="@drawable/nuga"
android:label="@string/app_name" >
<activity
android:name="helog.diwesh.NugaBest.NUGA_HealthCareActivity_Intro"
android:configChanges="orientation|keyboardHidden"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
// 4. Layout Management
<activity
android:name="helog.diwesh.NugaBest.FileSiganlDisplay"
android:label="FileSiganlDisplay" />
<activity
android:name="helog.diwesh.NugaBest.NUGA_WebJoinActivity"
android:label="NUGA_WebJoinActivity"
android:windowSoftInputMode="stateHidden" />
<activity
android:name="helog.diwesh.NugaBest.NUGA_MainMenuActivity"
android:label="NUGA_MainMenuActivity" />
<activity
android:name="helog.diwesh.NugaBest.BTSmartSlavemodule"
android:configChanges="orientation|keyboardHidden"
android:label="SmartSlavemodule" />
<activity
android:name="helog.diwesh.NugaBest.BTDeviceListActivity"
android:configChanges="orientation|keyboardHidden"
android:label="@string/select_device"
android:theme="@android:style/Theme.Dialog" />
<activity
android:name="helog.diwesh.NugaBest.SnapActivity"
android:label="@string/title_activity_snap" >
</activity>
<activity
android:name="helog.diwesh.NugaBest.ImagesActivity"
android:label="@string/title_activity_images" >
</activity>
<activity
android:name="helog.diwesh.NugaBest.HelpActivity"
android:label="@string/Help" >
</activity>
<activity
android:name="helog.diwesh.NugaBest.AboutDevice"
android:label="@string/aboutus" >
</activity>
// Notepad Application
<activity android:name="NotesList"
android:label="@string/title_notes_list">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<action android:name="android.intent.action.PICK" />
<data
android:mimeType="vnd.android.cursor.dir/vnd.google.note"
/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:mimeType="vnd.android.cursor.item/vnd.google.note"
/>
</intent-filter>
</activity>
<activity android:name="NoteEditor"
android:theme="@android:style/Theme.Holo.Light"
android:screenOrientation="sensor"
android:configChanges="keyboardHidden|orientation"
>
<!-- This filter says that we can view or edit the data of
a single note -->
<intent-filter android:label="@string/resolve_edit">
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<action
android:name="helog.diwesh.NugaBest.action.EDIT_NOTE" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:mimeType="vnd.android.cursor.item/vnd.google.note"
/>
</intent-filter>
<!-- This filter says that we can create a new note inside
of a directory of notes. The INSERT action creates an
empty note; the PASTE action initializes a new note from
the current contents of the clipboard. -->
<intent-filter>
<action android:name="android.intent.action.INSERT" />
<action android:name="android.intent.action.PASTE" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:mimeType="vnd.android.cursor.dir/vnd.google.note"
/>
</intent-filter>
</activity>
<activity android:name="TitleEditor"
android:label="@string/title_edit_title"
android:icon="@drawable/ic_menu_edit"
android:theme="@android:style/Theme.Holo.Dialog"
android:windowSoftInputMode="stateVisible">
<!-- This activity implements an alternative action that can be
performed on notes: editing their title. It can be used as
a default operation if the user invokes this action, and is
available as an alternative action for any note data. -->
<intent-filter android:label="@string/resolve_title">
<!-- This is the action we perform. It is a custom action we
define for our application, not a generic VIEW or EDIT
action since we are not a general note viewer/editor.
-->
<action
android:name="helog.diwesh.NugaBest.action.EDIT_TITLE" />
<!-- DEFAULT: execute if being directly invoked. -->
<category android:name="android.intent.category.DEFAULT" />
<!-- ALTERNATIVE: show as an alternative action when the
user is
working with this type of data. -->
<category
android:name="android.intent.category.ALTERNATIVE" />
<!-- SELECTED_ALTERNATIVE: show as an alternative action
the user
can perform when selecting this type of data. -->
<category
android:name="android.intent.category.SELECTED_ALTERNATIVE"
/>
<!-- This is the data type we operate on. -->
<data
android:mimeType="vnd.android.cursor.item/vnd.google.note"
/>
</intent-filter>
</activity>
<activity android:name="NotesLiveFolder"
android:label="@string/live_folder_name"
android:icon="@drawable/live_folder_notes">
<intent-filter>
<action
android:name="android.intent.action.CREATE_LIVE_FOLDER" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>

No comments:

Post a Comment