Google map is not running even if everything is right - android

i am trying to implement a Google map in my android app.Following is my code:
private GoogleMap googleMap;
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.connect);
initilizeMap();
googleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
googleMap.setMyLocationEnabled(true);
googleMap.getUiSettings().setZoomControlsEnabled(false);
googleMap.getUiSettings().setMyLocationButtonEnabled(true);
googleMap.getUiSettings().setCompassEnabled(true);
googleMap.getUiSettings().setRotateGesturesEnabled(true);
googleMap.getUiSettings().setZoomGesturesEnabled(true);
}
private void initilizeMap() {
if (googleMap == null) {
googleMap = ((MapFragment) getFragmentManager().findFragmentById(
R.id.map)).getMap();
// check if map is created successfully or not
if (googleMap == null) {
Toast.makeText(getApplicationContext(),
"Sorry! unable to create maps", Toast.LENGTH_SHORT)
.show();
}
}
and my xml file:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<fragment
android:id="#+id/map"
android:name="com.google.android.gms.maps.MapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
</LinearLayout>
Logcat error:
07-24 07:27:44.636: E/SoundPool(382): error loading /system/media/audio/ui/Effect_Tick.ogg
07-24 07:27:44.636: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
07-24 07:27:44.646: E/SoundPool(382): error loading /system/media/audio/ui/Effect_Tick.ogg
07-24 07:27:44.646: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
07-24 07:27:44.646: E/SoundPool(382): error loading /system/media/audio/ui/Effect_Tick.ogg
07-24 07:27:44.646: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
07-24 07:27:44.646: E/SoundPool(382): error loading /system/media/audio/ui/Effect_Tick.ogg
07-24 07:27:44.646: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
07-24 07:27:44.646: E/SoundPool(382): error loading /system/media/audio/ui/Effect_Tick.ogg
07-24 07:27:44.646: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
07-24 07:27:44.656: E/SoundPool(382): error loading /system/media/audio/ui/KeypressStandard.ogg
07-24 07:27:44.656: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
07-24 07:27:44.676: E/SoundPool(382): error loading /system/media/audio/ui/KeypressSpacebar.ogg
07-24 07:27:44.676: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
07-24 07:27:44.676: E/SoundPool(382): error loading /system/media/audio/ui/KeypressDelete.ogg
07-24 07:27:44.686: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
07-24 07:27:44.686: E/SoundPool(382): error loading /system/media/audio/ui/KeypressReturn.ogg
07-24 07:27:44.686: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
07-24 07:27:44.686: E/SoundPool(382): error loading /system/media/audio/ui/KeypressInvalid.ogg
07-24 07:27:44.686: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/KeypressInvalid.ogg
07-24 07:27:44.686: W/AudioService(382): onLoadSoundEffects(), Error -1 while loading samples
07-24 07:27:46.426: W/Response(1358): {"GET":[],"POST":{"action":"login","app_secret":"jkhljkUILJGJkljhkjUGLG87796587687HGKJhghkjKUYGKJHjhgjUYGKUY7865876hgKUYGK","email":"a","password":"aa"},"status":"ERROR","msg":"Sorry ! Invalid Username or Password"}
07-24 07:27:46.526: I/ActivityManager(382): START u0 {cmp=example.atlcitylimo/.Home} from pid 1358
07-24 07:27:46.686: I/Choreographer(1358): Skipped 31 frames! The application may be doing too much work on its main thread.
07-24 07:27:46.966: E/dalvikvm(1358): Could not find class 'com.google.android.gms.maps.MapFragment', referenced from method example.atlcitylimo.Home.initilizeMap
07-24 07:27:46.976: W/dalvikvm(1358): VFY: unable to resolve check-cast 992 (Lcom/google/android/gms/maps/MapFragment;) in Lexample/atlcitylimo/Home;
07-24 07:27:46.976: D/dalvikvm(1358): VFY: replacing opcode 0x1f at 0x000f
07-24 07:27:47.036: I/dalvikvm(1358): Could not find method com.google.android.gms.maps.GoogleMap.setMapType, referenced from method example.atlcitylimo.Home.onCreate
07-24 07:27:47.036: W/dalvikvm(1358): VFY: unable to resolve virtual method 8258: Lcom/google/android/gms/maps/GoogleMap;.setMapType (I)V
07-24 07:27:47.086: D/dalvikvm(1358): VFY: replacing opcode 0x6e at 0x0042
07-24 07:27:47.386: D/dalvikvm(1358): GC_FOR_ALLOC freed 235K, 6% free 5764K/6080K, paused 86ms, total 88ms
07-24 07:27:47.386: I/dalvikvm-heap(1358): Grow heap (frag case) to 8.048MB for 2457616-byte allocation
07-24 07:27:47.526: D/dalvikvm(1358): GC_FOR_ALLOC freed 1K, 4% free 8162K/8484K, paused 138ms, total 138ms
07-24 07:27:48.956: D/AndroidRuntime(1358): Shutting down VM
07-24 07:27:48.956: W/dalvikvm(1358): threadid=1: thread exiting with uncaught exception (group=0xb3a75ba8)
07-24 07:27:49.056: E/AndroidRuntime(1358): FATAL EXCEPTION: main
07-24 07:27:49.056: E/AndroidRuntime(1358): Process: example.atlcitylimo, PID: 1358
07-24 07:27:49.056: E/AndroidRuntime(1358): java.lang.RuntimeException: Unable to start activity ComponentInfo{example.atlcitylimo/example.atlcitylimo.Home}: android.view.InflateException: Binary XML file line #16: Error inflating class fragment
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.app.ActivityThread.access$800(ActivityThread.java:135)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.os.Handler.dispatchMessage(Handler.java:102)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.os.Looper.loop(Looper.java:136)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.app.ActivityThread.main(ActivityThread.java:5017)
07-24 07:27:49.056: E/AndroidRuntime(1358): at java.lang.reflect.Method.invokeNative(Native Method)
07-24 07:27:49.056: E/AndroidRuntime(1358): at java.lang.reflect.Method.invoke(Method.java:515)
07-24 07:27:49.056: E/AndroidRuntime(1358): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
07-24 07:27:49.056: E/AndroidRuntime(1358): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
07-24 07:27:49.056: E/AndroidRuntime(1358): at dalvik.system.NativeStart.main(Native Method)
07-24 07:27:49.056: E/AndroidRuntime(1358): Caused by: android.view.InflateException: Binary XML file line #16: Error inflating class fragment
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:713)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
07-24 07:27:49.056: E/AndroidRuntime(1358): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.app.Activity.setContentView(Activity.java:1929)
07-24 07:27:49.056: E/AndroidRuntime(1358): at example.atlcitylimo.Home.onCreate(Home.java:45)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.app.Activity.performCreate(Activity.java:5231)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
07-24 07:27:49.056: E/AndroidRuntime(1358): ... 11 more
07-24 07:27:49.056: E/AndroidRuntime(1358): Caused by: android.app.Fragment$InstantiationException: Unable to instantiate fragment com.google.android.gms.maps.MapFragment: make sure class name exists, is public, and has an empty constructor that is public
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.app.Fragment.instantiate(Fragment.java:597)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.app.Fragment.instantiate(Fragment.java:561)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.app.Activity.onCreateView(Activity.java:4778)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:689)
07-24 07:27:49.056: E/AndroidRuntime(1358): ... 22 more
07-24 07:27:49.056: E/AndroidRuntime(1358): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.maps.MapFragment" on path: DexPathList[[zip file "/data/app/example.atlcitylimo-1.apk"],nativeLibraryDirectories=[/data/app-lib/example.atlcitylimo-1, /vendor/lib, /system/lib]]
07-24 07:27:49.056: E/AndroidRuntime(1358): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
07-24 07:27:49.056: E/AndroidRuntime(1358): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
07-24 07:27:49.056: E/AndroidRuntime(1358): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
07-24 07:27:49.056: E/AndroidRuntime(1358): at android.app.Fragment.instantiate(Fragment.java:583)
07-24 07:27:49.056: E/AndroidRuntime(1358): ... 25 more
07-24 07:27:49.476: W/ActivityManager(382): Force finishing activity example.atlcitylimo/.Home
07-24 07:27:49.526: W/ActivityManager(382): Force finishing activity example.atlcitylimo/.Main
07-24 07:27:49.796: D/dalvikvm(382): GC_FOR_ALLOC freed 517K, 20% free 6664K/8264K, paused 132ms, total 135ms
07-24 07:27:49.796: I/dalvikvm-heap(382): Grow heap (frag case) to 7.196MB for 635812-byte allocation
07-24 07:27:49.926: D/dalvikvm(382): GC_FOR_ALLOC freed 3K, 19% free 7282K/8888K, paused 134ms, total 134ms
07-24 07:27:49.936: I/Choreographer(382): Skipped 44 frames! The application may be doing too much work on its main thread.
07-24 07:27:50.806: I/Choreographer(382): Skipped 71 frames! The application may be doing too much work on its main thread.
07-24 07:27:50.976: W/ActivityManager(382): Activity pause timeout for ActivityRecord{b3fc3d40 u0 example.atlcitylimo/.Home t2 f}
07-24 07:27:51.386: I/Choreographer(382): Skipped 151 frames! The application may be doing too much work on its main thread.
07-24 07:27:51.496: I/Choreographer(554): Skipped 96 frames! The application may be doing too much work on its main thread.
07-24 07:27:51.516: I/Choreographer(382): Skipped 35 frames! The application may be doing too much work on its main thread.
07-24 07:27:51.946: I/Choreographer(382): Skipped 119 frames! The application may be doing too much work on its main thread.
07-24 07:27:52.406: D/dalvikvm(554): GC_FOR_ALLOC freed 445K, 16% free 5555K/6564K, paused 65ms, total 70ms
07-24 07:27:52.836: I/Choreographer(382): Skipped 38 frames! The application may be doing too much work on its main thread.
07-24 07:27:53.096: I/Choreographer(382): Skipped 41 frames! The application may be doing too much work on its main thread.
07-24 07:27:53.196: I/ActivityManager(382): Killing 860:com.android.music/u0a35 (adj 15): empty #17
07-24 07:27:53.466: I/Choreographer(382): Skipped 33 frames! The application may be doing too much work on its main thread.
07-24 07:27:53.486: W/MediaFocusControl(382): RemoteControlClient died
07-24 07:28:03.166: W/ActivityManager(382): Activity destroy timeout for ActivityRecord{b40820e0 u0 example.atlcitylimo/.Main t2 f}
07-24 07:28:03.216: W/ActivityManager(382): Activity destroy timeout for ActivityRecord{b3fc3d40 u0 example.atlcitylimo/.Home t2 f}
07-24 07:28:04.626: I/Process(1358): Sending signal. PID: 1358 SIG: 9
07-24 07:28:04.646: E/SoundPool(382): error loading /system/media/audio/ui/Effect_Tick.ogg
07-24 07:28:04.646: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
07-24 07:28:04.656: E/SoundPool(382): error loading /system/media/audio/ui/Effect_Tick.ogg
07-24 07:28:04.656: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
07-24 07:28:04.656: E/SoundPool(382): error loading /system/media/audio/ui/Effect_Tick.ogg
07-24 07:28:04.656: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
07-24 07:28:04.656: E/SoundPool(382): error loading /system/media/audio/ui/Effect_Tick.ogg
07-24 07:28:04.656: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
07-24 07:28:04.676: E/SoundPool(382): error loading /system/media/audio/ui/Effect_Tick.ogg
07-24 07:28:04.676: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
07-24 07:28:04.726: E/SoundPool(382): error loading /system/media/audio/ui/KeypressStandard.ogg
07-24 07:28:04.726: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
07-24 07:28:04.776: E/SoundPool(382): error loading /system/media/audio/ui/KeypressSpacebar.ogg
07-24 07:28:04.776: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
07-24 07:28:04.776: E/SoundPool(382): error loading /system/media/audio/ui/KeypressDelete.ogg
07-24 07:28:04.776: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
07-24 07:28:04.786: E/SoundPool(382): error loading /system/media/audio/ui/KeypressReturn.ogg
07-24 07:28:04.786: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
07-24 07:28:04.786: E/SoundPool(382): error loading /system/media/audio/ui/KeypressInvalid.ogg
07-24 07:28:04.786: W/AudioService(382): Soundpool could not load file: /system/media/audio/ui/KeypressInvalid.ogg
07-24 07:28:04.786: W/AudioService(382): onLoadSoundEffects(), Error -1 while loading samples
07-24 07:28:04.826: I/Choreographer(382): Skipped 52 frames! The application may be doing too much work on its main thread.
07-24 07:28:05.106: I/Choreographer(382): Skipped 31 frames! The application may be doing too much work on its main thread.
07-24 07:28:05.236: I/Choreographer(382): Skipped 30 frames! The application may be doing too much work on its main thread.
07-24 07:28:05.356: I/ActivityManager(382): Process example.atlcitylimo (pid 1358) has died.
07-24 07:28:05.436: I/WindowState(382): WIN DEATH: Window{b408a908 u0 example.atlcitylimo/example.atlcitylimo.Main}
07-24 07:28:05.526: I/WindowState(382): WIN DEATH: Window{b3fdbc30 u0 Toast}
I have even added API key in my MANIFEST file . I have imported Google play library files and almost everything done. But its not running .The project directly crash. I have installed Google play service too. what can be done? Can anyone please help? its an emergency.

