google maps not displayed - android

I am getting a problem in implementing a simple HelloGoogleMaps tutorial given at http://developer.android.com/resources/tutorials/views/hello-mapview.html
The problem is that everything seems fine, but on running the code, only the grid and google logo appears, also if I add another layer of markers, the markers show up but not the underlying map.
There is internet connection in the emulator as on all the other applications network is connected.
Somebody please help me.
The display on the console is :
[2011-10-19 18:17:21 - helloGoogleMaps] ------------------------------
[2011-10-19 18:17:21 - helloGoogleMaps] Android Launch!
[2011-10-19 18:17:21 - helloGoogleMaps] adb is running normally.
[2011-10-19 18:17:21 - helloGoogleMaps] Performing c.om.maps.my.HelloGoogleMapsActivity activity launch
[2011-10-19 18:17:21 - helloGoogleMaps] Automatic Target Mode: launching new emulator with compatible AVD 'maps'
[2011-10-19 18:17:21 - helloGoogleMaps] Launching a new emulator with Virtual Device 'maps'
[2011-10-19 18:17:29 - helloGoogleMaps] New emulator found: emulator-5554
[2011-10-19 18:17:29 - helloGoogleMaps] Waiting for HOME ('android.process.acore') to be launched...
[2011-10-19 18:18:51 - helloGoogleMaps] HOME is up on device 'emulator-5554'
[2011-10-19 18:18:51 - helloGoogleMaps] Uploading helloGoogleMaps.apk onto device 'emulator-5554'
[2011-10-19 18:18:51 - helloGoogleMaps] Installing helloGoogleMaps.apk...
[2011-10-19 18:19:35 - helloGoogleMaps] Success!
[2011-10-19 18:19:35 - helloGoogleMaps] Starting activity c.om.maps.my.HelloGoogleMapsActivity on device emulator-5554
[2011-10-19 18:19:38 - helloGoogleMaps] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=c.om.maps.my/.HelloGoogleMapsActivity }
[2011-10-19 18:41:48 - helloGoogleMaps] ------------------------------
The last portion of Log cat ouyputs ::
10-19 19:56:52.357: INFO/ActivityManager(70): Start proc com.google.android.apps.maps for broadcast com.google.android.apps.maps/com.google.android.location.internal.NlpPackageUpdateReceiver: pid=346 uid=10018 gids={3003, 1015}
10-19 19:56:52.787: DEBUG/dalvikvm(182): GC_EXPLICIT freed 292K, 49% free 2956K/5703K, external 1625K/2137K, paused 672ms
10-19 19:56:53.147: WARN/RecognitionManagerService(70): no available voice recognition services found
10-19 19:56:54.248: DEBUG/dalvikvm(70): GC_EXPLICIT freed 784K, 45% free 4854K/8711K, external 4373K/5461K, paused 290ms
10-19 19:56:54.347: INFO/ActivityThread(346): Pub com.google.android.maps.LocalSuggestionProvider: com.google.googlenav.provider.LocalSuggestionProvider
10-19 19:56:54.357: INFO/ActivityThread(346): Pub com.google.android.maps.LayerInfoProvider: com.google.googlenav.layer.LayerInfoProvider
10-19 19:56:54.377: INFO/installd(35): unlink /data/dalvik-cache/data#app#c.om.maps.my-1.apk#classes.dex
10-19 19:56:54.438: DEBUG/AndroidRuntime(202): Shutting down VM
10-19 19:56:54.457: DEBUG/dalvikvm(202): GC_CONCURRENT freed 100K, 72% free 294K/1024K, external 0K/0K, paused 3ms+1ms
10-19 19:56:54.479: DEBUG/jdwp(202): adbd disconnected
10-19 19:56:54.497: INFO/AndroidRuntime(202): NOTE: attach of thread 'Binder Thread #3' failed
10-19 19:56:54.587: INFO/ActivityThread(346): Pub com.google.android.maps.TrafficProvider: com.google.googlenav.appwidget.traffic.TrafficProvider
10-19 19:56:54.587: INFO/ActivityThread(346): Pub com.google.android.maps.SuggestionProvider: com.google.googlenav.suggest.android.SuggestProvider
10-19 19:56:54.637: INFO/ActivityThread(346): Pub com.google.android.maps.SearchHistoryProvider: com.google.googlenav.provider.SearchHistoryProvider
10-19 19:56:54.657: INFO/ActivityThread(346): Pub com.google.android.maps.NavigationAvailabilityProvider: com.google.googlenav.provider.NavigationAvailabilityProvider
10-19 19:56:55.327: INFO/ActivityThread(346): Pub com.google.android.maps.StarredItemProvider: com.google.googlenav.provider.StarredItemProvider
10-19 19:56:55.739: DEBUG/dalvikvm(346): GC_CONCURRENT freed 835K, 49% free 3476K/6727K, external 1625K/2137K, paused 8ms+8ms
10-19 19:56:56.337: INFO/ActivityManager(70): Start proc com.svox.pico for broadcast com.svox.pico/.VoiceDataInstallerReceiver: pid=362 uid=10010 gids={}
10-19 19:56:56.527: DEBUG/AndroidRuntime(360): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
10-19 19:56:56.527: DEBUG/AndroidRuntime(360): CheckJNI is ON
10-19 19:56:57.397: INFO/ActivityThread(362): Pub com.svox.pico.providers.SettingsProvider: com.svox.pico.providers.SettingsProvider
10-19 19:56:57.548: DEBUG/GTalkService(204): handlePackageInstalled: re-initialize providers
10-19 19:56:57.557: DEBUG/GTalkService(204): [RawStanzaProvidersMgr] ##### searchProvidersFromIntent
10-19 19:56:57.587: DEBUG/GTalkService(204): [RawStanzaProvidersMgr] no intent receivers found
10-19 19:56:58.417: DEBUG/AndroidRuntime(360): Calling main entry com.android.commands.am.Am
10-19 19:56:58.569: INFO/ActivityManager(70): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=c.om.maps.my/.HelloGoogleMapsActivity } from pid 360
10-19 19:56:58.807: DEBUG/AndroidRuntime(360): Shutting down VM
10-19 19:56:58.856: DEBUG/dalvikvm(360): GC_CONCURRENT freed 101K, 69% free 318K/1024K, external 0K/0K, paused 1ms+32ms
10-19 19:56:58.856: INFO/AndroidRuntime(360): NOTE: attach of thread 'Binder Thread #3' failed
10-19 19:56:58.866: INFO/ActivityManager(70): Start proc c.om.maps.my for activity c.om.maps.my/.HelloGoogleMapsActivity: pid=378 uid=10038 gids={3003, 1015}
10-19 19:56:58.877: DEBUG/jdwp(360): adbd disconnected
10-19 19:56:59.367: DEBUG/dalvikvm(33): GC_EXPLICIT freed 11K, 50% free 2719K/5379K, external 1625K/2137K, paused 475ms
10-19 19:56:59.707: DEBUG/dalvikvm(33): GC_EXPLICIT freed <1K, 50% free 2719K/5379K, external 1625K/2137K, paused 306ms
10-19 19:56:59.966: DEBUG/dalvikvm(33): GC_EXPLICIT freed <1K, 50% free 2719K/5379K, external 1625K/2137K, paused 246ms
10-19 19:57:00.237: WARN/ActivityManager(70): finishReceiver called but no pending broadcasts
10-19 19:57:01.737: DEBUG/dalvikvm(378): GC_CONCURRENT freed 1168K, 54% free 3144K/6727K, external 1626K/2137K, paused 7ms+7ms
10-19 19:57:02.187: DEBUG/dalvikvm(378): GC_CONCURRENT freed 529K, 51% free 3304K/6727K, external 1626K/2137K, paused 9ms+9ms
10-19 19:57:02.838: INFO/MapActivity(378): Handling network change notification:CONNECTED
10-19 19:57:02.847: ERROR/MapActivity(378): Couldn't get connection factory client
10-19 19:57:03.177: DEBUG/dalvikvm(378): GC_CONCURRENT freed 810K, 54% free 3121K/6727K, external 2046K/2137K, paused 6ms+11ms
10-19 19:57:03.217: INFO/ActivityManager(70): Displayed c.om.maps.my/.HelloGoogleMapsActivity: +4s421ms
10-19 19:57:04.397: VERBOSE/MediaProvider(257): Attached volume: external
10-19 19:57:04.797: VERBOSE/MediaScanner(257): pruneDeadThumbnailFiles... android.database.sqlite.SQLiteCursor#405c3dd8
10-19 19:57:04.797: VERBOSE/MediaScanner(257): /pruneDeadThumbnailFiles... android.database.sqlite.SQLiteCursor#405c3dd8
10-19 19:57:04.817: DEBUG/MediaScanner(257): prescan time: 321ms
10-19 19:57:04.817: DEBUG/MediaScanner(257): scan time: 14ms
10-19 19:57:04.817: DEBUG/MediaScanner(257): postscan time: 57ms
10-19 19:57:04.827: DEBUG/MediaScanner(257): total time: 392ms
10-19 19:57:04.838: DEBUG/MediaScannerService(257): done scanning volume external
10-19 19:57:14.308: INFO/InputReader(70): Device reconfigured: id=0x0, name=qwerty2, display size is now 480x800
10-19 19:57:14.308: INFO/InputManager-Callbacks(70): No virtual keys found for device qwerty2.
10-19 19:57:15.248: INFO/ARMAssembler(70): generated scanline__00000077:03515104_00001004_00000000 [ 65 ipp] (85 ins) at [0x445fd520:0x445fd674] in 1499783 ns
10-19 19:57:15.377: INFO/ARMAssembler(70): generated scanline__00000177:03515104_00001001_00000000 [ 91 ipp] (114 ins) at [0x445fd678:0x445fd840] in 813025 ns
10-19 19:57:25.087: DEBUG/dalvikvm(378): GC_EXTERNAL_ALLOC freed 89K, 54% free 3145K/6727K, external 2046K/2137K, paused 138ms
10-19 19:57:43.808: WARN/KeyCharacterMap(378): No keyboard for id 0
10-19 19:57:43.887: WARN/KeyCharacterMap(378): Using default keymap: /system/usr/keychars/qwerty.kcm.bin

