daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Jan 17th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void onCreate(Bundle savedInstanceState) {
  2.     super.onCreate(savedInstanceState);
  3.     requestWindowFeature(Window.FEATURE_NO_TITLE);
  4.  
  5.     webview = (WebView) findViewById(R.id.webview);
  6.     logo = (ImageView) findViewById(R.id.logo);
  7.  
  8.     webview.getSettings().setJavaScriptEnabled(true);
  9.     webview.getSettings().setLightTouchEnabled(true);
  10.     webview.getSettings().setEnableSmoothTransition(true);
  11.  
  12.     javascriptInterface = new JavascriptInterface() {
  13.         public void showLogo() {
  14.             runOnUiThread(new Runnable() {
  15.                 public void run() {
  16.                     MyActivity.this.logo.setVisibility(View.VISIBLE);
  17.                 }
  18.             });
  19.         }
  20.  
  21.         public void hideLogo() {
  22.             MyActivity.this.runOnUiThread( new Runnable() {
  23.                 public void run() {
  24.                     MyActivity.this.logo.setVisibility(View.GONE);
  25.                 }
  26.             });
  27.         }
  28.     };
  29.     webview.addJavascriptInterface(javascriptInterface, JavascriptInterface.NAME);
  30.     webview.loadUrl("file:///android_asset/test.html");
  31. }
  32.    
  33. 10-01 12:29:55.591: INFO/Choreographer(10074): Skipped 74 frames!  The application may be doing too much work on its main thread.
  34. 10-01 12:29:55.622: null/libc(10074): Fatal signal 11 (SIGSEGV) at 0x00000008 (code=1), thread 10074 (com.arin.test)
  35. 10-01 12:29:55.724: INFO/DEBUG(121): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  36. 10-01 12:29:55.724: INFO/DEBUG(121): Build fingerprint: 'google/takju/maguro:4.1.1/JRO03C/398337:user/release-keys'
  37. 10-01 12:29:55.724: INFO/DEBUG(121): pid: 10074, tid: 10074, name: com.arin.test  >>> com.arin.test <<<
  38. 10-01 12:29:55.724: INFO/DEBUG(121): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000008
  39. 10-01 12:29:55.849: INFO/DEBUG(121): r0 00000008  r1 5bc3ebc0  r2 00000010  r3 00000004
  40. 10-01 12:29:55.849: INFO/DEBUG(121): r4 5a52d008  r5 5a52de38  r6 00000001  r7 00000004
  41. 10-01 12:29:55.849: INFO/DEBUG(121): r8 00000008  r9 00000001  sl 00000004  fp 00000001
  42. 10-01 12:29:55.849: INFO/DEBUG(121): ip 00000001  sp bedb2310  lr 5bea188c  pc 5beca774  cpsr 80000010
  43. 10-01 12:29:55.849: INFO/DEBUG(121): d0  00000000bd0d3d00  d1  3f8469ee00000000
  44. 10-01 12:29:55.849: INFO/DEBUG(121): d2  0000000000000080  d3  000000000000003f
  45. 10-01 12:29:55.849: INFO/DEBUG(121): d4  0000000000000000  d5  000000003f800000
  46. 10-01 12:29:55.849: INFO/DEBUG(121): d6  3f8469eebd0d3dcb  d7  3f8000003f800000
  47. 10-01 12:29:55.849: INFO/DEBUG(121): d8  bf800000bf800000  d9  0000000000000000
  48. 10-01 12:29:55.849: INFO/DEBUG(121): d10 0000000000000000  d11 0000000000000000
  49. 10-01 12:29:55.849: INFO/DEBUG(121): d12 0000000000000000  d13 0000000000000000
  50. 10-01 12:29:55.849: INFO/DEBUG(121): d14 0000000000000000  d15 0000000000000000
  51. 10-01 12:29:55.849: INFO/DEBUG(121): d16 0000000000000008  d17 000000c1417d8568
  52. 10-01 12:29:55.849: INFO/DEBUG(121): d18 000000000358b208  d19 0000000000000000
  53. 10-01 12:29:55.849: INFO/DEBUG(121): d20 0000000000000000  d21 0000000000000000
  54. 10-01 12:29:55.849: INFO/DEBUG(121): d22 0000000000000000  d23 0000000000000000
  55. 10-01 12:29:55.849: INFO/DEBUG(121): d24 3fee45a1e2e00000  d25 4000000006800000
  56. 10-01 12:29:55.849: INFO/DEBUG(121): d26 0000000000000000  d27 0000000000000000
  57. 10-01 12:29:55.849: INFO/DEBUG(121): d28 408d900000000000  d29 0000000000000000
  58. 10-01 12:29:55.849: INFO/DEBUG(121): d30 bffffffff8a00000  d31 0000000000000000
  59. 10-01 12:29:55.849: INFO/DEBUG(121): scr 20000010
  60. 10-01 12:29:55.849: INFO/DEBUG(121): backtrace:
  61. 10-01 12:29:55.849: INFO/DEBUG(121): #00  pc 00034774  /system/vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
  62. 10-01 12:29:55.849: INFO/DEBUG(121): #01  pc 0000b888  /system/vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
  63. 10-01 12:29:55.849: INFO/DEBUG(121): stack:
  64. 10-01 12:29:55.849: INFO/DEBUG(121): bedb22d0  03d00000
  65. 10-01 12:29:55.849: INFO/DEBUG(121): bedb22d4  00000000
  66. 10-01 12:29:55.849: INFO/DEBUG(121): bedb22d8  5a4defc8
  67. 10-01 12:29:55.849: INFO/DEBUG(121): bedb22dc  5a5316c0
  68. 10-01 12:29:55.849: INFO/DEBUG(121): bedb22e0  5a52dee4
  69. 10-01 12:29:55.849: INFO/DEBUG(121): bedb22e4  00000008
  70. 10-01 12:29:55.849: INFO/DEBUG(121): bedb22e8  00000002
  71. 10-01 12:29:55.849: INFO/DEBUG(121): bedb22ec  00000004
  72. 10-01 12:29:55.849: INFO/DEBUG(121): bedb22f0  5a52dee4
  73. 10-01 12:29:55.849: INFO/DEBUG(121): bedb22f4  5a52d008
  74. 10-01 12:29:55.849: INFO/DEBUG(121): bedb22f8  5a52de34
  75. 10-01 12:29:55.849: INFO/DEBUG(121): bedb22fc  00000000
  76. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2300  00000004
  77. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2304  00000023
  78. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2308  df0027ad
  79. 10-01 12:29:55.849: INFO/DEBUG(121): bedb230c  00000000
  80. 10-01 12:29:55.849: INFO/DEBUG(121): #00  bedb2310  5a52d008
  81. 10-01 12:29:55.849: INFO/DEBUG(121): ........  ........
  82. 10-01 12:29:55.849: INFO/DEBUG(121): #01  bedb2310  5a52d008
  83. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2314  5bea188c  /system/vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
  84. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2318  5a52d008
  85. 10-01 12:29:55.849: INFO/DEBUG(121): bedb231c  00000004
  86. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2320  00000004
  87. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2324  00000000
  88. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2328  00000005
  89. 10-01 12:29:55.849: INFO/DEBUG(121): bedb232c  5bea398c  /system/vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
  90. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2330  5a52d008
  91. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2334  00000004
  92. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2338  00000000
  93. 10-01 12:29:55.849: INFO/DEBUG(121): bedb233c  5bef106c  /system/vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
  94. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2340  00000005
  95. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2344  5bea4a70  /system/vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so (glDrawArrays+804)
  96. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2348  00000004
  97. 10-01 12:29:55.849: INFO/DEBUG(121): bedb234c  00000000
  98. 10-01 12:29:55.849: INFO/DEBUG(121): memory near r1:
  99. 10-01 12:29:55.849: INFO/DEBUG(121): 5bc3eba0 ffffffff ffffffff ffffffff ffffffff  ................
  100. 10-01 12:29:55.849: INFO/DEBUG(121): 5bc3ebb0 ffffffff ffffffff ffffffff ffffffff  ................
  101. 10-01 12:29:55.849: INFO/DEBUG(121): 5bc3ebc0 ffffffff ffffffff ffffffff ffffffff  ................
  102. 10-01 12:29:55.849: INFO/DEBUG(121): 5bc3ebd0 ffffffff ffffffff ffffffff ffffffff  ................
  103. 10-01 12:29:55.849: INFO/DEBUG(121): 5bc3ebe0 ffffffff ffffffff ffffffff ffffffff  ................
  104. 10-01 12:29:55.849: INFO/DEBUG(121): memory near r4:
  105. 10-01 12:29:55.849: INFO/DEBUG(121): 5a52cfe8 5a525fe0 00000001 00000000 00000007  ._RZ............
  106. 10-01 12:29:55.849: INFO/DEBUG(121): 5a52cff8 00000007 00000007 00000000 00000f9b  ................
  107. 10-01 12:29:55.849: INFO/DEBUG(121): 5a52d008 00000018 0000e7f4 00001c80 00001100  ................
  108. 10-01 12:29:55.849: INFO/DEBUG(121): 5a52d018 00001100 0000000a 00000428 00000048  ........(...H...
  109. 10-01 12:29:55.849: INFO/DEBUG(121): 5a52d028 0000003c 00000048 0000003c 00000004  <...H...<.......
  110. 10-01 12:29:55.849: INFO/DEBUG(121): memory near r5:
  111. 10-01 12:29:55.849: INFO/DEBUG(121): 5a52de18 00000000 00000000 00000000 00000000  ................
  112. 10-01 12:29:55.849: INFO/DEBUG(121): 5a52de28 00000000 00000000 5a52dc0c 5a52dcb4  ..........RZ..RZ
  113. 10-01 12:29:55.849: INFO/DEBUG(121): 5a52de38 5a52dce4 00000000 00000000 00000000  ..RZ............
  114. 10-01 12:29:55.849: INFO/DEBUG(121): 5a52de48 00000000 00000000 00000000 00000000  ................
  115. 10-01 12:29:55.849: INFO/DEBUG(121): 5a52de58 00000002 00000003 00000003 00000004  ................
  116. 10-01 12:29:55.849: INFO/DEBUG(121): memory near sp:
  117. 10-01 12:29:55.849: INFO/DEBUG(121): bedb22f0 5a52dee4 5a52d008 5a52de34 00000000  ..RZ..RZ4.RZ....
  118. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2300 00000004 00000023 df0027ad 00000000  ....#....'......
  119. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2310 5a52d008 5bea188c 5a52d008 00000004  ..RZ...[..RZ....
  120. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2320 00000004 00000000 00000005 5bea398c  .............9.[
  121. 10-01 12:29:55.849: INFO/DEBUG(121): bedb2330 5a52d008 00000004 00000000 5bef106c  ..RZ........l..[
  122. 10-01 12:29:55.849: INFO/DEBUG(121): code around pc:
  123. 10-01 12:29:55.849: INFO/DEBUG(121): 5beca754 e781410c e28cc001 e15c0003 3afffffa  .A............:
  124. 10-01 12:29:55.849: INFO/DEBUG(121): 5beca764 e8bd8010 e92d4010 e3a0c000 ea000004  .....@-.........
  125. 10-01 12:29:55.849: INFO/DEBUG(121): 5beca774 e5904000 e5014008 e5904004 e0800002  .@...@...@......
  126. 10-01 12:29:55.849: INFO/DEBUG(121): 5beca784 e5014004 e15c0003 e2811008 e28cc001  .@.............
  127. 10-01 12:29:55.849: INFO/DEBUG(121): 5beca794 3afffff6 e8bd8010 e92d4010 e3a0c000  ...:.....@-.....
  128. 10-01 12:29:55.856: INFO/DEBUG(121): code around lr:
  129. 10-01 12:29:55.856: INFO/DEBUG(121): 5bea186c e3530000 1a000005 e1a03007 e59c0018  ..S......0......
  130. 10-01 12:29:55.856: INFO/DEBUG(121): 5bea187c e59c101c e59c2014 e1a0e00f e59cf024  ..... ......$...
  131. 10-01 12:29:55.856: INFO/DEBUG(121): 5bea188c e2866001 e2855004 e5942e50 e3a03001  .`...P..P....0..
  132. 10-01 12:29:55.856: INFO/DEBUG(121): 5bea189c e1560002 3affffeb e2840eed e1a01008  ..V....:........
  133. 10-01 12:29:55.856: INFO/DEBUG(121): 5bea18ac e280000c e1a02003 e8bd41f0 eaffe178  ..... ...A..x...
  134. 10-01 12:29:56.060: INFO/WindowState(321): WIN DEATH: Window{425993f8 com.arin.test/com.arin.test paused=false}
  135. 10-01 12:29:56.060: INFO/ActivityManager(321): Process com.arin.test (pid 10074) has died.
  136. 10-01 12:29:56.060: WARN/ActivityManager(321): Force removing ActivityRecord{4226e5d0 com.arin.test/com.arin.test}: app died, no saved state
  137. 10-01 12:29:56.099: DEBUG/Zygote(124): Process 10074 terminated by signal (11)
  138. 10-01 12:29:56.161: WARN/InputMethodManagerService(321): Got RemoteException sending setActive(false) notification to pid 10074 uid 10008
  139.    
  140. webView = (WebView) findViewById( R.id.webView );
  141. webView.getSettings().setJavaScriptEnabled( true );
  142. webView.addJavascriptInterface( new JavascriptInterface(), "Android" );
  143. webview.loadUrl("file:///android_asset/test.html");
  144.    
  145. private class JavascriptInterface {
  146.  
  147.     public void makeToast( String toastText ) {
  148.  
  149.         Toast.makeText( getApplicationContext(), toastText, Toast.LENGTH_LONG ).show();
  150.     }
  151. }
  152.    
  153. function makeToast() {
  154.  
  155.     Android.makeToast("Test");
  156. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top