<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
Add this line to your manifest.

I had similar problem of implementing the map inside a fragment. So i made a FrameLayout layout file and used com.google.android.gms.maps.MapView instead of Mapfragment.
You can have a look here
It works with support libraries as well

Your logcat says that it can't locate MapFragment
In your XML change change android:name to class
So your XML should look like this
<fragment
android:id="#+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.google.android.gms.maps.MapFragment" />

Related

ADB shell am start force close error

I want to run my android app from ADB So I run this command
adb -s emulator-5554 shell am start -W -S -n com.example.myproj/.MainActivity
My application starts in emulator but it force closed and the message unfortunately stopped working showed on emulator screen. I try both genymotion and eclipse emulator and got same error.But when I run it from eclipse directly it does not any force close problem.
I should mention that I use ubuntu 14.04 32bit.
Please help me and say what is my mistake and how I can fix it?
ok I use logcat as result I have very long log I just put last part which I can see from command line and seems to relevant to my app
D/gralloc ( 51): Registering a buffer in the process that created it.
This may cause memory ordering problems.
E/libEGL ( 51): called unimplemented OpenGL ES API
E/libEGL ( 51): called unimplemented OpenGL ES API
E/libEGL ( 51): called unimplemented OpenGL ES API
E/libEGL ( 51): called unimplemented OpenGL ES API
E/SurfaceFlinger( 51): glCheckFramebufferStatusOES error 1304732677
E/SurfaceFlinger( 51): got GL_FRAMEBUFFER_COMPLETE_OES error while taking screenshot
E/libEGL ( 51): called unimplemented OpenGL ES API
E/libEGL ( 51): called unimplemented OpenGL ES API
W/WindowManager( 361): Screenshot failure taking screenshot for (266x425) to layer 21005
D/AndroidRuntime( 1133): Shutting down VM
I/ActivityManager( 361): Start proc com.example.myproj for activity com.example.myproj/.MainActivity: pid=1144 uid=10051 gids={50051, 1028, 1015}
D/dalvikvm( 1133): GC_CONCURRENT freed 96K, 15% free 585K/684K, paused 22ms+12ms, total 59ms
D/dalvikvm( 1144): Not late-enabling CheckJNI (already on)
I/Choreographer( 531): Skipped 32 frames! The application may be doing too much work on its main thread.
I/Choreographer( 361): Skipped 33 frames! The application may be doing too much work on its main thread.
W/dalvikvm( 1144): VFY: register1 v4 holds uninitialized ref
W/dalvikvm( 1144): VFY: bad arg 0 (into Ljava/lang/Object;)
W/dalvikvm( 1144): VFY: rejecting call to Lacteve/symbolic/Util;.write (Ljava/lang/Object;I)V
W/dalvikvm( 1144): VFY: rejecting opcode 0x71 at 0x000a
W/dalvikvm( 1144): VFY: rejected Lcom/example/myproj/MainActivity$1;.<init> (Lcom/example/myproj/MainActivity;)V
W/dalvikvm( 1144): Verifier rejected class Lcom/example/myproj/MainActivity$1;
D/AndroidRuntime( 1144): Shutting down VM
W/dalvikvm( 1144): threadid=1: thread exiting with uncaught exception (group=0xb3ae0b90)
E/AndroidRuntime( 1144): FATAL EXCEPTION: main
E/AndroidRuntime( 1144): Process: com.example.myproj, PID: 1144
E/AndroidRuntime( 1144): java.lang.VerifyError: com/example/myproj/MainActivity$1
E/AndroidRuntime( 1144): at com.example.myproj.MainActivity.dol(MainActivity.java:24)
E/AndroidRuntime( 1144): at com.example.myproj.MainActivity.onCreate(MainActivity.java:17)
E/AndroidRuntime( 1144): at android.app.Activity.performCreate(Activity.java:5243)
E/AndroidRuntime( 1144): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime( 1144): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2140)
E/AndroidRuntime( 1144): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2226)
E/AndroidRuntime( 1144): at android.app.ActivityThread.access$700(ActivityThread.java:135)
E/AndroidRuntime( 1144): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)
E/AndroidRuntime( 1144): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 1144): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1144): at android.app.ActivityThread.main(ActivityThread.java:4998)
E/AndroidRuntime( 1144): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1144): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 1144): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
E/AndroidRuntime( 1144): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
E/AndroidRuntime( 1144): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 361): Force finishing activity com.example.myproj/.MainActivity
I/WindowManager( 361): Screenshot max retries 4 of Token{b40b44d0 ActivityRecord{b40181a0 u0 com.example.myproj/.MainActivity t7 f}} appWin=Window{b41a0fe8 u0 Starting com.example.myproj} drawState=4
W/WindowManager( 361): Screenshot failure taking screenshot for (800x1280) to layer 21010
W/ActivityManager( 361): Activity pause timeout for ActivityRecord{b40181a0 u0 com.example.myproj/.MainActivity t7 f}
I/Process ( 1144): Sending signal. PID: 1144 SIG: 9
I/ActivityManager( 361): Process com.example.myproj (pid 1144) has died.
E/SoundPool( 361): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/KeypressStandard.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/KeypressSpacebar.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/KeypressDelete.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/KeypressReturn.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/KeypressInvalid.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/KeypressInvalid.ogg
W/AudioService( 361): onLoadSoundEffects(), Error -1 while loading samples
I/Choreographer( 361): Skipped 40 frames! The application may be doing too much work on its main thread.
W/InputMethodManagerService( 361): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#b417b3a0 attribute=null, token = android.os.BinderProxy#b404fb70
D/AndroidRuntime( 1161):
D/AndroidRuntime( 1161): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 1161): CheckJNI is ON
D/dalvikvm( 1161): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 1161): Added shared lib libjavacore.so 0x0
D/dalvikvm( 1161): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 1161): Added shared lib libnativehelper.so 0x0
D/dalvikvm( 1161): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
D/dalvikvm( 1161): Note: class Landroid/app/ActivityManagerNative; has 179 unimplemented (abstract) methods
E/memtrack( 1161): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug( 1161): failed to load memtrack module: -2
D/AndroidRuntime( 1161): Calling main entry com.android.commands.am.Am
I/ActivityManager( 361): Force stopping com.example.myproj appid=10051 user=0: from pid 1161
I/ActivityManager( 361): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.example.myproj/.MainActivity} from pid 1161
D/gralloc ( 51): Registering a buffer in the process that created it. This may cause memory ordering problems.
E/libEGL ( 51): called unimplemented OpenGL ES API
E/libEGL ( 51): called unimplemented OpenGL ES API
E/libEGL ( 51): called unimplemented OpenGL ES API
E/libEGL ( 51): called unimplemented OpenGL ES API
E/SurfaceFlinger( 51): glCheckFramebufferStatusOES error 1304732677
E/SurfaceFlinger( 51): got GL_FRAMEBUFFER_COMPLETE_OES error while taking screenshot
E/libEGL ( 51): called unimplemented OpenGL ES API
E/libEGL ( 51): called unimplemented OpenGL ES API
W/WindowManager( 361): Screenshot failure taking screenshot for (266x425) to layer 21005
D/AndroidRuntime( 1161): Shutting down VM
D/dalvikvm( 1161): GC_CONCURRENT freed 96K, 15% free 589K/688K, paused 23ms+32ms, total 71ms
D/dalvikvm( 1172): Not late-enabling CheckJNI (already on)
I/ActivityManager( 361): Start proc com.example.myproj for activity com.example.myproj/.MainActivity: pid=1172 uid=10051 gids={50051, 1028, 1015}
I/Choreographer( 361): Skipped 39 frames! The application may be doing too much work on its main thread.
I/Choreographer( 361): Skipped 34 frames! The application may be doing too much work on its main thread.
W/dalvikvm( 1172): VFY: register1 v4 holds uninitialized ref
W/dalvikvm( 1172): VFY: bad arg 0 (into Ljava/lang/Object;)
W/dalvikvm( 1172): VFY: rejecting call to Lacteve/symbolic/Util;.write (Ljava/lang/Object;I)V
W/dalvikvm( 1172): VFY: rejecting opcode 0x71 at 0x000a
W/dalvikvm( 1172): VFY: rejected Lcom/example/myproj/MainActivity$1;.<init> (Lcom/example/myproj/MainActivity;)V
W/dalvikvm( 1172): Verifier rejected class Lcom/example/myproj/MainActivity$1;
D/AndroidRuntime( 1172): Shutting down VM
W/dalvikvm( 1172): threadid=1: thread exiting with uncaught exception (group=0xb3ae0b90)
E/AndroidRuntime( 1172): FATAL EXCEPTION: main
E/AndroidRuntime( 1172): Process: com.example.myproj, PID: 1172
E/AndroidRuntime( 1172): java.lang.VerifyError: com/example/myproj/MainActivity$1
E/AndroidRuntime( 1172): at com.example.myproj.MainActivity.dol(MainActivity.java:24)
E/AndroidRuntime( 1172): at com.example.myproj.MainActivity.onCreate(MainActivity.java:17)
E/AndroidRuntime( 1172): at android.app.Activity.performCreate(Activity.java:5243)
E/AndroidRuntime( 1172): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime( 1172): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2140)
E/AndroidRuntime( 1172): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2226)
E/AndroidRuntime( 1172): at android.app.ActivityThread.access$700(ActivityThread.java:135)
E/AndroidRuntime( 1172): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)
E/AndroidRuntime( 1172): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 1172): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1172): at android.app.ActivityThread.main(ActivityThread.java:4998)
E/AndroidRuntime( 1172): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1172): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 1172): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
E/AndroidRuntime( 1172): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
E/AndroidRuntime( 1172): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 361): Force finishing activity com.example.myproj/.MainActivity
I/WindowManager( 361): Screenshot max retries 4 of Token{b4186bf8 ActivityRecord{b4186a98 u0 com.example.myproj/.MainActivity t8 f}} appWin=Window{b417dc10 u0 Starting com.example.myproj} drawState=4
W/WindowManager( 361): Screenshot failure taking screenshot for (800x1280) to layer 21010
W/ActivityManager( 361): Activity pause timeout for ActivityRecord{b4186a98 u0 com.example.myproj/.MainActivity t8 f}
I/Process ( 1172): Sending signal. PID: 1172 SIG: 9
E/SoundPool( 361): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/KeypressStandard.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/KeypressSpacebar.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/KeypressDelete.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
I/dalvikvm( 361): Jit: resizing JitTable from 4096 to 8192
I/ActivityManager( 361): Process com.example.myproj (pid 1172) has died.
E/SoundPool( 361): error loading /system/media/audio/ui/KeypressReturn.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/KeypressInvalid.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/KeypressInvalid.ogg
W/AudioService( 361): onLoadSoundEffects(), Error -1 while loading samples
D/LightsService( 361): Excessive delay setting light: 444ms
D/LightsService( 361): Excessive delay setting light: 102ms
W/InputMethodManagerService( 361): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#b421b110 attribute=null, token = android.os.BinderProxy#b404fb70
D/dalvikvm( 361): GC_CONCURRENT freed 660K, 10% free 6734K/7468K, paused 7ms+17ms, total 344ms
D/AndroidRuntime( 1189):
D/AndroidRuntime( 1189): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 1189): CheckJNI is ON
D/dalvikvm( 1189): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 1189): Added shared lib libjavacore.so 0x0
D/dalvikvm( 1189): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 1189): Added shared lib libnativehelper.so 0x0
D/dalvikvm( 1189): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
D/dalvikvm( 1189): Note: class Landroid/app/ActivityManagerNative; has 179 unimplemented (abstract) methods
E/memtrack( 1189): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug( 1189): failed to load memtrack module: -2
D/AndroidRuntime( 1189): Calling main entry com.android.commands.am.Am
I/ActivityManager( 361): Force stopping com.example.myproj appid=10051 user=0: from pid 1189
I/ActivityManager( 361): START u0 {flg=0x10000000 cmp=com.example.myproj/.MainActivity} from pid 1189
D/gralloc ( 51): Registering a buffer in the process that created it. This may cause memory ordering problems.
E/libEGL ( 51): called unimplemented OpenGL ES API
E/libEGL ( 51): called unimplemented OpenGL ES API
E/libEGL ( 51): called unimplemented OpenGL ES API
E/libEGL ( 51): called unimplemented OpenGL ES API
E/SurfaceFlinger( 51): glCheckFramebufferStatusOES error 1304732677
E/SurfaceFlinger( 51): got GL_FRAMEBUFFER_COMPLETE_OES error while taking screenshot
E/libEGL ( 51): called unimplemented OpenGL ES API
E/libEGL ( 51): called unimplemented OpenGL ES API
W/WindowManager( 361): Screenshot failure taking screenshot for (266x425) to layer 21005
I/ActivityManager( 361): Start proc com.example.myproj for activity com.example.myproj/.MainActivity: pid=1200 uid=10051 gids={50051, 1028, 1015}
D/dalvikvm( 1200): Not late-enabling CheckJNI (already on)
I/Choreographer( 361): Skipped 37 frames! The application may be doing too much work on its main thread.
I/Choreographer( 361): Skipped 33 frames! The application may be doing too much work on its main thread.
I/Choreographer( 531): Skipped 84 frames! The application may be doing too much work on its main thread.
W/dalvikvm( 1200): VFY: register1 v4 holds uninitialized ref
W/dalvikvm( 1200): VFY: bad arg 0 (into Ljava/lang/Object;)
W/dalvikvm( 1200): VFY: rejecting call to Lacteve/symbolic/Util;.write (Ljava/lang/Object;I)V
W/dalvikvm( 1200): VFY: rejecting opcode 0x71 at 0x000a
W/dalvikvm( 1200): VFY: rejected Lcom/example/myproj/MainActivity$1;.<init> (Lcom/example/myproj/MainActivity;)V
W/dalvikvm( 1200): Verifier rejected class Lcom/example/myproj/MainActivity$1;
D/AndroidRuntime( 1200): Shutting down VM
W/dalvikvm( 1200): threadid=1: thread exiting with uncaught exception (group=0xb3ae0b90)
E/AndroidRuntime( 1200): FATAL EXCEPTION: main
E/AndroidRuntime( 1200): Process: com.example.myproj, PID: 1200
E/AndroidRuntime( 1200): java.lang.VerifyError: com/example/myproj/MainActivity$1
E/AndroidRuntime( 1200): at com.example.myproj.MainActivity.dol(MainActivity.java:24)
E/AndroidRuntime( 1200): at com.example.myproj.MainActivity.onCreate(MainActivity.java:17)
E/AndroidRuntime( 1200): at android.app.Activity.performCreate(Activity.java:5243)
E/AndroidRuntime( 1200): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime( 1200): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2140)
E/AndroidRuntime( 1200): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2226)
E/AndroidRuntime( 1200): at android.app.ActivityThread.access$700(ActivityThread.java:135)
E/AndroidRuntime( 1200): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)
E/AndroidRuntime( 1200): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 1200): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1200): at android.app.ActivityThread.main(ActivityThread.java:4998)
E/AndroidRuntime( 1200): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1200): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 1200): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
E/AndroidRuntime( 1200): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
E/AndroidRuntime( 1200): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 361): Force finishing activity com.example.myproj/.MainActivity
I/WindowManager( 361): Screenshot max retries 4 of Token{b4083168 ActivityRecord{b3ffc9c8 u0 com.example.myproj/.MainActivity t9 f}} appWin=Window{b401a348 u0 Starting com.example.myproj} drawState=4
W/WindowManager( 361): Screenshot failure taking screenshot for (800x1280) to layer 21010
W/ActivityManager( 361): Activity pause timeout for ActivityRecord{b3ffc9c8 u0 com.example.myproj/.MainActivity t9 f}
I/Choreographer( 361): Skipped 31 frames! The application may be doing too much work on its main thread.
E/WindowManager( 361): Starting window AppWindowToken{b41c65a8 token=Token{b4083168 ActivityRecord{b3ffc9c8 u0 com.example.myproj/.MainActivity t9}}} timed out
W/ActivityManager( 361): Activity destroy timeout for ActivityRecord{b3ffc9c8 u0 com.example.myproj/.MainActivity t9 f}
D/dalvikvm( 531): GC_CONCURRENT freed 894K, 16% free 5380K/6392K, paused 78ms+17ms, total 167ms
D/dalvikvm( 515): GC_CONCURRENT freed 322K, 12% free 3340K/3780K, paused 6ms+7ms, total 64ms
I/Process ( 1200): Sending signal. PID: 1200 SIG: 9
W/InputMethodManagerService( 361): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#b404f558 attribute=null, token = android.os.BinderProxy#b404fb70
I/ActivityManager( 361): Process com.example.myproj (pid 1200) has died.
D/ConnectivityService( 361): Sampling interval elapsed, updating statistics ..
D/ConnectivityService( 361): Done.
D/ConnectivityService( 361): Setting timer for 720seconds
D/dalvikvm( 515): GC_CONCURRENT freed 436K, 14% free 3290K/3792K, paused 4ms+5ms, total 41ms
D/AndroidRuntime( 1240):
D/AndroidRuntime( 1240): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 1240): CheckJNI is ON
D/dalvikvm( 1240): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 1240): Added shared lib libjavacore.so 0x0
D/dalvikvm( 1240): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 1240): Added shared lib libnativehelper.so 0x0
D/dalvikvm( 1240): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
D/dalvikvm( 1240): Note: class Landroid/app/ActivityManagerNative; has 179 unimplemented (abstract) methods
E/memtrack( 1240): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug( 1240): failed to load memtrack module: -2
D/AndroidRuntime( 1240): Calling main entry com.android.commands.am.Am
I/ActivityManager( 361): Force stopping com.example.myproj appid=10051 user=0: from pid 1240
I/ActivityManager( 361): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=logcat cmp=com.example.myproj/.MainActivity} from pid 1240
D/gralloc ( 51): Registering a buffer in the process that created it. This may cause memory ordering problems.
E/libEGL ( 51): called unimplemented OpenGL ES API
E/libEGL ( 51): called unimplemented OpenGL ES API
E/libEGL ( 51): called unimplemented OpenGL ES API
E/libEGL ( 51): called unimplemented OpenGL ES API
E/SurfaceFlinger( 51): glCheckFramebufferStatusOES error 1304732677
E/SurfaceFlinger( 51): got GL_FRAMEBUFFER_COMPLETE_OES error while taking screenshot
E/libEGL ( 51): called unimplemented OpenGL ES API
E/libEGL ( 51): called unimplemented OpenGL ES API
W/WindowManager( 361): Screenshot failure taking screenshot for (266x425) to layer 21005
I/ActivityManager( 361): Start proc com.example.myproj for activity com.example.myproj/.MainActivity: pid=1251 uid=10051 gids={50051, 1028, 1015}
D/dalvikvm( 1251): Not late-enabling CheckJNI (already on)
I/Choreographer( 361): Skipped 44 frames! The application may be doing too much work on its main thread.
W/dalvikvm( 1251): VFY: register1 v4 holds uninitialized ref
W/dalvikvm( 1251): VFY: bad arg 0 (into Ljava/lang/Object;)
W/dalvikvm( 1251): VFY: rejecting call to Lacteve/symbolic/Util;.write (Ljava/lang/Object;I)V
W/dalvikvm( 1251): VFY: rejecting opcode 0x71 at 0x000a
W/dalvikvm( 1251): VFY: rejected Lcom/example/myproj/MainActivity$1;.<init> (Lcom/example/myproj/MainActivity;)V
W/dalvikvm( 1251): Verifier rejected class Lcom/example/myproj/MainActivity$1;
D/AndroidRuntime( 1251): Shutting down VM
W/dalvikvm( 1251): threadid=1: thread exiting with uncaught exception (group=0xb3ae0b90)
E/AndroidRuntime( 1251): FATAL EXCEPTION: main
E/AndroidRuntime( 1251): Process: com.example.myproj, PID: 1251
E/AndroidRuntime( 1251): java.lang.VerifyError: com/example/myproj/MainActivity$1
E/AndroidRuntime( 1251): at com.example.myproj.MainActivity.dol(MainActivity.java:24)
E/AndroidRuntime( 1251): at com.example.myproj.MainActivity.onCreate(MainActivity.java:17)
E/AndroidRuntime( 1251): at android.app.Activity.performCreate(Activity.java:5243)
E/AndroidRuntime( 1251): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime( 1251): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2140)
E/AndroidRuntime( 1251): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2226)
E/AndroidRuntime( 1251): at android.app.ActivityThread.access$700(ActivityThread.java:135)
E/AndroidRuntime( 1251): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)
E/AndroidRuntime( 1251): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 1251): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1251): at android.app.ActivityThread.main(ActivityThread.java:4998)
E/AndroidRuntime( 1251): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1251): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 1251): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
E/AndroidRuntime( 1251): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
E/AndroidRuntime( 1251): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 361): Force finishing activity com.example.myproj/.MainActivity
I/WindowManager( 361): Screenshot max retries 4 of Token{b41deb30 ActivityRecord{b4232990 u0 com.example.myproj/.MainActivity t10 f}} appWin=Window{b423e4b0 u0 Starting com.example.myproj} drawState=4
W/WindowManager( 361): Screenshot failure taking screenshot for (800x1280) to layer 21010
D/dalvikvm( 361): GC_CONCURRENT freed 1117K, 16% free 6529K/7720K, paused 16ms+34ms, total 347ms
W/ActivityManager( 361): Activity pause timeout for ActivityRecord{b4232990 u0 com.example.myproj/.MainActivity t10 f}
I/Choreographer( 531): Skipped 46 frames! The application may be doing too much work on its main thread.
D/LightsService( 361): Excessive delay setting light: 82ms
D/LightsService( 361): Excessive delay setting light: 426ms
I/Choreographer( 361): Skipped 37 frames! The application may be doing too much work on its main thread.
D/LightsService( 361): Excessive delay setting light: 1681ms
E/SoundPool( 361): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/Effect_Tick.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/KeypressStandard.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/KeypressSpacebar.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/KeypressDelete.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/KeypressReturn.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
E/SoundPool( 361): error loading /system/media/audio/ui/KeypressInvalid.ogg
W/AudioService( 361): Soundpool could not load file: /system/media/audio/ui/KeypressInvalid.ogg
W/AudioService( 361): onLoadSoundEffects(), Error -1 while loading samples
I/Process ( 1251): Sending signal. PID: 1251 SIG: 9
D/LightsService( 361): Excessive delay setting light: 320ms
D/LightsService( 361): Excessive delay setting light: 190ms
D/LightsService( 361): Excessive delay setting light: 73ms
I/ActivityManager( 361): Process com.example.myproj (pid 1251) has died.
W/InputMethodManagerService( 361): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#b3f8b170 attribute=null, token = android.os.BinderProxy#b404fb70
E/WindowManager( 361): Starting window AppWindowToken{b4233820 token=Token{b41deb30 ActivityRecord{b4232990 u0 com.example.myproj/.MainActivity t10}}} timed out
I/ActivityManager( 361): Killing 564:com.android.printspooler/u0a38 (adj 15): empty for 1807s
I/ProcessStatsService( 361): Prepared write state in 25ms
I/ProcessStatsService( 361): Prepared write state in 16ms