You need to generate MapView API key from your debug.keystore file.
read here how to do this http://code.google.com/android/add-ons/google-apis/mapkey.html

Related

Android Expected a quoted string

I am doing android application. I am using ksoap2 to call my webservices. When I call the webservice it throws the following exception. Can anybody help me to fix this?
Expected a quoted string (position:DOCDECL #1:50 in java.io.InputStreamReader#4111baf8)
Log:
02-13 03:41:56.621 I/ActivityManager( 160): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.user.stub/.WelcomeMessage} from pid 322
02-13 03:41:56.671 D/ViewRootImpl( 160): pckname = com.user.stub
02-13 03:41:56.681 I/stub( 5367): WM - onCreate starts
02-13 03:41:56.731 D/OpenGLRenderer( 322): Flushing caches (mode 1)
02-13 03:41:56.781 D/OpenGLRenderer( 322): Flushing caches (mode 0)
02-13 03:41:56.831 I/stub( 5367): WM - pack exist check
02-13 03:41:57.031 I/stub( 5367): WM - onCreate ends
02-13 03:41:57.031 D/ViewRootImpl( 5367): pckname = com.user.stub
02-13 03:41:57.101 W/InputManagerService( 160): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy#4121beb8 (uid=10026 pid=322)
02-13 03:41:57.141 I/ActivityManager( 160): Displayed com.user.stub/.WelcomeMessage: +469ms
02-13 03:41:58.451 I/stub( 5367): WM - onClick start
02-13 03:41:58.461 I/ActivityManager( 160): START {cmp=com.user.stub/.stub} from pid 5367
02-13 03:41:58.621 D/dalvikvm( 160): GC_EXPLICIT freed 521K, 23% free 10623K/13703K, paused 4ms+9ms
02-13 03:41:58.641 I/stub( 5367): IMS - onCreate start
02-13 03:41:58.681 I/stub( 5367): IMS - onCreate ends
02-13 03:41:58.681 D/ViewRootImpl( 5367): pckname = com.user.stub
02-13 03:41:58.821 I/ActivityManager( 160): Displayed com.user.stub/.stub: +315ms
02-13 03:42:21.561 D/audio_hw_primary( 85): start_output_stream: card:0, port:0, rate:44100
02-13 03:42:21.691 D/dalvikvm( 288): GC_CONCURRENT freed 394K, 15% free 8064K/9479K, paused 4ms+4ms
02-13 03:42:24.581 I/stub( 5367): IMS - onProceed starts
02-13 03:42:24.581 I/stub( 5367): WM - getDyn starts
02-13 03:42:25.001 D/dalvikvm( 5367): GC_CONCURRENT freed 421K, 7% free 7106K/7623K, paused 2ms+9ms
02-13 03:42:25.401 I/stub( 5367): WM - getDyn ends
02-13 03:42:25.401 I/stub( 5367): WM - uniqueId start
02-13 03:42:25.411 E/BluetoothAdapter( 5367): this device does not have Bluetooth support
02-13 03:42:25.411 I/stub( 5367): WM - uniqueId ends
02-13 03:42:25.411 I/stub( 5367): IMS - onProceed before call
02-13 03:42:25.711 E/stub( 5367): Expected a quoted string (position:DOCDECL #1:50 in java.io.InputStreamReader#4111baf8)
02-13 03:42:25.741 D/ViewRootImpl( 5367): pckname = com.user.stub
02-13 03:42:27.471 W/IInputConnectionWrapper( 5367): showStatusIcon on inactive InputConnection
02-13 03:42:27.471 W/InputManagerService( 160): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy#412aaef8 (uid=10050 pid=5367)
02-13 03:42:27.691 D/dalvikvm( 322): GC_CONCURRENT freed 2849K, 40% free 8774K/14407K, paused 2ms+11ms
02-13 03:42:27.831 D/dalvikvm( 322): GC_FOR_ALLOC freed 45K, 40% free 8774K/14407K, paused 120ms
02-13 03:42:27.841 I/dalvikvm-heap( 322): Grow heap (frag case) to 9.862MB for 1286224-byte allocation
02-13 03:42:28.041 D/dalvikvm( 322): GC_FOR_ALLOC freed 403K, 34% free 9627K/14407K, paused 142ms
02-13 03:42:28.321 D/dalvikvm( 322): GC_FOR_ALLOC freed 1324K, 42% free 8455K/14407K, paused 64ms
02-13 03:42:28.321 I/dalvikvm-heap( 322): Grow heap (frag case) to 9.550MB for 1286224-byte allocation
02-13 03:42:28.401 D/dalvikvm( 322): GC_FOR_ALLOC freed 2K, 33% free 9709K/14407K, paused 60ms
02-13 03:42:28.501 D/dalvikvm( 322): GC_CONCURRENT freed 22K, 33% free 9712K/14407K, paused 3ms+24ms
02-13 03:42:28.681 D/dalvikvm( 322): GC_CONCURRENT freed 1714K, 38% free 9047K/14407K, paused 2ms+5ms
02-13 03:42:29.711 I/ActivityManager( 160): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=ukzzang.android.app.logviewer/.act.MainAct} from pid 322
02-13 03:42:29.861 D/OpenGLRenderer( 322): Flushing caches (mode 0)
02-13 03:42:29.931 W/InputManagerService( 160): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy#4121beb8 (uid=10026 pid=322)
02-13 03:42:32.551 D/OpenGLRenderer( 322): Flushing caches (mode 1)
02-13 03:42:38.871 I/ActivityManager( 160): Start proc com.google.android.gm for service com.google.android.gm/.provider.MailIndexerService: pid=5497 uid=10018 gids={3003, 1015, 1023}
02-13 03:42:39.101 I/ActivityThread( 5497): Pub gmail-ls: com.google.android.gm.provider.MailProvider
02-13 03:42:39.131 I/ActivityThread( 5497): Pub com.google.android.gmail.SuggestionProvider: com.google.android.gm.SuggestionsProvider
02-13 03:42:39.131 I/ActivityThread( 5497): Pub com.google.android.gm: com.google.android.gm.provider.PublicContentProvider
02-13 03:42:39.291 W/Gmail ( 5497): No MailEngine for account: lance.pruitt.ibss#gmail.com
02-13 03:42:50.661 D/dalvikvm( 224): GC_CONCURRENT freed 439K, 33% free 8158K/12039K, paused 4ms+14ms
02-13 03:43:29.691 D/audio_hw_primary( 85): start_output_stream: card:0, port:0, rate:44100
02-13 03:43:33.931 W/InputManagerService( 160): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#4141fde0
02-13 03:43:36.031 D/audio_hw_primary( 85): start_output_stream: card:0, port:0, rate:44100
02-13 03:43:36.071 W/InputManagerService( 160): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#41381330

