How to connect the application from the monkey talk ide? I am trying to run the android application on monkey talk. I installed android sdk, monkey talk, eclipse, and trying to run the application as per the documentation. but I am failed to run the app, force close occurred every time in emulator . its showing some FATAL exception. please help to get rid of this ...
10-09 11:05:16.648: ERROR/AndroidRuntime(277): FATAL EXCEPTION: main
10-09 11:05:16.648: ERROR/AndroidRuntime(277): java.lang.ExceptionInInitializerError
10-09 11:05:16.648: ERROR/AndroidRuntime(277): at java.lang.Class.newInstanceImpl(Native Method)
10-09 11:05:16.648: ERROR/AndroidRuntime(277): at java.lang.Class.newInstance(Class.java:1429)
10-09 11:05:16.648: ERROR/AndroidRuntime(277): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
10-09 11:05:16.648: ERROR/AndroidRuntime(277): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
10-09 11:05:16.648: ERROR/AndroidRuntime(277): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
10-09 11:05:16.648: ERROR/AndroidRuntime(277): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
10-09 11:05:16.648: ERROR/AndroidRuntime(277): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
10-09 11:05:16.648: ERROR/AndroidRuntime(277): at android.os.Handler.dispatchMessage(Handler.java:99)
10-09 11:05:16.648: ERROR/AndroidRuntime(277): at android.os.Looper.loop(Looper.java:123)
10-09 11:05:16.648: ERROR/AndroidRuntime(277): at android.app.ActivityThread.main(ActivityThread.java:4627)
10-09 11:05:16.648: ERROR/AndroidRuntime(277): at java.lang.reflect.Method.invokeNative(Native Method)
10-09 11:05:16.648: ERROR/AndroidRuntime(277): at java.lang.reflect.Method.invoke(Method.java:521)
10-09 11:05:16.648: ERROR/AndroidRuntime(277): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
10-09 11:05:16.648: ERROR/AndroidRuntime(277): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
10-09 11:05:16.648: ERROR/AndroidRuntime(277): at dalvik.system.NativeStart.main(Native Method)
10-09 11:05:16.648: ERROR/AndroidRuntime(277): Caused by: java.lang.NoClassDefFoundError: org.aspectj.runtime.reflect.Factory
10-09 11:05:16.648: ERROR/AndroidRuntime(277): at com.mytest.Mymonkeytest1Activity.ajc$preClinit(Mymonkeytest1Activity.java:1)
10-09 11:05:16.648: ERROR/AndroidRuntime(277): at com.mytest.Mymonkeytest1Activity.(Mymonkeytest1Activity.java:1)
10-09 11:05:16.648: ERROR/AndroidRuntime(277): ... 15 more
10-09 11:05:16.708: WARN/ActivityManager(59): Force finishing activity com.mytest/.Mymonkeytest1Activity
10-09 11:05:17.288: WARN/ActivityManager(59): Activity pause timeout for HistoryRecord{44efd5f0 com.mytest/.Mymonkeytest1Activity}
Thanks in advance ....
Related
i'm getting this message when i run my application i don't know why i'm getting it could any one help me. here is the logcat.
java.lang.VerifyError: com.kosh.me.Smaller
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1429)
at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
at android.app.ActivityThread.access$2300(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:876)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
at dalvik.system.NativeStart.main(Native Method)
This happens when the build library classes conflict with those at run-time. Try performing a Clean of your project followed by a build.
I am working on Mapview.I am getting error but i have no idea why i can getting this.I debug all of the item .I didnt see it before.
Can anybody see this error?I now it is null exception but can anybody see PixelConverter?
ERROR/AndroidRuntime(1382): FATAL EXCEPTION: main
java.lang.NullPointerException
at com.google.android.maps.PixelConverter.toPixels(PixelConverter.java:71)
at com.google.android.maps.PixelConverter.toPixels(PixelConverter.java:61)
at com.google.android.maps.MapView.onLayout(MapView.java:681)
at android.view.View.layout(View.java:7035)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:909)
at android.view.View.layout(View.java:7035)
at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
at android.view.View.layout(View.java:7035)
at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
at android.view.View.layout(View.java:7035)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1045)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1727)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
15 reports
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.oas.fruitkungfufree/com.openfeint.internal.ui.IntroFlow}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
at android.app.ActivityThread.access$2300(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.openfeint.internal.Util.setOrientation(Util.java:36)
at com.openfeint.internal.ui.NestedWindow.onCreate(NestedWindow.java:32)
at com.openfeint.internal.ui.WebNav.onCreate(WebNav.java:93)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
Does any one have a solution for this??
This is a problem with your code, you can't use an object that is null. This is a hint.
I have been trying the "Form Stuff" example given in the android developer site. however, on the emulator I keep getting the message that the application has stopped working unexpectedly. I completely copied the code from the site, yet this seems to be happening. what am I doing wrong?
HelloFormStuff2.java:
package com.android.HelloLinearLayouts;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;
public class HelloFormStuff2 extends Activity {
/** Called when the activity is first created. */
#Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
final Button button = (Button) findViewById(R.id.button);
button.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// Perform action on clicks
Toast.makeText(HelloFormStuff2.this,
"Beep Bop",
Toast.LENGTH_SHORT).show();
}
});
}
}
the main.xml file:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<Button
android:id="#+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:background="#drawable/android_button" />
</LinearLayout>
android_button.xml:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="#drawable/android_pressed"
android:state_pressed="true" />
<item android:drawable="#drawable/android_focused"
android:state_focused="true" />
<item android:drawable="#drawable/android_normal" />
</selector>
what should i do?
log:
this is what is happening in the end:-
08-10 09:30:15.335: DEBUG/AndroidRuntime(265): Shutting down VM
08-10 09:30:15.335: DEBUG/jdwp(265): adbd disconnected
08-10 09:30:15.405: INFO/AndroidRuntime(265): NOTE: attach of thread 'Binder Thread #3' failed
08-10 09:30:15.865: INFO/ARMAssembler(58): generated scanline__00000077:03545404_00000004_00000000 [ 47 ipp] (67 ins) at [0x3462c8:0x3463d4] in 376387 ns
08-10 09:30:15.955: DEBUG/AndroidRuntime(277): Shutting down VM
08-10 09:30:15.955: WARN/dalvikvm(277): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): FATAL EXCEPTION: main
08-10 09:30:16.024: ERROR/AndroidRuntime(277): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.android.HelloLinearLayouts/com.android.HelloLinearLayouts.HelloFormStuff2Activity}: java.lang.ClassNotFoundException: com.android.HelloLinearLayouts.HelloFormStuff2Activity in loader dalvik.system.PathClassLoader[/data/app/com.android.HelloLinearLayouts-1.apk]
08-10 09:30:16.024: ERROR/AndroidRuntime(277): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): at android.os.Handler.dispatchMessage(Handler.java:99)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): at android.os.Looper.loop(Looper.java:123)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): at android.app.ActivityThread.main(ActivityThread.java:4627)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): at java.lang.reflect.Method.invokeNative(Native Method)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): at java.lang.reflect.Method.invoke(Method.java:521)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): at dalvik.system.NativeStart.main(Native Method)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): Caused by: java.lang.ClassNotFoundException: com.android.HelloLinearLayouts.HelloFormStuff2Activity in loader dalvik.system.PathClassLoader[/data/app/com.android.HelloLinearLayouts-1.apk]
08-10 09:30:16.024: ERROR/AndroidRuntime(277): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
08-10 09:30:16.024: ERROR/AndroidRuntime(277): ... 11 more
08-10 09:30:16.117: WARN/ActivityManager(58): Force finishing activity com.android.HelloLinearLayouts/.HelloFormStuff2Activity
08-10 09:30:16.355: INFO/ARMAssembler(58): generated scanline__00000077:03515104_00000000_00000000 [ 33 ipp] (47 ins) at [0x3266a0:0x32675c] in 338074 ns
08-10 09:30:16.655: WARN/ActivityManager(58): Activity pause timeout for HistoryRecord{44f9f440 com.android.HelloLinearLayouts/.HelloFormStuff2Activity}
08-10 09:30:27.147: WARN/ActivityManager(58): Activity destroy timeout for HistoryRecord{44f9f440 com.android.HelloLinearLayouts/.HelloFormStuff2Activity}
08-10 09:35:06.196: DEBUG/SntpClient(58): request time failed: java.net.SocketException: Address family not supported by protocol
08-10 09:35:16.209: INFO/Process(277): Sending signal. PID: 277 SIG: 9
08-10 09:35:16.235: INFO/ActivityManager(58): Process com.android.HelloLinearLayouts (pid 277) has died.
08-10 09:35:16.385: WARN/InputManagerService(58): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#450655e0
You could start off by looking at the LogCat view and determining what caused the app crash. If you still cannot figure it out, please post the logcat contents here.
I am getting this error in my application, and this happens only on UPC300-2.2 Viewsonic G-Tablet. All answers I've found so far (including this one) adviced on putting
<uses-permission android:name="android.permission.INTERNET"/>
to the manifest file, but it doesn't help.
Here is the complete stacktrace:
java.lang.NoClassDefFoundError: android.net.NetworkConnectivityListener
at
com.google.android.maps.MapActivity.onCreate(MapActivity.java:199)
at
myapp.Activity.ActivityMapSearch.onCreate(ActivityMapSearch.java:99)
at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
at
android.app.ActivityThread.access$2300(ActivityThread.java:125)
at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
at
android.os.Handler.dispatchMessage(Handler.java:99)
at
android.os.Looper.loop(Looper.java:123)
at
android.app.ActivityThread.main(ActivityThread.java:4627)
at
java.lang.reflect.Method.invokeNative(Native
Method) at
java.lang.reflect.Method.invoke(Method.java:521)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at
dalvik.system.NativeStart.main(Native
Method)
If that is TRUE, you can grab the source code of the class from the Android Source and add it yourself