unfortunately dialog has stopped

I used dialog theme in my code but emulator is showing message that Unfortunately dialog has stopped.
Also my AVD Emulator details are as follows:
Nexus 7
API 19
skin: HVGA
Here is my manifest.xml file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.dialog"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="19" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="#string/app_name"
android:theme="#android:style/Theme.Dialog">
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>`
Here is my main.java file
package com.example.dialog;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends ActionBarActivity {
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
#Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
#Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}`
Here is my log when I launched my app
01-24 12:56:23.232: I/ActivityManager(383): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.dialog/.MainActivity} from pid 546
01-24 12:56:23.322: E/gralloc_goldfish(55): gralloc_alloc: Mismatched usage flags: 164 x 246, usage 333
01-24 12:56:23.322: W/GraphicBufferAllocator(55): alloc(164, 246, 1, 00000333, ...) failed -22 (Invalid argument)
01-24 12:56:23.322: E/(55): GraphicBufferAlloc::createGraphicBuffer(w=164, h=246) failed (Invalid argument), handle=0x0
01-24 12:56:23.322: E/BufferQueue(383): [ScreenshotClient] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed
01-24 12:56:23.332: W/WindowManager(383): Screenshot failure taking screenshot for (164x246) to layer 21005
01-24 12:56:23.432: D/dalvikvm(383): GC_FOR_ALLOC freed 735K, 23% free 6131K/7904K, paused 74ms, total 84ms
01-24 12:56:23.452: E/SoundPool(383): error loading /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:23.452: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:23.452: E/SoundPool(383): error loading /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:23.452: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:23.462: E/SoundPool(383): error loading /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:23.462: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:23.462: E/SoundPool(383): error loading /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:23.472: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:23.472: E/SoundPool(383): error loading /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:23.472: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:23.472: E/SoundPool(383): error loading /system/media/audio/ui/KeypressStandard.ogg
01-24 12:56:23.472: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
01-24 12:56:23.472: E/SoundPool(383): error loading /system/media/audio/ui/KeypressSpacebar.ogg
01-24 12:56:23.472: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
01-24 12:56:23.472: E/SoundPool(383): error loading /system/media/audio/ui/KeypressDelete.ogg
01-24 12:56:23.472: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
01-24 12:56:23.472: E/SoundPool(383): error loading /system/media/audio/ui/KeypressReturn.ogg
01-24 12:56:23.472: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
01-24 12:56:23.482: E/SoundPool(383): error loading /system/media/audio/ui/KeypressInvalid.ogg
01-24 12:56:23.482: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/KeypressInvalid.ogg
01-24 12:56:23.482: W/AudioService(383): onLoadSoundEffects(), Error -1 while loading samples
01-24 12:56:23.642: I/ActivityManager(383): Start proc com.example.dialog for activity com.example.dialog/.MainActivity: pid=1298 uid=10053 gids={50053}
01-24 12:56:23.692: D/dalvikvm(1298): Not late-enabling CheckJNI (already on)
01-24 12:56:24.172: D/AndroidRuntime(1298): Shutting down VM
01-24 12:56:24.172: W/dalvikvm(1298): threadid=1: thread exiting with uncaught exception (group=0xb2a2bba8)
01-24 12:56:24.242: E/AndroidRuntime(1298): FATAL EXCEPTION: main
01-24 12:56:24.242: E/AndroidRuntime(1298): Process: com.example.dialog, PID: 1298
01-24 12:56:24.242: E/AndroidRuntime(1298): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.dialog/com.example.dialog.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
01-24 12:56:24.242: E/AndroidRuntime(1298): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
01-24 12:56:24.242: E/AndroidRuntime(1298): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
01-24 12:56:24.242: E/AndroidRuntime(1298): at android.app.ActivityThread.access$800(ActivityThread.java:135)
01-24 12:56:24.242: E/AndroidRuntime(1298): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
01-24 12:56:24.242: E/AndroidRuntime(1298): at android.os.Handler.dispatchMessage(Handler.java:102)
01-24 12:56:24.242: E/AndroidRuntime(1298): at android.os.Looper.loop(Looper.java:136)
01-24 12:56:24.242: E/AndroidRuntime(1298): at android.app.ActivityThread.main(ActivityThread.java:5017)
01-24 12:56:24.242: E/AndroidRuntime(1298): at java.lang.reflect.Method.invokeNative(Native Method)
01-24 12:56:24.242: E/AndroidRuntime(1298): at java.lang.reflect.Method.invoke(Method.java:515)
01-24 12:56:24.242: E/AndroidRuntime(1298): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
01-24 12:56:24.242: E/AndroidRuntime(1298): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
01-24 12:56:24.242: E/AndroidRuntime(1298): at dalvik.system.NativeStart.main(Native Method)
01-24 12:56:24.242: E/AndroidRuntime(1298): Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
01-24 12:56:24.242: E/AndroidRuntime(1298): at android.support.v7.app.ActionBarActivityDelegate.onCreate(ActionBarActivityDelegate.java:110)
01-24 12:56:24.242: E/AndroidRuntime(1298): at android.support.v7.app.ActionBarActivityDelegateICS.onCreate(ActionBarActivityDelegateICS.java:57)
01-24 12:56:24.242: E/AndroidRuntime(1298): at android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:99)
01-24 12:56:24.242: E/AndroidRuntime(1298): at com.example.dialog.MainActivity.onCreate(MainActivity.java:12)
01-24 12:56:24.242: E/AndroidRuntime(1298): at android.app.Activity.performCreate(Activity.java:5231)
01-24 12:56:24.242: E/AndroidRuntime(1298): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
01-24 12:56:24.242: E/AndroidRuntime(1298): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
01-24 12:56:24.242: E/AndroidRuntime(1298): ... 11 more
01-24 12:56:24.282: W/ActivityManager(383): Force finishing activity com.example.dialog/.MainActivity
01-24 12:56:24.322: W/InputMethodManagerService(383): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#b2f48420 attribute=null, token = android.os.BinderProxy#b2ff3050
01-24 12:56:24.852: W/ActivityManager(383): Activity pause timeout for ActivityRecord{b304dbc0 u0 com.example.dialog/.MainActivity t6 f}
01-24 12:56:29.172: I/Process(1298): Sending signal. PID: 1298 SIG: 9
01-24 12:56:29.182: I/ActivityManager(383): Process com.example.dialog (pid 1298) has died.
01-24 12:56:29.262: E/SoundPool(383): error loading /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:29.262: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:29.332: E/SoundPool(383): error loading /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:29.332: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:29.372: E/SoundPool(383): error loading /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:29.372: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:29.372: E/SoundPool(383): error loading /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:29.372: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:29.372: E/SoundPool(383): error loading /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:29.372: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
01-24 12:56:29.382: E/SoundPool(383): error loading /system/media/audio/ui/KeypressStandard.ogg
01-24 12:56:29.382: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
01-24 12:56:29.382: E/SoundPool(383): error loading /system/media/audio/ui/KeypressSpacebar.ogg
01-24 12:56:29.392: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
01-24 12:56:29.392: E/SoundPool(383): error loading /system/media/audio/ui/KeypressDelete.ogg
01-24 12:56:29.402: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
01-24 12:56:29.402: E/SoundPool(383): error loading /system/media/audio/ui/KeypressReturn.ogg
01-24 12:56:29.432: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
01-24 12:56:29.442: E/SoundPool(383): error loading /system/media/audio/ui/KeypressInvalid.ogg
01-24 12:56:29.442: W/AudioService(383): Soundpool could not load file: /system/media/audio/ui/KeypressInvalid.ogg
01-24 12:56:29.442: W/AudioService(383): onLoadSoundEffects(), Error -1 while loading samples
01-24 12:56:29.512: W/InputMethodManagerService(383): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#b2d153c8 attribute=null, token = android.os.BinderProxy#b2ff3050
This is my Styles.xml file
<resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
</resources>
You're inheriting ActionBarActivity which (as the log suggests) requires you to use the AppCompat theme.
Set your styles.xml to this:
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
</style>
Edit:
Also, in your manifest remove this:
android:theme="#android:style/Theme.Dialog">
Otherwise use a different activity class, e.g. Activity.