Unable to start service Intent { flg=0x4 cmp=mypackage/.AlarmReceiver (has extras) }: not found

Here my manifest? Is a manifest problem? Many many hours spent to discover the problem... is a service that starts a class by intent (using alarmmanager). If no a manifest problem, what's the problem?
Thanks for help!
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mypackage"
android:versionCode="1"
android:versionName="1" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" android:name="CrashReports">
<service android:name="UnUsedService">
<intent-filter>
<action
android:name="org.gortcloud.startatboot.UnUsedService" />
</intent-filter>
</service>
<receiver android:name="AutoStart">
<intent-filter>
<action
android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.HOME" />
</intent-filter>
</receiver>
<receiver android:name="AlarmReceiver" android:process=":remote"/>
<activity
android:name="com.example.mypackage.MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:enabled="true" android:name=".SobService"/>
<activity android:name="Index"></activity>
<activity android:name="SendText"></activity>
</application>
</manifest>
logcat
E/ThrottleService( 149): problem during onPollAlarm: java.lang.IllegalStateException: problem parsing stats: java.io.FileNotFoundException: /proc/net/xt_qtaguid/iface_stat_all: open failed: ENOENT (No such file or directory)
D/dalvikvm( 149): GC_CONCURRENT freed 637K, 13% free 8307K/9479K, paused 25ms+12ms, total 142ms
D/AndroidRuntime(14611):
D/AndroidRuntime(14611): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime(14611): CheckJNI is ON
D/dalvikvm(14611): Trying to load lib libjavacore.so 0x0
D/dalvikvm(14611): Added shared lib libjavacore.so 0x0
D/dalvikvm(14611): Trying to load lib libnativehelper.so 0x0
D/dalvikvm(14611): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime(14611): Calling main entry com.android.commands.pm.Pm
W/ActivityManager( 149): No content provider found for permission revoke: file:///data/local/tmp/MainActivity.apk
D/dalvikvm( 2860): GC_CONCURRENT freed 457K, 14% free 5292K/6087K, paused 17ms+4ms, total 75ms
W/ActivityManager( 149): No content provider found for permission revoke: file:///data/local/tmp/MainActivity.apk
D/dalvikvm( 149): GC_CONCURRENT freed 614K, 12% free 8360K/9479K, paused 22ms+30ms, total 125ms
D/dalvikvm( 149): GC_FOR_ALLOC freed 282K, 13% free 8265K/9479K, paused 69ms, total 70ms
D/dalvikvm( 149): GC_FOR_ALLOC freed 234K, 13% free 8267K/9479K, paused 86ms, total 87ms
D/dalvikvm( 149): GC_FOR_ALLOC freed 239K, 13% free 8270K/9479K, paused 68ms, total 68ms
I/PackageManager( 149): Removing non-system package:org.gortcloud.perledisaggezza
I/ActivityManager( 149): Force stopping package org.gortcloud.perledisaggezza uid=10044
I/ActivityManager( 149): Killing proc 10610:org.gortcloud.perledisaggezza/u0a44: force stop
W/ActivityManager( 149): Force removing ActivityRecord{411fe0f0 org.gortcloud.perledisaggezza/.MainActivity}: app died, no saved state
W/InputDispatcher( 149): channel '412b50c0 org.gortcloud.perledisaggezza/org.gortcloud.perledisaggezza.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
E/InputDispatcher( 149): channel '412b50c0 org.gortcloud.perledisaggezza/org.gortcloud.perledisaggezza.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
I/WindowState( 149): WIN DEATH: Window{412b50c0 org.gortcloud.perledisaggezza/org.gortcloud.perledisaggezza.MainActivity paused=false}
W/InputDispatcher( 149): Attempted to unregister already unregistered input channel '412b50c0 org.gortcloud.perledisaggezza/org.gortcloud.perledisaggezza.MainActivity (server)'
I/Choreographer( 149): Skipped 75 frames! The application may be doing too much work on its main thread.
I/WindowManager( 149): WINDOW DIED Window{412b50c0 org.gortcloud.perledisaggezza/org.gortcloud.perledisaggezza.MainActivity paused=false}
I/Choreographer( 258): Skipped 238 frames! The application may be doing too much work on its main thread.
I/PackageManager( 149): Package org.gortcloud.perledisaggezza codePath changed from /data/app/org.gortcloud.perledisaggezza-2.apk to /data/app/org.gortcloud.perledisaggezza-1.apk; Retaining data and using new
W/InputMethodManagerService( 149): Got RemoteException sending setActive(false) notification to pid 10610 uid 10044
I/PackageManager( 149): Running dexopt on: org.gortcloud.perledisaggezza
D/dalvikvm(14630): DexOpt: load 129ms, verify+opt 643ms, 962252 bytes
W/PackageManager( 149): Code path for pkg : org.gortcloud.perledisaggezza changing from /data/app/org.gortcloud.perledisaggezza-2.apk to /data/app/org.gortcloud.perledisaggezza-1.apk
W/PackageManager( 149): Resource path for pkg : org.gortcloud.perledisaggezza changing from /data/app/org.gortcloud.perledisaggezza-2.apk to /data/app/org.gortcloud.perledisaggezza-1.apk
D/dalvikvm( 149): GC_FOR_ALLOC freed 320K, 13% free 8281K/9479K, paused 72ms, total 73ms
I/ActivityManager( 149): Force stopping package org.gortcloud.perledisaggezza uid=10044
D/PackageManager( 149): New package installed in /data/app/org.gortcloud.perledisaggezza-1.apk
W/PackageManager( 149): Not granting permission android.permission.READ_LOGS to package org.gortcloud.perledisaggezza (protectionLevel=50 flags=0x8be46)
I/ActivityManager( 149): Force stopping package org.gortcloud.perledisaggezza uid=10044
D/dalvikvm( 204): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 258): WAIT_FOR_CONCURRENT_GC blocked 1ms
D/dalvikvm( 204): GC_EXPLICIT freed 216K, 62% free 5881K/15367K, paused 8ms+19ms, total 155ms
D/dalvikvm( 258): GC_EXPLICIT freed 409K, 39% free 7423K/12103K, paused 8ms+22ms, total 156ms
D/dalvikvm( 323): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 323): GC_EXPLICIT freed 177K, 10% free 5564K/6151K, paused 8ms+9ms, total 88ms
I/InputReader( 149): Reconfiguring input devices. changes=0x00000010
D/PackageManager( 149): generateServicesMap(android.accounts.AccountAuthenticator): 2 services unchanged
D/PackageManager( 149): generateServicesMap(android.content.SyncAdapter): 4 services unchanged
D/BackupManagerService( 149): Received broadcast Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:org.gortcloud.perledisaggezza flg=0x8000010 (has extras) }
D/dalvikvm( 149): WAIT_FOR_CONCURRENT_GC blocked 0ms
I/AccountTypeManager( 367): Loaded meta-data for 1 account types, 0 accounts in 53ms(wall) 5ms(cpu)
D/dalvikvm( 149): GC_EXPLICIT freed 503K, 15% free 8140K/9479K, paused 65ms+21ms, total 204ms
I/InputReader( 149): Reconfiguring input devices. changes=0x00000010
D/PackageManager( 149): generateServicesMap(android.accounts.AccountAuthenticator): 2 services unchanged
D/PackageManager( 149): generateServicesMap(android.content.SyncAdapter): 4 services unchanged
D/BackupManagerService( 149): Received broadcast Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.gortcloud.perledisaggezza flg=0x8000010 (has extras) }
V/BackupManagerService( 149): removePackageParticipantsLocked: uid=10044 #1
V/BackupManagerService( 149): addPackageParticipantsLocked: #1
W/InputMethodManagerService( 149): Found no subtypes in a system IME: com.android.inputmethod.pinyin
I/AccountTypeManager( 367): Loaded meta-data for 1 account types, 0 accounts in 11ms(wall) 7ms(cpu)
I/Choreographer( 258): Skipped 533 frames! The application may be doing too much work on its main thread.
D/dalvikvm( 149): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 367): GC_CONCURRENT freed 403K, 12% free 5471K/6215K, paused 100ms+14ms, total 174ms
W/RecognitionManagerService( 149): no available voice recognition services found
D/dalvikvm( 149): GC_EXPLICIT freed 400K, 14% free 8170K/9479K, paused 27ms+47ms, total 266ms
D/AndroidRuntime(14611): Shutting down VM
D/dalvikvm(14611): GC_CONCURRENT freed 101K, 78% free 458K/2048K, paused 2ms+1ms, total 13ms
D/jdwp (14611): Got wake-up signal, bailing out of select
D/dalvikvm(14611): Debugger has detached; object registry had 1 entries
I/AndroidRuntime(14611): NOTE: attach of thread 'Binder_3' failed
D/AndroidRuntime(14647):
D/AndroidRuntime(14647): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime(14647): CheckJNI is ON
D/dalvikvm(14647): Trying to load lib libjavacore.so 0x0
D/dalvikvm(14647): Added shared lib libjavacore.so 0x0
D/dalvikvm(14647): Trying to load lib libnativehelper.so 0x0
D/dalvikvm(14647): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime(14647): Calling main entry com.android.commands.am.Am
I/ActivityManager( 149): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=org.gortcloud.perledisaggezza/.MainActivity u=0} from pid 14647
W/WindowManager( 149): Failure taking screenshot for (123x221) to layer 21025
D/AndroidRuntime(14647): Shutting down VM
D/dalvikvm(14647): GC_CONCURRENT freed 102K, 77% free 489K/2048K, paused 1ms+2ms, total 11ms
D/jdwp (14647): Got wake-up signal, bailing out of select
D/dalvikvm(14647): Debugger has detached; object registry had 1 entries
I/AndroidRuntime(14647): NOTE: attach of thread 'Binder_3' failed
D/dalvikvm( 258): GC_CONCURRENT freed 539K, 38% free 7520K/12103K, paused 16ms+127ms, total 360ms
D/dalvikvm(14658): Not late-enabling CheckJNI (already on)
I/ActivityManager( 149): Start proc org.gortcloud.perledisaggezza for activity org.gortcloud.perledisaggezza/.MainActivity: pid=14658 uid=10044 gids={3003, 1028}
E/Trace (14658): error opening trace file: No such file or directory (2)
I/Choreographer( 149): Skipped 35 frames! The application may be doing too much work on its main thread.
D/ACRA (14658): ACRA is enabled for org.gortcloud.perledisaggezza, intializing...
D/ACRA (14658): Using default Report Fields
D/ACRA (14658): Looking for error files in /data/data/org.gortcloud.perledisaggezza/files
D/dalvikvm(14658): GC_FOR_ALLOC freed 179K, 9% free 5372K/5895K, paused 31ms, total 32ms
I/dalvikvm-heap(14658): Grow heap (frag case) to 5.965MB for 457616-byte allocation
D/dalvikvm(14658): GC_CONCURRENT freed 1K, 9% free 5817K/6343K, paused 19ms+13ms, total 61ms
D/dalvikvm(14658): GC_CONCURRENT freed 48K, 6% free 6322K/6663K, paused 15ms+4ms, total 65ms
D/dalvikvm(14658): WAIT_FOR_CONCURRENT_GC blocked 18ms
D/dalvikvm(14658): GC_FOR_ALLOC freed 48K, 6% free 6464K/6855K, paused 41ms, total 41ms
I/dalvikvm-heap(14658): Grow heap (frag case) to 7.234MB for 668816-byte allocation
D/dalvikvm(14658): GC_FOR_ALLOC freed <1K, 6% free 7117K/7559K, paused 58ms, total 58ms
D/dalvikvm(14658): GC_CONCURRENT freed <1K, 6% free 7117K/7559K, paused 16ms+4ms, total 64ms
I/Choreographer(14658): Skipped 58 frames! The application may be doing too much work on its main thread.
I/Choreographer(14658): Skipped 233 frames! The application may be doing too much work on its main thread.
D/gralloc_goldfish(14658): Emulator without GPU emulation detected.
I/ActivityManager( 149): Displayed org.gortcloud.perledisaggezza/.MainActivity: +1s713ms
I/Choreographer( 149): Skipped 61 frames! The application may be doing too much work on its main thread.
I/Choreographer( 149): Skipped 43 frames! The application may be doing too much work on its main thread.
I/Choreographer(14658): Skipped 271 frames! The application may be doing too much work on its main thread.
D/dalvikvm( 243): GC_CONCURRENT freed 384K, 13% free 5798K/6599K, paused 4ms+4ms, total 36ms
I/Choreographer(14658): Skipped 46 frames! The application may be doing too much work on its main thread.
I/Choreographer( 149): Skipped 36 frames! The application may be doing too much work on its main thread.
D/dalvikvm(14692): Not late-enabling CheckJNI (already on)
I/ActivityManager( 149): Start proc org.gortcloud.perledisaggezza:remote for broadcast org.gortcloud.perledisaggezza/.AlarmReceiver: pid=14692 uid=10044 gids={3003, 1028}
E/Trace (14692): error opening trace file: No such file or directory (2)
D/ACRA (14692): ACRA is enabled for org.gortcloud.perledisaggezza, intializing...
D/ACRA (14692): Using default Report Fields
D/ACRA (14692): Looking for error files in /data/data/org.gortcloud.perledisaggezza/files
D/gralloc_goldfish(14692): Emulator without GPU emulation detected.
UnUsedService (starts from my activity by:
startService(new Intent(this, UnUsedService.class));
UnUsedService
public class UnUsedService extends Service {
//private PendingIntent pendingIntent;
#Override
public IBinder onBind(Intent intent) {
return null;
}
#Override
public void onCreate() {
super.onCreate();
Toast.makeText(this, "Service Created", Toast.LENGTH_LONG).show();
//startService(new Intent(this, UnUsedService.class));
}
#Override
public void onDestroy() {
super.onDestroy();
Toast.makeText(this, "Service Destroyed", Toast.LENGTH_LONG).show();
}
private PendingIntent pendingIntent;
#SuppressWarnings("deprecation")
#Override
public void onStart(Intent intent, int startId) {
// super.onStart();
super.onStart(intent, startId);
Toast.makeText(this, "Service Started", Toast.LENGTH_LONG).show();
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.HOUR_OF_DAY, 23);
calendar.set(Calendar.MINUTE, 32);
calendar.set(Calendar.SECOND, 0); AlarmManager am = (AlarmManager) getApplicationContext().getSystemService (Context.ALARM_SERVICE);
PendingIntent pi = PendingIntent.getService(getApplicationContext(), 0, new Intent(getApplicationContext(), AlarmReceiver.class), PendingIntent.FLAG_UPDATE_CURRENT);
am.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), AlarmManager.INTERVAL_DAY, pi);
am.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis()+1000, AlarmManager.INTERVAL_DAY, pi);
}};
Receiver:
public class AlarmReceiver extends BroadcastReceiver {
#Override
public void onReceive(Context context, Intent intent) {
Toast.makeText(context, "Alarm worked.", Toast.LENGTH_LONG).show();
}
}
I noticed that you're creating the wrong type of PendingIntent:
pendingIntent = PendingIntent.getService(UnUsedService.this, 0, myIntent, 0);
You want to target your BroadcastReceiver, so you need to use:
pendingIntent = PendingIntent.getBroadcast(AlarmReceiver.this, 0, myIntent, 0);
instead of this in your mainifest. .
try this
<activity android:name="com.example.mypackage.Index"></activity>
<activity android:name="com.example.mypackage.SendText"></activity>

