I'm writing an Android App witch recieves udp videostreem and render it on display.
Before changing version of gstreamer from Congo to 1.4.0 the App stops with this:
09-03 15:38:20.630: D/GStreamer(12874): Surface destroyed
09-03 15:38:20.640: D/GStreamer+Piovra(12874): 0:04:04.929366696 0x521ecd20 jni/Piovra.c:907:gst_native_surface_finalize Releasing Native Window 0x522de008
09-03 15:38:21.020: D/GStreamer+Piovra(12874): 0:04:05.317334029 0x521ecd20 jni/Piovra.c:823:gst_native_finalize Quitting video main loop...
09-03 15:38:21.020: D/GStreamer+Piovra(12874): 0:04:05.317554696 0x521ecd20 jni/Piovra.c:827:gst_native_finalize Waiting for threads to finish...
09-03 15:38:21.020: D/GStreamer+Piovra(12874): 0:04:05.317907696 0x522ec220 jni/Piovra.c:368:video_app_function Exited main loop
09-03 15:38:21.030: D/dalvikvm(12874): threadid=13: thread exiting, not yet detached (count=0)
09-03 15:38:21.030: D/GStreamer+Piovra(12874): 0:04:05.322372363 0x522ec220 jni/Piovra.c:94:detach_current_thread Detaching thread 0x522ec220
09-03 15:38:21.030: D/GStreamer+Piovra(12874): 0:04:05.323297030 0x521ecd20 jni/Piovra.c:833:gst_native_finalize Deleting GlobalRef for app object at 0x1d200242
09-03 15:38:21.030: D/GStreamer+Piovra(12874): 0:04:05.323552030 0x521ecd20 jni/Piovra.c:835:gst_native_finalize Freeing CustomData at 0x522ec960
09-03 15:38:21.030: D/GStreamer+Piovra(12874): 0:04:05.323775030 0x521ecd20 jni/Piovra.c:838:gst_native_finalize Done finalizing
09-03 15:38:21.280: D/dalvikvm(12874): JIT unchain all for threadid=17
09-03 15:38:21.570: D/dalvikvm(12874): JIT unchain all for threadid=17
After changing of version of gstreamer from Congo to 1.4.0:
09-03 15:29:40.140: D/GStreamer+Piovra(12065): 0:06:52.864815716 0x51e21940 jni/Piovra.c:923:gst_native_pause Setting state to PAUSED
09-03 15:29:40.140: D/GStreamer+Piovra(12065): 0:06:52.864933383 0x51e21940 jni/Piovra.c:113:set_ui_message Setting message to: Setting state to PAUSED
09-03 15:29:40.150: D/GStreamer+Piovra(12065): 0:06:52.877019716 0x51f7cec0 jni/Piovra.c:113:set_ui_message Setting message to: State changed to PAUSED
09-03 15:29:40.150: E/GStreamer+Piovra(12065): 0:06:52.877265716 0x51f7cec0 jni/Piovra.c:117:set_ui_message Failed to call Java method
09-03 15:29:40.660: D/GStreamer+Piovra(12065): 0:06:53.384060383 0x51e21940 jni/Piovra.c:890:gst_native_finalize Quitting video main loop...
09-03 15:29:40.660: D/GStreamer+Piovra(12065): 0:06:53.385065716 0x51e21940 jni/Piovra.c:894:gst_native_finalize Waiting for threads to finish...
09-03 15:29:40.660: D/GStreamer+Piovra(12065): 0:06:53.385104050 0x51f7cec0 jni/Piovra.c:435:video_app_function Exited main loop
09-03 15:29:40.660: W/libEGL(12065): eglTerminate() called w/ 2 objects remaining
09-03 15:29:40.660: D/dalvikvm(12065): threadid=13: thread exiting, not yet detached (count=0)
09-03 15:29:40.660: D/GStreamer+Piovra(12065): 0:06:53.391390716 0x51f7cec0 jni/Piovra.c:94:detach_current_thread Detaching thread 0x51f7cec0
09-03 15:29:40.660: D/GStreamer+Piovra(12065): 0:06:53.392429716 0x51e21940 jni/Piovra.c:900:gst_native_finalize Deleting GlobalRef for app object at 0x1d20023e
09-03 15:29:40.660: D/GStreamer+Piovra(12065): 0:06:53.392723383 0x51e21940 jni/Piovra.c:902:gst_native_finalize Freeing CustomData at 0x51fa0ab8
09-03 15:29:40.660: D/GStreamer+Piovra(12065): 0:06:53.393165383 0x51e21940 jni/Piovra.c:905:gst_native_finalize Done finalizing
09-03 15:29:40.680: E/libEGL(12065): validate_display:253 error 3001 (EGL_NOT_INITIALIZED)
09-03 15:29:40.680: E/libEGL(12065): eglMakeCurrent:511 error 3008 (EGL_BAD_DISPLAY)
09-03 15:29:40.680: E/libEGL(12065): validate_display:253 error 3001 (EGL_NOT_INITIALIZED)
09-03 15:29:40.680: E/libEGL(12065): eglMakeCurrent:511 error 3008 (EGL_BAD_DISPLAY)
09-03 15:30:00.030: E/libEGL(12065): validate_display:253 error 3001 (EGL_NOT_INITIALIZED)
09-03 15:30:00.030: E/libEGL(12065): eglMakeCurrent:511 error 3008 (EGL_BAD_DISPLAY)
09-03 15:30:00.030: E/libEGL(12065): call to OpenGL ES API with no current context (logged once per thread)
09-03 15:30:00.030: E/libEGL(12065): validate_display:253 error 3001 (EGL_NOT_INITIALIZED)
09-03 15:30:00.030: E/libEGL(12065): eglMakeCurrent:511 error 3008 (EGL_BAD_DISPLAY)
09-03 15:30:00.030: W/ManagedEGLContext(12065): doTerminate failed: EGL count is 0 but managed count is 1
Any guesses about?
Related
Whenever I launch the app I just get a white screen and the react native packager doesn't even start loading in the terminal. I'm running on mac os and I'm running react-native 0.56.0. The project was working fine until I came back to it recently so I'm not sure whats happened. Here's my logcat filtered by Error:
09-03 23:59:04.492 1742-1757/system_process E/ActivityManager: Failure starting process com.anyone
java.lang.SecurityException: Package com.anyone is currently frozen!
at com.android.server.pm.PackageManagerService.checkPackageStartable(PackageManagerService.java:3611)
at com.android.server.am.ActivityManagerService.startProcessLocked(ActivityManagerService.java:3791)
at com.android.server.am.ActivityManagerService.startProcessLocked(ActivityManagerService.java:3751)
at com.android.server.am.ActivityManagerService.startProcessLocked(ActivityManagerService.java:3640)
at com.android.server.am.ActivityStackSupervisor.startSpecificActivityLocked(ActivityStackSupervisor.java:1582)
at com.android.server.am.ActivityStack.resumeTopActivityInnerLocked(ActivityStack.java:2663)
at com.android.server.am.ActivityStack.resumeTopActivityUncheckedLocked(ActivityStack.java:2215)
at com.android.server.am.ActivityStackSupervisor.resumeFocusedStackTopActivityLocked(ActivityStackSupervisor.java:2066)
at com.android.server.am.ActivityStackSupervisor.resumeFocusedStackTopActivityLocked(ActivityStackSupervisor.java:2056)
at com.android.server.am.ActivityManagerService.handleAppDiedLocked(ActivityManagerService.java:5270)
at com.android.server.am.ActivityManagerService.removeProcessLocked(ActivityManagerService.java:6645)
at com.android.server.am.ActivityManagerService.killPackageProcessesLocked(ActivityManagerService.java:6289)
at com.android.server.am.ActivityManagerService.forceStopPackageLocked(ActivityManagerService.java:6421)
at com.android.server.am.ActivityManagerService$MainHandler.handleMessage(ActivityManagerService.java:2079)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)
at com.android.server.ServiceThread.run(ServiceThread.java:46)
09-03 23:59:04.634 2685-
2884/com.google.android.googlequicksearchbox:search E/ActivityThread:
Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
09-03 23:59:04.636 1585-1818/? E/installd: Failed to delete /data/app/vmdl2093892881.tmp: No such file or directory
09-03 23:59:04.981 7831-7831/? E/com.facebook.internal.AttributionIdentifiers: getAttributionIdentifiers should not be called from the main thread
09-03 23:59:05.014 2685-7866/com.google.android.googlequicksearchbox:search E/ContentStoreEUAS: Failed to commit the deferred actions
09-03 23:59:05.016 1926-2099/com.android.systemui E/ResourcesManager: failed to add asset path /data/app/com.anyone-uMDPquOdtg6BxeTvfE5l_g==/base.apk
09-03 23:59:05.016 1926-2099/com.android.systemui E/ResourcesManager: failed to add asset path /data/app/com.anyone-uMDPquOdtg6BxeTvfE5l_g==/base.apk
09-03 23:59:05.016 1926-2099/com.android.systemui E/ResourcesManager: failed to add asset path /data/app/com.anyone-uMDPquOdtg6BxeTvfE5l_g==/base.apk
09-03 23:59:05.016 1926-2099/com.android.systemui E/ResourcesManager: failed to add asset path /data/app/com.anyone-uMDPquOdtg6BxeTvfE5l_g==/base.apk
09-03 23:59:05.017 1926-2099/com.android.systemui E/ResourcesManager: failed to add asset path /data/app/com.anyone-uMDPquOdtg6BxeTvfE5l_g==/base.apk
09-03 23:59:07.113 1742-2555/system_process E/memtrack: Couldn't load memtrack module
09-03 23:59:07.360 1742-2555/system_process E/memtrack: Couldn't load memtrack module
09-03 23:59:07.614 1742-2555/system_process E/memtrack: Couldn't load memtrack module
09-03 23:59:07.865 1742-2555/system_process E/memtrack: Couldn't load memtrack module
09-03 23:59:08.114 1742-2555/system_process E/memtrack: Couldn't load memtrack module
09-03 23:59:08.314 1742-1915/system_process E/TaskPersister: File error accessing recents directory (directory doesn't exist?).
Turned out to be an issue to do with the react-native-fbsdk node module, updating it to 0.8.0 seemed to work for me https://github.com/facebook/react-native/issues/20938
I'm using GameHelper to sign into google play services. Now this works perfectly fine on my tablet with my non-dev account, as well as other people's phones and their accounts (when set as a tester in the developer console) and run straight from eclipse.
However on my cellphone Galaxy S4 with my non-dev account it wont sign in; I get a dialog box show up saying "Failed to sign in. Please check your network connection and try again."
Now I've given the app permission to check network state and I'm running a check to see if it's connected to the internet before running the sign in code.
It tells me I'm connected...
I've validated my client id and SHA1 certificates, but this can't be the issue as it works on other devices.
Does anyone know what could be going on?
Below is the log output - sign-in error is SIGN_IN_REQUIRED.
09-03 19:13:48.811: D/GameHelper(14338): GameHelper: beginUserInitiatedSignIn: resetting attempt count.
09-03 19:13:48.821: D/GameHelper(14338): GameHelper: Starting USER-INITIATED sign-in flow.
09-03 19:13:48.821: D/GameHelper(14338): GameHelper: beginUserInitiatedSignIn: starting new sign-in flow.
09-03 19:13:48.821: D/GameHelper(14338): GameHelper: Starting connection.
09-03 19:13:48.931: D/GameHelper(14338): GameHelper: onConnectionFailed
09-03 19:13:48.931: D/GameHelper(14338): GameHelper: Connection failure:
09-03 19:13:48.931: D/GameHelper(14338): GameHelper: - code: SIGN_IN_REQUIRED(4)
09-03 19:13:48.931: D/GameHelper(14338): GameHelper: - resolvable: true
09-03 19:13:48.931: D/GameHelper(14338): GameHelper: - details: ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{42bda858: android.os.BinderProxy#42bda7f8}}
09-03 19:13:48.931: D/GameHelper(14338): GameHelper: onConnectionFailed: WILL resolve because user initiated sign-in.
09-03 19:13:48.931: D/GameHelper(14338): GameHelper: onConnectionFailed: resolving problem...
09-03 19:13:48.931: D/GameHelper(14338): GameHelper: resolveConnectionResult: trying to resolve result: ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{42bda858: android.os.BinderProxy#42bda7f8}}
09-03 19:13:48.931: D/GameHelper(14338): GameHelper: Result has resolution. Starting it.
09-03 19:13:48.961: I/AndroidGraphics(14338): paused
09-03 19:13:48.961: D/SensorManager(14338): unregisterListener ::
09-03 19:13:48.961: D/SensorManager(14338): unregisterListener ::
09-03 19:13:48.961: I/AndroidInput(14338): sensor listener tear down
09-03 19:13:49.572: D/GameHelper(14338): GameHelper: Notifying LISTENER of sign-in FAILURE (no error)
09-03 19:13:49.592: W/IInputConnectionWrapper(14338): showStatusIcon on inactive InputConnection
09-03 19:13:54.386: D/GameHelper(14338): GameHelper: onActivityResult: req=RC_RESOLVE, resp=SIGN_IN_FAILED
09-03 19:13:54.386: D/GameHelper(14338): GameHelper: onAR: responseCode=SIGN_IN_FAILED, so giving up.
09-03 19:13:54.386: W/GameHelper(14338): disconnect() called when client was already disconnected.
09-03 19:13:54.466: D/GameHelper(14338): GameHelper: Notifying LISTENER of sign-in FAILURE (error)
09-03 19:13:54.466: I/System.out(14338): GOOGLE: Sign in Failed:: SignInFailureReason(serviceErrorCode:SIGN_IN_REQUIRED(4),activityResultCode:SIGN_IN_FAILED)
09-03 19:13:54.466: I/SensorManagerA(14338): getReportingMode :: sensor.mType = 1
09-03 19:13:54.476: D/SensorManager(14338): registerListener :: 0, K330 3-axis Accelerometer, 20000, 0,
09-03 19:13:54.476: I/SensorManagerA(14338): getReportingMode :: sensor.mType = 2
09-03 19:13:54.476: D/SensorManager(14338): registerListener :: 1, YAS532 Magnetic Sensor, 20000, 0,
09-03 19:13:54.476: I/AndroidInput(14338): sensor listener setup
09-03 19:13:54.486: I/AndroidGraphics(14338): resumed
09-03 19:13:57.379: E/ViewRootImpl(14338): sendUserActionEvent() mView == null
09-03 19:13:59.922: I/DBG(14338): quit
I have problem in tesseract method. i use below code and my application directly stop.Below is my jni.cpp file.
struct native_data_t {
native_data_t() : image_obj(NULL), image_buffer(NULL) {}
tesseract::TessBaseAPI api;
jbyteArray image_obj;
jbyte* image_buffer;
int width, height, bpp;
char bBWFilter; // 0=disable, 1=enable
char bHorizontalDisplay;
};
native_data_t *nat = get_native_data(env, thiz);
if (nat->api.Init("/sdcard/","eng")) {
LOGE("could not initialize tesseract!");
res = JNI_FALSE;
}
can you help me?And what is datapath in this init method? thanks in advance.
my LogCat is as below.
09-03 11:52:53.186: VERBOSE/MLOG: AssetsManager.java:(2263): isAssetsInstalled(): Assets are already correctly installed
09-03 11:52:53.186: VERBOSE/MLOG: OCR.java:(2263): GetLanguage(): eng
09-03 11:52:53.206: VERBOSE/MLOG: OCR.java:(2263): setLanguage to eng
09-03 11:52:53.206: VERBOSE/MLOG: OCR.java:(2263): noLangs=1
09-03 11:52:53.206: VERBOSE/OcrLib(native)(2263): ocr_open
09-03 11:52:53.206: INFO/OcrLib(native)(2263): lang eng
09-03 11:52:53.246: ERROR/OcrLib(native)(2263): IN BASE CPP
09-03 11:52:53.246: ERROR/OcrLib(native)(2263): IN 2nd if BASE CPP
09-03 11:52:53.326: INFO/ActivityThread(2253): Publishing provider com.google.android.maps.SearchHistoryProvider: com.google.googlenav.provider.SearchHistoryProvider
09-03 11:52:54.076: INFO/ActivityManager(123): Start proc com.android.voicedialer for broadcast com.android.voicedialer/.VoiceDialerReceiver: pid=2274 uid=10016 gids={3002}
09-03 11:52:54.206: INFO/ActivityManager(123): Stopping service: com.android.vending/.util.WorkService
09-03 11:52:54.336: INFO/ActivityManager(123): Process com.temp.unique.ocr (pid 2263) has died.
09-03 11:52:54.366: DEBUG/Zygote(122): Process 2263 exited cleanly (1)
09-03 11:52:54.756: INFO/dalvikvm(2274): Debugger thread not active, ignoring DDM send (t=0x41504e4d l=38)
09-03 11:52:54.766: DEBUG/vending(261): [43] LocalAssetCache.updateOnePackage(): No local info for com.temp.unique.ocr
and my package is com.temp.unique.ocr. My application process is directly died.
There's already a JNI wrapper for Tesseract 2.04 named Tesjeract. You may want to look at its source code to see how they did it.
The datapath is the path to tessdata folder, which contains all the language data files.
There's also a JNA-based solution named Tess4J, if you're interested.
I'm trying to make an app for a website, basically just loads the website. I know how to make it and everything, and I've set up webviews, but I'm not sure what I'm doing wrong.
So basically my main class loads a menu, it has buttons for like home, forums, inbox, etc. That all works fine, but when I hit a button, that calls the webview, and that's when it crashes.
Here's my code for the webview:
public class OpenHome extends Activity{
WebView myWebView;
public boolean shouldOverrideUrlLoading(WebView view, String url) {
view.loadUrl(url);
return true;
}
#Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.webview);
WebView myWebView = (WebView) findViewById(R.id.WebView);
WebSettings webSettings = myWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
myWebView.setWebViewClient(new WebViewClient());
myWebView.loadUrl("http://www.se7ensins.com");
}
#Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
// Check if the key event was the BACK key and if there's history
if ((keyCode == KeyEvent.KEYCODE_BACK) && myWebView.canGoBack()) {
myWebView.goBack();
return true;
}
// If it wasn't the BACK key or there's no web page history, bubble up to the default
// system behavior (probably exit the activity)
return super.onKeyDown(keyCode, event);
}
I have all the imports and stuff, but when I run the webview and try to load the page, it just unexpectedly closes the app, also I enabled internet permissions in the android manifest.
Here's the Logcat:
09-03 06:08:03.287: DEBUG/AndroidRuntime(563): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
09-03 06:08:03.287: DEBUG/AndroidRuntime(563): CheckJNI is ON
09-03 06:08:04.177: DEBUG/AndroidRuntime(563): Calling main entry com.android.commands.pm.Pm
09-03 06:08:04.217: DEBUG/AndroidRuntime(563): Shutting down VM
09-03 06:08:04.237: DEBUG/dalvikvm(563): GC_CONCURRENT freed 100K, 84% free 339K/2048K, paused 0ms+0ms
09-03 06:08:04.237: INFO/AndroidRuntime(563): NOTE: attach of thread 'Binder Thread #3' failed
09-03 06:08:04.247: DEBUG/jdwp(563): Got wake-up signal, bailing out of select
09-03 06:08:04.247: DEBUG/dalvikvm(563): Debugger has detached; object registry had 1 entries
09-03 06:08:04.887: DEBUG/AndroidRuntime(573): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
09-03 06:08:04.887: DEBUG/AndroidRuntime(573): CheckJNI is ON
09-03 06:08:05.886: DEBUG/AndroidRuntime(573): Calling main entry com.android.commands.am.Am
09-03 06:08:05.936: INFO/ActivityManager(79): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.clepto.sinnergy/.SinnergyActivity } from pid 573
09-03 06:08:05.969: WARN/WindowManager(79): Failure taking screenshot for (230x143) to layer 21005
09-03 06:08:05.996: INFO/ActivityManager(79): Start proc com.clepto.sinnergy for activity com.clepto.sinnergy/.SinnergyActivity: pid=581 uid=10036 gids={3003}
09-03 06:08:06.057: DEBUG/AndroidRuntime(573): Shutting down VM
09-03 06:08:06.086: INFO/AndroidRuntime(573): NOTE: attach of thread 'Binder Thread #3' failed
09-03 06:08:06.186: DEBUG/dalvikvm(573): GC_CONCURRENT freed 101K, 83% free 364K/2048K, paused 1ms+1ms
09-03 06:08:06.186: DEBUG/jdwp(573): Got wake-up signal, bailing out of select
09-03 06:08:06.186: DEBUG/dalvikvm(573): Debugger has detached; object registry had 1 entries
09-03 06:08:08.057: DEBUG/dalvikvm(581): GC_FOR_ALLOC freed 32K, 3% free 6345K/6531K, paused 71ms
09-03 06:08:08.078: INFO/dalvikvm-heap(581): Grow heap (frag case) to 6.828MB for 614416-byte allocation
09-03 06:08:08.186: DEBUG/dalvikvm(581): GC_FOR_ALLOC freed <1K, 4% free 6945K/7175K, paused 79ms
09-03 06:08:08.356: DEBUG/dalvikvm(581): GC_CONCURRENT freed <1K, 4% free 6945K/7175K, paused 20ms+3ms
09-03 06:08:08.616: DEBUG/dalvikvm(147): GC_EXPLICIT freed 7K, 18% free 14098K/17159K, paused 5ms+376ms
09-03 06:08:08.656: DEBUG/dalvikvm(581): GC_CONCURRENT freed 779K, 12% free 6715K/7559K, paused 5ms+3ms
09-03 06:08:08.676: VERBOSE/TLINE(581): new: android.text.TextLine#4063b850
09-03 06:08:09.216: VERBOSE/TLINE(581): new: android.text.TextLine#4072ad08
09-03 06:08:09.279: INFO/ActivityManager(79): Displayed com.clepto.sinnergy/.SinnergyActivity: +3s288ms
09-03 06:08:10.216: DEBUG/dalvikvm(147): GC_EXPLICIT freed <1K, 18% free 14099K/17159K, paused 229ms+4ms
09-03 06:08:13.236: INFO/ActivityManager(79): Starting: Intent { act=com.clepto.sinnergy.OPENHOME } from pid 581
09-03 06:08:13.247: DEBUG/AndroidRuntime(581): Shutting down VM
09-03 06:08:13.247: WARN/dalvikvm(581): threadid=1: thread exiting with uncaught exception (group=0x40014760)
09-03 06:08:13.256: ERROR/AndroidRuntime(581): FATAL EXCEPTION: main
09-03 06:08:13.256: ERROR/AndroidRuntime(581): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.clepto.sinnergy.OPENHOME }
09-03 06:08:13.256: ERROR/AndroidRuntime(581): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1508)
09-03 06:08:13.256: ERROR/AndroidRuntime(581): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1382)
09-03 06:08:13.256: ERROR/AndroidRuntime(581): at android.app.Activity.startActivityForResult(Activity.java:3095)
09-03 06:08:13.256: ERROR/AndroidRuntime(581): at android.app.Activity.startActivity(Activity.java:3201)
09-03 06:08:13.256: ERROR/AndroidRuntime(581): at com.clepto.sinnergy.SinnergyActivity$1.onClick(SinnergyActivity.java:34)
09-03 06:08:13.256: ERROR/AndroidRuntime(581): at android.view.View.performClick(View.java:3110)
09-03 06:08:13.256: ERROR/AndroidRuntime(581): at android.view.View$PerformClick.run(View.java:11928)
09-03 06:08:13.256: ERROR/AndroidRuntime(581): at android.os.Handler.handleCallback(Handler.java:587)
09-03 06:08:13.256: ERROR/AndroidRuntime(581): at android.os.Handler.dispatchMessage(Handler.java:92)
09-03 06:08:13.256: ERROR/AndroidRuntime(581): at android.os.Looper.loop(Looper.java:132)
09-03 06:08:13.256: ERROR/AndroidRuntime(581): at android.app.ActivityThread.main(ActivityThread.java:4025)
09-03 06:08:13.256: ERROR/AndroidRuntime(581): at java.lang.reflect.Method.invokeNative(Native Method)
09-03 06:08:13.256: ERROR/AndroidRuntime(581): at java.lang.reflect.Method.invoke(Method.java:491)
09-03 06:08:13.256: ERROR/AndroidRuntime(581): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
09-03 06:08:13.256: ERROR/AndroidRuntime(581): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
09-03 06:08:13.256: ERROR/AndroidRuntime(581): at dalvik.system.NativeStart.main(Native Method)
09-03 06:08:13.276: WARN/ActivityManager(79): Force finishing activity com.clepto.sinnergy/.SinnergyActivity
09-03 06:08:13.276: WARN/WindowManager(79): Failure taking screenshot for (230x143) to layer 21010
09-03 06:08:13.800: WARN/ActivityManager(79): Activity pause timeout for ActivityRecord{41470780 com.clepto.sinnergy/.SinnergyActivity}
09-03 06:08:16.542: INFO/Process(581): Sending signal. PID: 581 SIG: 9
09-03 06:08:16.566: INFO/ActivityManager(79): Process com.clepto.sinnergy (pid 581) has died.
09-03 06:08:16.566: INFO/WindowManager(79): WIN DEATH: Window{4144bae8 com.clepto.sinnergy/com.clepto.sinnergy.SinnergyActivity paused=false}
09-03 06:08:16.696: WARN/InputManagerService(79): Got RemoteException sending setActive(false) notification to pid 581 uid 10036
09-03 06:08:16.930: INFO/dalvikvm(79): Jit: resizing JitTable from 2048 to 4096
09-03 06:08:22.138: DEBUG/SntpClient(79): request time failed: java.net.SocketException: Address family not supported by protocol
09-03 06:08:24.788: WARN/ActivityManager(79): Activity destroy timeout for ActivityRecord{41470780 com.clepto.sinnergy/.SinnergyActivity}
I think your code is almost perfect..
just need to change one line
write this line
myWebView = (WebView) findViewById(R.id.WebView);
instead of
WebView myWebView = (WebView) findViewById(R.id.WebView);
just remove WebView object bcz you already define in global..
and may be some problem in you webview.xml file ?
check it first.
here is samle code for webview.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android">
<android.webkit.WebView android:id="#+id/WebView"
android:layout_width="fill_parent" android:layout_height="fill_parent">
</android.webkit.WebView>
</LinearLayout>
Update
One thing did you add .OpenHome activity in your menifest.xml file
How to check LogCat
go Window >> Show view >> other >> Android >> LogCat
How to add activity in menifest.xml
open AndroidMenifest.xml from you project directory
and add this line
<activity android:name=".OpenHome"></activity>
how to start new activity
Intent intent = new Intent(your_main_class.this,OpenHome.class);
startActivity(intent);
where your_main_class is your main class name .
This is not because of webview.
FATAL EXCEPTION: main 09-03 06:08:13.256: ERROR/AndroidRuntime(581):
android.content.ActivityNotFoundException: No Activity found to handle
Intent { act=com.clepto.sinnergy.OPENHOME }
This error is because of the activity is not defined in manifest.
Verify the package and class name of your activity in manifest carefully.
I been working with AndEngine and got the maps the test maps to load correctly, yet when i try to load the map i created with the same textures the map loads but then i get a AndroidRuntime error
09-03 18:13:23.416: ERROR/AndroidRuntime(272): FATAL EXCEPTION: UpdateThread
09-03 18:13:23.416: ERROR/AndroidRuntime(272): java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
09-03 18:13:23.416: ERROR/AndroidRuntime(272): at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257)
09-03 18:13:23.416: ERROR/AndroidRuntime(272): at java.util.ArrayList.get(ArrayList.java:311)
09-03 18:13:23.416: ERROR/AndroidRuntime(272): at test.test.test.Game$2.onUpdate(Game.java:254)
09-03 18:13:23.416: ERROR/AndroidRuntime(272): at org.anddev.andengine.engine.handler.UpdateHandlerList.onUpdate(UpdateHandlerList.java:44)
09-03 18:13:23.416: ERROR/AndroidRuntime(272): at org.anddev.andengine.entity.Entity.onManagedUpdate(Entity.java:1014)
09-03 18:13:23.416: ERROR/AndroidRuntime(272): at org.anddev.andengine.entity.scene.Scene.onManagedUpdate(Scene.java:247)
09-03 18:13:23.416: ERROR/AndroidRuntime(272): at org.anddev.andengine.entity.Entity.onUpdate(Entity.java:879)
09-03 18:13:23.416: ERROR/AndroidRuntime(272): at org.anddev.andengine.engine.Engine.onUpdateScene(Engine.java:485)
09-03 18:13:23.416: ERROR/AndroidRuntime(272): at org.anddev.andengine.engine.Engine.onUpdate(Engine.java:480)
09-03 18:13:23.416: ERROR/AndroidRuntime(272): at org.anddev.andengine.engine.Engine.onTickUpdate(Engine.java:456)
09-03 18:13:23.416: ERROR/AndroidRuntime(272): at org.anddev.andengine.engine.Engine$UpdateThread.run(Engine.java:682)
at test.test.test.Game$2.onUpdate(Game.Java:254) points me to line in my Game class
//Gets the index of the current map
mCurrentMapIndex = Integer.parseInt(mTMXTiledMap.getTMXTiledMapProperties().get(0).getValue());
Does anybody have an idea what is causing this??
This is the second map that is loaded the first map where the character spawns loads fine
then when i step on an exit field i try to load this map and after it loads my Emulator displays the map and then crashes with the previously stated error
I had a similar problem. I believe the problem rears its ugly head when you either: attempt to load a property that doesn't exist or something of the sort can you post more code showing how you initialized your TMXMap?
I finally figured it out. When creating a new map i also created a new tile-set image for that map. The tile-set image was in the /tmx folder so the map editor could see it, but it also needed to be in the assets folder so the game could load the image. I dont understand why the map would actually load before crushing.
I will comment further if this doesnt solve the problem completely but so far it seems to work.