Fake-camera on emulator doesn't work Intellij Idea

I've got problem with camera app installed on emulator. Every time I want to launch camera I got such nasty thing. USing Intellij Idea (newest version) I'm creating new hardware with both cameras included, byt non of these works. I'm aware of errors printed below, but I don't have idea how to fix it (it hurts me especially while developing apps using capturing photos).
What I should do to make use for fake-camera and capture fake image produced in emulator for camera functionality?
11-25 13:31:12.527: E/CameraService(927): CameraService::connect X (pid 2426) rejected (invalid cameraId 0).
11-25 13:31:12.527: W/CameraBase(2426): An error occurred while connecting to camera: 0
11-25 13:31:12.527: E/CameraHolder(2426): fail to connect Camera
11-25 13:31:12.527: E/CameraHolder(2426): java.lang.RuntimeException: Fail to connect to camera service
11-25 13:31:12.527: E/CameraHolder(2426): at android.hardware.Camera.native_setup(Native Method)
11-25 13:31:12.527: E/CameraHolder(2426): at android.hardware.Camera.<init>(Camera.java:350)
11-25 13:31:12.527: E/CameraHolder(2426): at android.hardware.Camera.open(Camera.java:309)
11-25 13:31:12.527: E/CameraHolder(2426): at com.android.camera.CameraHolder.open(CameraHolder.java:131)
11-25 13:31:12.527: E/CameraHolder(2426): at com.android.camera.Util.openCamera(Util.java:267)
11-25 13:31:12.527: E/CameraHolder(2426): at com.android.camera.Camera$4.run(Camera.java:1100)
11-25 13:31:12.527: E/CameraHolder(2426): at java.lang.Thread.run(Thread.java:841)
11-25 13:31:12.527: W/dalvikvm(2426): threadid=11: thread exiting with uncaught exception (group=0xb1d37b20)
11-25 13:31:12.527: E/AndroidRuntime(2426): FATAL EXCEPTION: Thread-93
11-25 13:31:12.527: E/AndroidRuntime(2426): Process: com.android.camera, PID: 2426
11-25 13:31:12.527: E/AndroidRuntime(2426): java.lang.RuntimeException: openCamera failed
11-25 13:31:12.527: E/AndroidRuntime(2426): at com.android.camera.Util.openCamera(Util.java:272)
11-25 13:31:12.527: E/AndroidRuntime(2426): at com.android.camera.Camera$4.run(Camera.java:1100)
11-25 13:31:12.527: E/AndroidRuntime(2426): at java.lang.Thread.run(Thread.java:841)
11-25 13:31:12.527: E/AndroidRuntime(2426): Caused by: com.android.camera.CameraHardwareException: java.lang.RuntimeException: Fail to connect to camera service
11-25 13:31:12.527: E/AndroidRuntime(2426): at com.android.camera.CameraHolder.open(CameraHolder.java:135)
11-25 13:31:12.527: E/AndroidRuntime(2426): at com.android.camera.Util.openCamera(Util.java:267)
11-25 13:31:12.527: E/AndroidRuntime(2426): ... 2 more
11-25 13:31:12.527: E/AndroidRuntime(2426): Caused by: java.lang.RuntimeException: Fail to connect to camera service
11-25 13:31:12.527: E/AndroidRuntime(2426): at android.hardware.Camera.native_setup(Native Method)
11-25 13:31:12.527: E/AndroidRuntime(2426): at android.hardware.Camera.<init>(Camera.java:350)
11-25 13:31:12.527: E/AndroidRuntime(2426): at android.hardware.Camera.open(Camera.java:309)
11-25 13:31:12.527: E/AndroidRuntime(2426): at com.android.camera.CameraHolder.open(CameraHolder.java:131)
11-25 13:31:12.527: E/AndroidRuntime(2426): ... 3 more
11-25 13:31:12.557: W/ActivityManager(1261): Force finishing activity com.android.camera/.Camera
11-25 13:31:12.567: D/dalvikvm(2426): GC_FOR_ALLOC freed 212K, 8% free 3387K/3680K, paused 6ms, total 7ms
11-25 13:31:12.567: E/gralloc_goldfish(924): gralloc_alloc: Mismatched usage flags: 492 x 874, usage 333
11-25 13:31:12.567: W/GraphicBufferAllocator(924): alloc(492, 874, 1, 00000333, ...) failed -22 (Invalid argument)
11-25 13:31:12.567: E/(924): GraphicBufferAlloc::createGraphicBuffer(w=492, h=874) failed (Invalid argument), handle=0x0
11-25 13:31:12.567: E/BufferQueue(1261): [ScreenshotClient] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed
11-25 13:31:12.567: W/WindowManager(1261): Screenshot failure taking screenshot for (492x874) to layer 21010
11-25 13:31:12.607: D/dalvikvm(2426): GC_FOR_ALLOC freed 18K, 7% free 3570K/3836K, paused 2ms, total 2ms
11-25 13:31:12.607: I/dalvikvm-heap(2426): Grow heap (frag case) to 4.978MB for 1490412-byte allocation
11-25 13:31:12.637: D/dalvikvm(2426): GC_FOR_ALLOC freed 2K, 6% free 5023K/5292K, paused 17ms, total 17ms
11-25 13:31:12.667: D/dalvikvm(2426): GC_FOR_ALLOC freed 14K, 5% free 5444K/5692K, paused 3ms, total 3ms
11-25 13:31:12.677: D/dalvikvm(2426): GC_FOR_ALLOC freed 9K, 5% free 5768K/6012K, paused 4ms, total 5ms
11-25 13:31:12.687: D/dalvikvm(2426): GC_FOR_ALLOC freed 3K, 4% free 6446K/6688K, paused 4ms, total 4ms
11-25 13:31:13.087: W/ActivityManager(1261): Activity pause timeout for ActivityRecord{b27fac48 u0 com.android.camera/.Camera t7 f}
11-25 13:31:13.127: W/EGL_emulation(1415): eglSurfaceAttrib not implemented
11-25 13:31:22.217: E/WindowManager(1261): Starting window AppWindowToken{b27ff320 token=Token{b27fada8 ActivityRecord{b27fac48 u0 com.android.camera/.Camera t7}}} timed out
11-25 13:31:23.197: W/ActivityManager(1261): Activity destroy timeout for ActivityRecord{b27fac48 u0 com.android.camera/.Camera t7 f}
11-25 13:31:41.508: I/Process(2426): Sending signal. PID: 2426 SIG: 9
11-25 13:31:41.508: I/ActivityManager(1261): Process com.android.camera (pid 2426) has died.
11-25 13:31:41.528: E/SoundPool(1261): error loading /system/media/audio/ui/Effect_Tick.ogg
11-25 13:31:41.528: W/AudioService(1261): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
11-25 13:31:41.528: E/SoundPool(1261): error loading /system/media/audio/ui/Effect_Tick.ogg
11-25 13:31:41.528: W/AudioService(1261): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
11-25 13:31:41.528: E/SoundPool(1261): error loading /system/media/audio/ui/Effect_Tick.ogg
11-25 13:31:41.528: W/AudioService(1261): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
11-25 13:31:41.528: E/SoundPool(1261): error loading /system/media/audio/ui/Effect_Tick.ogg
11-25 13:31:41.528: W/AudioService(1261): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
11-25 13:31:41.528: E/SoundPool(1261): error loading /system/media/audio/ui/Effect_Tick.ogg
11-25 13:31:41.528: W/AudioService(1261): Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg
11-25 13:31:41.528: E/SoundPool(1261): error loading /system/media/audio/ui/KeypressStandard.ogg
11-25 13:31:41.528: W/AudioService(1261): Soundpool could not load file: /system/media/audio/ui/KeypressStandard.ogg
11-25 13:31:41.528: E/SoundPool(1261): error loading /system/media/audio/ui/KeypressSpacebar.ogg
11-25 13:31:41.528: W/AudioService(1261): Soundpool could not load file: /system/media/audio/ui/KeypressSpacebar.ogg
11-25 13:31:41.528: E/SoundPool(1261): error loading /system/media/audio/ui/KeypressDelete.ogg
11-25 13:31:41.528: W/AudioService(1261): Soundpool could not load file: /system/media/audio/ui/KeypressDelete.ogg
11-25 13:31:41.528: E/SoundPool(1261): error loading /system/media/audio/ui/KeypressReturn.ogg
11-25 13:31:41.528: W/AudioService(1261): Soundpool could not load file: /system/media/audio/ui/KeypressReturn.ogg
11-25 13:31:41.528: E/SoundPool(1261): error loading /system/media/audio/ui/KeypressInvalid.ogg
11-25 13:31:41.528: W/AudioService(1261): Soundpool could not load file: /system/media/audio/ui/KeypressInvalid.ogg
11-25 13:31:41.528: W/AudioService(1261): onLoadSoundEffects(), Error -1 while loading samples
11-25 13:31:41.528: W/InputMethodManagerService(1261): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#b2882de8 attribute=null, token = android.os.BinderProxy#b23d9688
11-25 13:34:01.090: D/dalvikvm(1261): GC_FOR_ALLOC freed 1204K, 11% free 10400K/11684K, paused 15ms, total 16ms
11-25 13:38:44.164: D/dalvikvm(1400): GC_FOR_ALLOC freed 541K, 15% free 3672K/4284K, paused 10ms, total 21ms