App force close when executing menu inflater in Android 4.0.4

I built an app base on android api version 8, I choose this option because I think it will work in the newer version of Android, but when I try to do something as I mention in the title I got my app force close. The application starts and works normally, only error in menu inflater, here is my code :
#Override
public boolean onOptionsItemSelected(MenuItem item) {
// TODO Auto-generated method stub
Toast.makeText(this, "About Developer", Toast.LENGTH_LONG).show();
Intent i = new Intent(this, about.class);
startActivity(i);
return true;
}
does anyone have any idea to fix it?
Logcat :
09-10 14:07:02.630: DEBUG/AndroidRuntime(1631): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
09-10 14:07:02.646: DEBUG/AndroidRuntime(1631): CheckJNI is ON
09-10 14:07:10.746: DEBUG/AndroidRuntime(1631): Calling main entry com.android.commands.pm.Pm
09-10 14:07:12.027: DEBUG/dalvikvm(266): GC_EXPLICIT freed 10K, 54% free 2552K/5511K, external 716K/1038K, paused 360ms
09-10 14:07:12.086: WARN/ActivityManager(68): No content provider found for:
09-10 14:07:12.237: WARN/ActivityManager(68): No content provider found for:
09-10 14:07:12.307: DEBUG/PackageParser(68): Scanning package: /data/app/vmdl-674477132.tmp
09-10 14:07:12.707: INFO/PackageManager(68): Removing non-system package:com.dg.tkd
09-10 14:07:12.707: INFO/ActivityManager(68): Force stopping package com.dg.tkd uid=10036
09-10 14:07:12.837: INFO/Process(68): Sending signal. PID: 1618 SIG: 9
09-10 14:07:12.928: ERROR/InputDispatcher(68): channel '4079e2f8 com.dg.tkd/com.dg.tkd.digital_tkd (server)' ~ Consumer closed input channel or an error occurred. events=0x8
09-10 14:07:12.928: ERROR/InputDispatcher(68): channel '4079e2f8 com.dg.tkd/com.dg.tkd.digital_tkd (server)' ~ Channel is unrecoverably broken and will be disposed!
09-10 14:07:12.947: INFO/ActivityManager(68): Force finishing activity HistoryRecord{406a3e48 com.dg.tkd/.digital_tkd}
09-10 14:07:12.986: INFO/WindowManager(68): WIN DEATH: Window{407ea958 com.dg.tkd/com.dg.tkd.about paused=false}
09-10 14:07:13.037: INFO/WindowManager(68): WIN DEATH: Window{4079e2f8 com.dg.tkd/com.dg.tkd.digital_tkd paused=false}
09-10 14:07:13.086: ERROR/InputDispatcher(68): Received spurious receive callback for unknown input channel. fd=161, events=0x8
09-10 14:07:13.447: DEBUG/dalvikvm(68): GC_CONCURRENT freed 1043K, 46% free 4596K/8455K, external 3251K/3627K, paused 24ms+31ms
09-10 14:07:13.788: DEBUG/PackageManager(68): Scanning package com.dg.tkd
09-10 14:07:13.788: INFO/ActivityManager(68): Start proc com.android.launcher for activity com.android.launcher/com.android.launcher2.Launcher: pid=1641 uid=10001 gids={}
09-10 14:07:13.836: INFO/PackageManager(68): Package com.dg.tkd codePath changed from /data/app/com.dg.tkd-1.apk to /data/app/com.dg.tkd-2.apk; Retaining data and using new
09-10 14:07:14.146: INFO/PackageManager(68): Unpacking native libraries for /data/app/com.dg.tkd-2.apk
09-10 14:07:14.707: DEBUG/installd(35): DexInv: --- BEGIN '/data/app/com.dg.tkd-2.apk' ---
09-10 14:07:15.457: DEBUG/dalvikvm(1649): DexOpt: load 72ms, verify+opt 125ms
09-10 14:07:15.537: DEBUG/installd(35): DexInv: --- END '/data/app/com.dg.tkd-2.apk' (success) ---
09-10 14:07:15.546: WARN/PackageManager(68): Code path for pkg : com.dg.tkd changing from /data/app/com.dg.tkd-1.apk to /data/app/com.dg.tkd-2.apk
09-10 14:07:15.546: WARN/PackageManager(68): Resource path for pkg : com.dg.tkd changing from /data/app/com.dg.tkd-1.apk to /data/app/com.dg.tkd-2.apk
09-10 14:07:15.546: DEBUG/PackageManager(68): Activities: com.dg.tkd.digital_tkd com.dg.tkd.about
09-10 14:07:15.747: INFO/installd(35): move /data/dalvik-cache/data#app#com.dg.tkd-2.apk#classes.dex -> /data/dalvik-cache/data#app#com.dg.tkd-2.apk#classes.dex
09-10 14:07:15.757: DEBUG/PackageManager(68): New package installed in /data/app/com.dg.tkd-2.apk
09-10 14:07:16.047: INFO/WindowManager(68): Setting rotation to 0, animFlags=1
09-10 14:07:16.146: INFO/ActivityManager(68): Config changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=1 layout=18 uiMode=17 seq=48}
09-10 14:07:16.717: INFO/ActivityManager(68): Force stopping package com.dg.tkd uid=10036
09-10 14:07:17.717: INFO/ActivityThread(1641): Pub com.android.launcher2.settings: com.android.launcher2.LauncherProvider
09-10 14:07:19.727: DEBUG/dalvikvm(1641): GC_EXTERNAL_ALLOC freed 457K, 54% free 2684K/5767K, external 1032K/1038K, paused 107ms
09-10 14:07:20.607: INFO/ActivityManager(68): Displayed com.android.launcher/com.android.launcher2.Launcher: +7s521ms
09-10 14:07:20.687: WARN/InputManagerService(68): Got RemoteException sending setActive(false) notification to pid 1618 uid 10036
09-10 14:07:21.156: WARN/WindowManager(68): App freeze timeout expired.
09-10 14:07:21.657: INFO/ActivityManager(68): Force stopping package com.dg.tkd uid=10036
09-10 14:07:22.097: DEBUG/dalvikvm(1641): GC_EXTERNAL_ALLOC freed 97K, 53% free 2718K/5767K, external 1561K/1572K, paused 229ms
09-10 14:07:22.256: DEBUG/dalvikvm(68): GC_EXPLICIT freed 514K, 47% free 4504K/8455K, external 3247K/3627K, paused 397ms
09-10 14:07:23.517: DEBUG/dalvikvm(68): GC_EXPLICIT freed 18K, 47% free 4486K/8455K, external 3247K/3627K, paused 240ms
09-10 14:07:25.356: WARN/RecognitionManagerService(68): no available voice recognition services found
09-10 14:07:26.056: DEBUG/dalvikvm(68): GC_EXPLICIT freed 129K, 47% free 4515K/8455K, external 3247K/3627K, paused 391ms
09-10 14:07:26.906: INFO/installd(35): unlink /data/dalvik-cache/data#app#com.dg.tkd-1.apk#classes.dex
09-10 14:07:27.037: DEBUG/AndroidRuntime(1631): Shutting down VM
09-10 14:07:27.097: INFO/AndroidRuntime(1631): NOTE: attach of thread 'Binder Thread #4' failed
09-10 14:07:27.117: DEBUG/dalvikvm(1631): GC_CONCURRENT freed 100K, 72% free 293K/1024K, external 0K/0K, paused 16ms+18ms
09-10 14:07:27.157: DEBUG/dalvikvm(1631): Debugger has detached; object registry had 1 entries
09-10 14:07:29.029: DEBUG/AndroidRuntime(1657): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
09-10 14:07:29.029: DEBUG/AndroidRuntime(1657): CheckJNI is ON
09-10 14:07:30.966: DEBUG/dalvikvm(1641): GC_CONCURRENT freed 224K, 50% free 2915K/5767K, external 1959K/2091K, paused 9ms+9ms
09-10 14:07:31.826: DEBUG/AndroidRuntime(1657): Calling main entry com.android.commands.am.Am
09-10 14:07:32.726: INFO/ActivityManager(68): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.dg.tkd/.digital_tkd } from pid 1657
09-10 14:07:32.857: DEBUG/AndroidRuntime(1657): Shutting down VM
09-10 14:07:32.926: INFO/AndroidRuntime(1657): NOTE: attach of thread 'Binder Thread #3' failed
09-10 14:07:33.037: DEBUG/dalvikvm(1657): GC_CONCURRENT freed 102K, 69% free 319K/1024K, external 0K/0K, paused 4ms+2ms
09-10 14:07:33.108: DEBUG/jdwp(1657): Got wake-up signal, bailing out of select
09-10 14:07:33.108: DEBUG/dalvikvm(1657): Debugger has detached; object registry had 1 entries
09-10 14:07:33.327: WARN/ActivityManager(68): Activity pause timeout for HistoryRecord{40796458 com.android.launcher/com.android.launcher2.Launcher}
09-10 14:07:33.446: INFO/ActivityManager(68): Start proc com.dg.tkd for activity com.dg.tkd/.digital_tkd: pid=1666 uid=10036 gids={}
09-10 14:07:34.347: INFO/WindowManager(68): Setting rotation to 1, animFlags=1
09-10 14:07:34.386: INFO/ActivityManager(68): Config changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=2 layout=18 uiMode=17 seq=49}
09-10 14:07:35.997: INFO/ActivityManager(68): Displayed com.dg.tkd/.digital_tkd: +2s584ms
09-10 14:07:37.786: DEBUG/dalvikvm(266): GC_EXPLICIT freed 8K, 54% free 2551K/5511K, external 716K/1038K, paused 381ms
09-10 14:07:38.046: WARN/IInputConnectionWrapper(1641): showStatusIcon on inactive InputConnection
09-10 14:07:38.337: DEBUG/dalvikvm(1641): GC_EXTERNAL_ALLOC freed 33K, 50% free 2899K/5767K, external 1953K/2091K, paused 88ms
09-10 14:07:38.896: DEBUG/dalvikvm(68): GC_EXPLICIT freed 298K, 47% free 4490K/8455K, external 3247K/3627K, paused 172ms
09-10 14:07:40.007: DEBUG/dalvikvm(1641): GC_EXTERNAL_ALLOC freed 48K, 50% free 2891K/5767K, external 2754K/2940K, paused 104ms
09-10 14:07:41.847: DEBUG/dalvikvm(317): GC_EXPLICIT freed 12K, 55% free 2578K/5703K, external 716K/1038K, paused 167ms
09-10 14:07:45.489: INFO/ActivityManager(68): Process android.process.media (pid 210) has died.
09-10 14:07:47.356: DEBUG/dalvikvm(341): GC_EXPLICIT freed 5K, 55% free 2520K/5511K, external 716K/1038K, paused 644ms
09-10 14:07:49.816: DEBUG/dalvikvm(1641): GC_EXTERNAL_ALLOC freed 9K, 51% free 2882K/5767K, external 5999K/7492K, paused 167ms
09-10 14:08:18.196: WARN/KeyCharacterMap(1666): No keyboard for id 0
09-10 14:08:18.196: WARN/KeyCharacterMap(1666): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
09-10 14:08:21.546: INFO/ActivityManager(68): Starting: Intent { cmp=com.dg.tkd/.about } from pid 1666
09-10 14:08:22.097: DEBUG/dalvikvm(1666): GC_EXTERNAL_ALLOC freed 65K, 52% free 2608K/5379K, external 908K/1038K, paused 97ms
09-10 14:08:23.776: INFO/ActivityManager(68): Displayed com.dg.tkd/.about: +2s112ms

