我的问题是它不运行应用程序.
这是我的logcat:
10-17 14:43:12.574: E/Trace(684): error opening trace file: No such file or directory (2)
10-17 14:43:13.523: D/libEGL(684): Emulator without GPU support detected. Fallback to software renderer.
10-17 14:43:13.523: D/libEGL(684): loaded /system/lib/egl/libGLES_android.so
10-17 14:43:13.573: I/Choreographer(684): Skipped 44 frames! The application may be doing too much work on its main thread.
10-17 14:43:13.643: D/gralloc_goldfish(684): Emulator without GPU emulation detected.
10-17 14:43:13.653: W/dalvikvm(684): threadid=11: thread exiting with uncaught exception (group=0x40a13300)
10-17 14:43:13.653: E/AndroidRuntime(684): FATAL EXCEPTION: GLThread 78
10-17 …Run Code Online (Sandbox Code Playgroud) Possible Duplicate:
What is the Java ?: operator called and what does it do?
In some code a ? is used to perform a mathematical equation.
What is it and how do you use it? Is it possible to provide an example and the reason for the final answer of an equation?
int count = getChildCount();
int top = count > 0 ? getChildAt(0).getTop() : 0;
Run Code Online (Sandbox Code Playgroud) 页面加载后,我想将一个类添加到ID为的元素contact_page:
<a id="contact_page">Contact</a>
Run Code Online (Sandbox Code Playgroud)
这是我正在使用的JavaScript代码:
$(document).ready(function () {
$("contact_page").addClass('selected');
});
Run Code Online (Sandbox Code Playgroud)
它应该是添加类,但是当我运行它时,没有任何反应.
我做错了什么,我该如何解决?