app crashes on android 4.3 [duplicate]

This question already has answers here:
What is a stack trace, and how can I use it to debug my application errors?
(7 answers)
Closed 8 years ago.
I got an issue with an android app I'm trying to develop. When I test it in an emulator with android 4.4.2 (the target sdk version), everything works fine. But when I run the same code in an emulator with the same settings but android 4.3 instead, the app crashes almost immediately with the catlog error below.
Using the android lint in eclipse (right click on project, "Android tools" > "Run lint: check for common error"), I cannot find any code that doesn't correspond with the minSdkVersion (16).
Anyone got suggestions what's going wrong?
Catlog error:
07-24 12:54:14.592: D/AndroidRuntime(1012): Shutting down VM
07-24 12:54:14.592: W/dalvikvm(1012): threadid=1: thread exiting with uncaught exception (group=0x41465700)
07-24 12:54:14.631: E/AndroidRuntime(1012): FATAL EXCEPTION: main
07-24 12:54:14.631: E/AndroidRuntime(1012): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.protime360_basics/com.example.protime360_basics.MainActivity}: java.lang.NullPointerException
07-24 12:54:14.631: E/AndroidRuntime(1012): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
07-24 12:54:14.631: E/AndroidRuntime(1012): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
07-24 12:54:14.631: E/AndroidRuntime(1012): at android.app.ActivityThread.access$600(ActivityThread.java:141)
07-24 12:54:14.631: E/AndroidRuntime(1012): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
07-24 12:54:14.631: E/AndroidRuntime(1012): at android.os.Handler.dispatchMessage(Handler.java:99)
07-24 12:54:14.631: E/AndroidRuntime(1012): at android.os.Looper.loop(Looper.java:137)
07-24 12:54:14.631: E/AndroidRuntime(1012): at android.app.ActivityThread.main(ActivityThread.java:5103)
07-24 12:54:14.631: E/AndroidRuntime(1012): at java.lang.reflect.Method.invokeNative(Native Method)
07-24 12:54:14.631: E/AndroidRuntime(1012): at java.lang.reflect.Method.invoke(Method.java:525)
07-24 12:54:14.631: E/AndroidRuntime(1012): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
07-24 12:54:14.631: E/AndroidRuntime(1012): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-24 12:54:14.631: E/AndroidRuntime(1012): at dalvik.system.NativeStart.main(Native Method)
07-24 12:54:14.631: E/AndroidRuntime(1012): Caused by: java.lang.NullPointerException
07-24 12:54:14.631: E/AndroidRuntime(1012): at com.example.protime360_basics.MainActivity.loginPopup(MainActivity.java:167)
07-24 12:54:14.631: E/AndroidRuntime(1012): at com.example.protime360_basics.MainActivity.onCreate(MainActivity.java:61)
07-24 12:54:14.631: E/AndroidRuntime(1012): at android.app.Activity.performCreate(Activity.java:5133)
07-24 12:54:14.631: E/AndroidRuntime(1012): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
07-24 12:54:14.631: E/AndroidRuntime(1012): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
07-24 12:54:14.631: E/AndroidRuntime(1012): ... 11 more
I found the problem thanks to #codeMagic and #Chris Stratton. Line 167 in my code was
if(!username.equals(null)){
I changed that to
if(username != null && !username.isEmpty()){
=> Problem solved!

Google map API v2. android

I'm trying to develop an android app where it shows my current location on google map , but I'm having difficulties on showing the map on emulator. I've been working with this since yesterday and I tried looking for solution by browsing similar thread but I can't figure out what's wrong with my code.
here is my logcat:
07-24 03:35:27.041: I/dalvikvm(1268): Could not find method
android.app.AlertDialog$Builder.<init>, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.a
07-24 03:35:27.041: W/dalvikvm(1268): VFY: unable to resolve direct method 145: Landroid/app/AlertDialog$Builder;.<init> (Landroid/content/Context;I)V
07-24 03:35:27.041: D/dalvikvm(1268): VFY: replacing opcode 0x70 at 0x002c
07-24 03:35:27.051: I/dalvikvm(1268): Could not find method android.app.Activity.getFragmentManager, referenced from method com.google.android.gms.common.GooglePlayServicesUtil.b
07-24 03:35:27.051: W/dalvikvm(1268): VFY: unable to resolve virtual method 94: Landroid/app/Activity;.getFragmentManager ()Landroid/app/FragmentManager;
07-24 03:35:27.051: D/dalvikvm(1268): VFY: replacing opcode 0x6e at 0x0023
07-24 03:35:27.051: D/dalvikvm(1268): VFY: dead code 0x0026-0030 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.b (ILandroid/app/Activity;Landroid/support/v4/app/Fragment;ILandroid/content/DialogInterface$OnCancelListener;)Z
07-24 03:35:27.061: D/dalvikvm(1268): DexOpt: couldn't find field Landroid/content/res/Configuration;.smallestScreenWidthDp
07-24 03:35:27.061: W/dalvikvm(1268): VFY: unable to resolve instance field 60
07-24 03:35:27.061: D/dalvikvm(1268): VFY: replacing opcode 0x52 at 0x0012
07-24 03:35:27.061: D/dalvikvm(1268): VFY: dead code 0x0014-0018 in Lcom/google/android/gms/common/GooglePlayServicesUtil;.b (Landroid/content/res/Resources;)Z
07-24 03:35:27.081: D/AndroidRuntime(1268): Shutting down VM
07-24 03:35:27.081: W/dalvikvm(1268): threadid=1: thread exiting with uncaught exception (group=0xb5f054f0)
07-24 03:35:27.091: E/AndroidRuntime(1268): FATAL EXCEPTION: main
07-24 03:35:27.091: E/AndroidRuntime(1268): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.googlemapdemo/com.example.googlemapdemo.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class fragment
07-24 03:35:27.091: E/AndroidRuntime(1268): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
07-24 03:35:27.091: E/AndroidRuntime(1268): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
07-24 03:35:27.091: E/AndroidRuntime(1268): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
07-24 03:35:27.091: E/AndroidRuntime(1268): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
07-24 03:35:27.091: E/AndroidRuntime(1268): at android.os.Handler.dispatchMessage(Handler.java:99)
07-24 03:35:27.091: E/AndroidRuntime(1268): at android.os.Looper.loop(Looper.java:130)
07-24 03:35:27.091: E/AndroidRuntime(1268): at android.app.ActivityThread.main(ActivityThread.java:3683)
07-24 03:35:27.091: E/AndroidRuntime(1268): at java.lang.reflect.Method.invokeNative(Native Method)
07-24 03:35:27.091: E/AndroidRuntime(1268): at java.lang.reflect.Method.invoke(Method.java:507)
07-24 03:35:27.091: E/AndroidRuntime(1268): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
07-24 03:35:27.091: E/AndroidRuntime(1268): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
07-24 03:35:27.091: E/AndroidRuntime(1268): at dalvik.system.NativeStart.main(Native Method)
07-24 03:35:27.091: E/AndroidRuntime(1268): Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class fragment
07-24 03:35:27.091: E/AndroidRuntime(1268): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:587)
07-24 03:35:27.091: E/AndroidRuntime(1268): at android.view.LayoutInflater.inflate(LayoutInflater.java:386)
07-24 03:35:27.091: E/AndroidRuntime(1268): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
07-24 03:35:27.091: E/AndroidRuntime(1268): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
07-24 03:35:27.091: E/AndroidRuntime(1268): at android.support.v7.app.ActionBarActivityDelegateBase.setContentView(ActionBarActivityDelegateBase.java:128)
07-24 03:35:27.091: E/AndroidRuntime(1268): at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:77)
07-24 03:35:27.091: E/AndroidRuntime(1268): at com.example.googlemapdemo.MainActivity.onCreate(MainActivity.java:17)
07-24 03:35:27.091: E/AndroidRuntime(1268): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-24 03:35:27.091: E/AndroidRuntime(1268): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
07-24 03:35:27.091: E/AndroidRuntime(1268): ... 11 more
07-24 03:35:27.091: E/AndroidRuntime(1268): Caused by: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 5077000 but found 0. You must have the following declaration within the <application> element: <meta-data android:name="com.google.android.gms.version" android:value="#integer/google_play_services_version" />
07-24 03:35:27.091: E/AndroidRuntime(1268): at com.google.android.gms.common.GooglePlayServicesUtil.x(Unknown Source)
07-24 03:35:27.091: E/AndroidRuntime(1268): at com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable(Unknown Source)
07-24 03:35:27.091: E/AndroidRuntime(1268): at com.google.android.gms.maps.internal.u.F(Unknown Source)
07-24 03:35:27.091: E/AndroidRuntime(1268): at com.google.android.gms.maps.internal.u.E(Unknown Source)
07-24 03:35:27.091: E/AndroidRuntime(1268): at com.google.android.gms.maps.MapsInitializer.initialize(Unknown Source)
07-24 03:35:27.091: E/AndroidRuntime(1268): at com.google.android.gms.maps.SupportMapFragment$b.ju(Unknown Source)
07-24 03:35:27.091: E/AndroidRuntime(1268): at com.google.android.gms.maps.SupportMapFragment$b.a(Unknown Source)
07-24 03:35:27.091: E/AndroidRuntime(1268): at com.google.android.gms.dynamic.a.a(Unknown Source)
07-24 03:35:27.091: E/AndroidRuntime(1268): at com.google.android.gms.dynamic.a.onInflate(Unknown Source)
07-24 03:35:27.091: E/AndroidRuntime(1268): at com.google.android.gms.maps.SupportMapFragment.onInflate(Unknown Source)
07-24 03:35:27.091: E/AndroidRuntime(1268): at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:291)
07-24 03:35:27.091: E/AndroidRuntime(1268): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
07-24 03:35:27.091: E/AndroidRuntime(1268): ... 19 more
here is my
activity_main.xml
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
GoogleMapDemo.manifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.googlemapdemo"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="20" />
<permission
android:name="com.example.mapdemo.permission.MAPS_RECEIVE"
android:protectionLevel="signature" />
<uses-permission android:name="com.example.mapdemo.permission.MAPS_RECEIVE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".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>
<meta-data
android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyAMQ0-kK-KaFM_SeGjn7Nv22WvETNRmRZc"
/>
</application>
</manifest>
Use google api 19 version emulator while creating the AVD in your Eclipse IDE.
Maps is available in google api emulator only. If the problem persist again, update the SDK of your emulator to latest build and try again.
Yes., you can get map in emulator too. To achieve this follow this step by step process which I answered in another post
In your manifest :
meta-data
must be outside application block
and you have to add :
<meta-data android:name="com.google.android.gms.version> android:value="#integer/google_play_services_version"/>

Categories

Resources