Could not find *apk, first run but works on the second run

I have searched on the site but i could not find the exact resolution of this very annoying problem. Every time , i create a new Android project , it fails at the first attempt to run it with the reddish message "Could not fin *apk!" but work well on the second attempt and so on. Can anyone here help to fix this issue , as i did not have this problem previously. I could run my program at the first attempt.
Here is what i get at the console but you will be able to see that it works properly at the second attempt...
hope to here from you guys soon and thanks in advance.
I have eclipse Eclipse Indingo service release 1
ADT r15 running on a windows 7 ultimate machine
Console output message :
[2011-12-09 15:25:11 - Layout] ------------------------------
[2011-12-09 15:25:11 - Layout] Android Launch!
[2011-12-09 15:25:11 - Layout] adb is running normally.
[2011-12-09 15:25:11 - Layout] Could not find Layout.apk!
[2011-12-09 15:25:43 - Layout] ------------------------------
[2011-12-09 15:25:43 - Layout] Android Launch!
[2011-12-09 15:25:43 - Layout] adb is running normally.
[2011-12-09 15:25:43 - Layout] Performing com.delanation.lay.main activity launch
[2011-12-09 15:25:43 - Layout] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'GingerBread'
[2011-12-09 15:25:43 - Layout] Uploading Layout.apk onto device 'emulator-5554'
[2011-12-09 15:25:44 - Layout] Installing Layout.apk...
[2011-12-09 15:25:47 - Layout] Success!
[2011-12-09 15:25:48 - Layout] Starting activity com.delanation.lay.main on device emulator-5554
[2011-12-09 15:25:49 - Layout] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.delanation.lay/.main }
LogCat :
=============================================
*12-09 00:31:24.611: D/AndroidRuntime(6161): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
12-09 00:31:24.611: D/AndroidRuntime(6161): CheckJNI is ON
12-09 00:31:25.371: D/AndroidRuntime(6161): Calling main entry com.android.commands.pm.Pm
12-09 00:31:25.581: D/dalvikvm(380): GC_EXPLICIT freed 5K, 54% free 2539K/5511K, external 1625K/2137K, paused 74ms
12-09 00:31:25.581: W/ActivityManager(81): No content provider found for:
12-09 00:31:25.643: W/ActivityManager(81): No content provider found for:
12-09 00:31:25.661: D/PackageParser(81): Scanning package: /data/app/vmdl-1754418723.tmp
12-09 00:31:25.771: D/PackageManager(81): Scanning package com.delanation.lay
12-09 00:31:25.782: I/PackageManager(81): Unpacking native libraries for /data/app/com.delanation.lay-1.apk
12-09 00:31:25.870: D/installd(35): DexInv: --- BEGIN '/data/app/com.delanation.lay-1.apk' ---
12-09 00:31:26.021: D/dalvikvm(6170): DexOpt: load 32ms, verify+opt 15ms
12-09 00:31:26.051: D/installd(35): DexInv: --- END '/data/app/com.delanation.lay-1.apk' (success) ---
12-09 00:31:26.061: D/PackageManager(81): Activities: com.delanation.lay.main
12-09 00:31:26.081: I/ActivityManager(81): Force stopping package com.delanation.lay uid=10042
12-09 00:31:26.391: I/installd(35): move /data/dalvik-cache/data#app#com.delanation.lay-1.apk#classes.dex -> /data/dalvik-cache/data#app#com.delanation.lay-1.apk#classes.dex
12-09 00:31:26.391: D/PackageManager(81): New package installed in /data/app/com.delanation.lay-1.apk
12-09 00:31:27.311: W/RecognitionManagerService(81): no available voice recognition services found
12-09 00:31:27.781: D/dalvikvm(81): GC_EXPLICIT freed 820K, 55% free 4739K/10375K, external 3933K/4430K, paused 124ms
12-09 00:31:27.801: D/AndroidRuntime(6161): Shutting down VM
12-09 00:31:27.811: D/dalvikvm(6161): GC_CONCURRENT freed 101K, 72% free 295K/1024K, external 0K/0K, paused 1ms+1ms
12-09 00:31:27.831: D/jdwp(6161): Got wake-up signal, bailing out of select
12-09 00:31:27.831: D/dalvikvm(6161): Debugger has detached; object registry had 1 entries
12-09 00:31:27.861: I/dalvikvm(6161): JNI: AttachCurrentThread (from ???.???)
12-09 00:31:27.861: I/AndroidRuntime(6161): NOTE: attach of thread 'Binder Thread #3' failed
12-09 00:31:28.501: D/AndroidRuntime(6175): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
12-09 00:31:28.501: D/AndroidRuntime(6175): CheckJNI is ON
12-09 00:31:29.251: D/AndroidRuntime(6175): Calling main entry com.android.commands.am.Am
12-09 00:31:29.281: I/ActivityManager(81): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.delanation.lay/.main } from pid 6175
12-09 00:31:29.531: D/AndroidRuntime(6175): Shutting down VM
12-09 00:31:29.531: I/ActivityManager(81): Start proc com.delanation.lay for activity com.delanation.lay/.main: pid=6184 uid=10042 gids={}
12-09 00:31:29.551: D/dalvikvm(6175): GC_CONCURRENT freed 102K, 69% free 320K/1024K, external 0K/0K, paused 1ms+1ms
12-09 00:31:29.591: D/jdwp(6175): Got wake-up signal, bailing out of select
12-09 00:31:29.591: D/dalvikvm(6175): Debugger has detached; object registry had 1 entries
12-09 00:31:29.622: I/AndroidRuntime(6175): NOTE: attach of thread 'Binder Thread #3' failed
12-09 00:31:30.821: I/ActivityManager(81): Displayed com.delanation.lay/.main: +1s304ms
12-09 00:31:35.971: D/dalvikvm(380): GC_EXPLICIT freed 6K, 54% free 2537K/5511K, external 1625K/2137K, paused 59ms
12-09 00:31:36.911: I/ActivityManager(81): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher/com.android.launcher2.Launcher } from pid 81
12-09 00:31:37.161: I/ActivityManager(81): No longer want com.android.inputmethod.latin (pid 2695): hidden #16
12-09 00:31:42.611: D/dalvikvm(393): GC_EXPLICIT freed 3K, 55% free 2532K/5511K, external 1625K/2137K, paused 70ms
12-09 00:31:47.641: D/dalvikvm(290): GC_EXPLICIT freed 8K, 55% free 2591K/5703K, external 1625K/2137K, paused 76ms
12-09 00:33:38.631: D/SntpClient(81): request time failed: java.net.SocketException: Address family not supported by protocol
12-09 00:37:29.201: V/BackupManagerService(81): Backup requested but nothing pending
12-09 00:38:38.681: D/SntpClient(81): request time failed: java.net.SocketException: Address family not supported by protocol
12-09 00:43:38.681: D/SntpClient(81): request time failed: java.net.SocketException: Address family not supported by protocol*
In eclipse select 'Window' -> 'Preferences' then expand the 'Android' sub-tree and select 'Build'.
Under 'Build Settings' if you have "Skip packaging and dexing until export or launch..." enabled, try disabling it to see if that fixes the problem.

Application works in Android 1.5 but not 2.2

The spinning globe application unning on the emulator works on android 1.5 as target but puts out a "force close application" error in android 2.2 target. Where should i look to find the problem ?
I have enclosed the logcat details that I get,
D/MediaScanner( 183): prescan time: 4913ms
D/MediaScanner( 183): scan time: 693ms
D/MediaScanner( 183): postscan time: 45ms
D/MediaScanner( 183): total time: 5651ms
D/MediaScannerService( 183): done scanning volume internal
I/PackageManager( 67): Removing non-system package:com.android.SpinningGlobe
I/ActivityManager( 67): Force stopping package com.android.SpinningGlobe uid=10038
D/dalvikvm( 127): GC_EXPLICIT freed 12963 objects / 655936 bytes in 168ms
D/PackageManager( 67): Scanning package com.android.SpinningGlobe
I/PackageManager( 67): Package com.android.SpinningGlobe codePath changed from /data/app/com.android.SpinningGlobe-2.apk to /data/app/com.android.SpinningGlobe-1.apk; Retaining data and using new
I/PackageManager( 67): /data/app/com.android.SpinningGlobe-1.apk changed; unpacking
D/installd( 34): DexInv: --- BEGIN '/data/app/com.android.SpinningGlobe-1.apk' ---
D/dalvikvm( 255): DexOpt: load 214ms, verify 229ms, opt 5ms
D/installd( 34): DexInv: --- END '/data/app/com.android.SpinningGlobe-1.apk' success)---
W/PackageManager( 67): Code path for pkg : com.android.SpinningGlobe changing from /data/app/com.android.SpinningGlobe-2.apk to /data/app/com.android.SpinningGlobe-1.apk
W/PackageManager( 67): Resource path for pkg : com.android.SpinningGlobe changing from /data/app/com.android.SpinningGlobe-2.apk to /data/app/com.android.SpinningGlobe-1.apk
I/ActivityManager( 67): Force stopping package com.android.SpinningGlobe uid=10038
D/PackageManager( 67): Activities: com.android.SpinningGlobe.GLApp
I/installd( 34): move /data/dalvik-cache/data#app#com.android.SpinningGlobe-1.apk#classes.dex -> /data/dalvik-cache/data#app#com.android.SpinningGlobe-1.apk#classes.dex
D/PackageManager( 67): New package installed in /data/app/com.android.SpinningGlobe-1.apk
I/ActivityManager( 67): Force stopping package com.android.SpinningGlobe uid=10038
I/ActivityManager( 67): Start proc com.svox.pico for broadcast com.svox.pico/.VoiceDataInstallerReceiver: pid=256 uid=10028 gids={}
D/dalvikvm( 167): GC_EXPLICIT freed 3943 objects / 244424 bytes in 1708ms
D/dalvikvm( 67): GC_EXPLICIT freed 7297 objects / 468432 bytes in 667ms
W/RecognitionManagerService( 67): no available voice recognition services found
I/ActivityThread( 256): Publishing provider com.svox.pico.providers.SettingsProvider: com.svox.pico.providers.SettingsProvider
I/installd( 34): unlink /data/dalvik-cache/data#app#com.android.SpinningGlobe-2.apk#classes.dex
D/AndroidRuntime( 118): Shutting down VM
D/jdwp ( 118): adbd disconnected
I/AndroidRuntime( 118): NOTE: attach of thread 'Binder Thread #3' failed
D/AndroidRuntime( 266):
D/AndroidRuntime( 266): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 266): CheckJNI is ON
D/AndroidRuntime( 266): --- registering native functions ---
I/ActivityManager( 67): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.android.SpinningGlobe/.GLApp }
D/AndroidRuntime( 266): Shutting down VM
D/jdwp ( 266): adbd disconnected
I/AndroidRuntime( 266): NOTE: attach of thread 'Binder Thread #3' failed
I/ActivityManager( 67): Start proc com.android.SpinningGlobe for activity com.android.SpinningGlobe/.GLApp: pid=273 uid=10038 gids={1015}
I/ARMAssembler( 67): generated scanline__00000077:03545404_00000004_00000000 [ 47 ipp] (67 ins) at [0x32b4a0:0x32b5ac] in 3627836 ns
D/libEGL ( 273): egl.cfg not found, using default config
D/libEGL ( 273): loaded /system/lib/egl/libGLES_android.so
D/dalvikvm( 273): GC_EXTERNAL_ALLOC freed 839 objects / 59328 bytes in 151ms
W/dalvikvm( 273): threadid=7: thread exiting with uncaught exception (group=0x4001d800)
I/ActivityManager( 67): Displayed activity com.android.SpinningGlobe/.GLApp: 4870 ms (total 4870 ms)
E/AndroidRuntime( 273): FATAL EXCEPTION: GLThread 8
E/AndroidRuntime( 273): java.lang.IndexOutOfBoundsException
E/AndroidRuntime( 273): at java.nio.IntArrayBuffer.get(IntArrayBuffer.java:63)
E/AndroidRuntime( 273): at com.android.SpinningGlobe.GLRenderer.onDrawFrame(GLRenderer.java:105)
E/AndroidRuntime( 273): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1332)
E/AndroidRuntime( 273): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1116)
W/ActivityManager( 67): Force finishing activity com.android.SpinningGlobe/.GLApp
I/ARMAssembler( 67): generated scanline__00000077:03515104_00000000_00000000 [ 33 ipp] (47 ins) at [0x33f9a8:0x33fa64] in 1258819 ns
Any insights on where the problem could be ?
You should look at the log from the emulator.
You can get this on the command line using:
adb logcat
Or if you're using the ADT Plugin for Eclipse the log is visible there. If you can't see it select Window ▶ Show View ▶ Other... and then select Android ▶ LogCat.
It's probably also worth reading the Debugging page in the Android Developer Documentation.
Recompile it under 2.2 and look for deprecated warnings

Categories

Resources