Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. W/dalvikvm( 317): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
  2. E/AndroidRuntime( 317): FATAL EXCEPTION: main
  3. E/AndroidRuntime( 317): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.evilx.quacklock/org.evilx.quacklock.MainActivity}: java.lang.RuntimeException: native typeface cannot be made
  4. E/AndroidRuntime( 317): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
  5. E/AndroidRuntime( 317): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
  6. E/AndroidRuntime( 317): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
  7. E/AndroidRuntime( 317): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
  8. E/AndroidRuntime( 317): at android.os.Handler.dispatchMessage(Handler.java:99)
  9. E/AndroidRuntime( 317): at android.os.Looper.loop(Looper.java:123)
  10. E/AndroidRuntime( 317): at android.app.ActivityThread.main(ActivityThread.java:4627)
  11. E/AndroidRuntime( 317): at java.lang.reflect.Method.invokeNative(Native Method)
  12. E/AndroidRuntime( 317): at java.lang.reflect.Method.invoke(Method.java:521)
  13. E/AndroidRuntime( 317): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  14. E/AndroidRuntime( 317): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  15. E/AndroidRuntime( 317): at dalvik.system.NativeStart.main(Native Method)
  16. E/AndroidRuntime( 317): Caused by: java.lang.RuntimeException: native typeface cannot be made
  17. E/AndroidRuntime( 317): at android.graphics.Typeface.<init>(Typeface.java:147)
  18. E/AndroidRuntime( 317): at android.graphics.Typeface.createFromAsset(Typeface.java:121)
  19. E/AndroidRuntime( 317): at org.evilx.quacklock.MainActivity.onCreate(MainActivity.java:24)
  20. E/AndroidRuntime( 317): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
  21. E/AndroidRuntime( 317): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
  22. E/AndroidRuntime( 317): ... 11 more
  23. W/ActivityManager( 59): Force finishing activity org.evilx.quacklock/.MainActivity
  24. W/ActivityManager( 59): Activity pause timeout for HistoryRecord{43e80368 org.evilx.quacklock/.MainActivity}
  25. D/dalvikvm( 247): GC_EXPLICIT freed 711 objects / 53160 bytes in 20922ms
  26.  
  27. public class MainActivity extends Activity {
  28. /** Called when the activity is first created. */
  29. @Override
  30. public void onCreate(Bundle icicle) {
  31. super.onCreate(icicle);
  32. Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/Molot.otf");
  33. TextView tv = (TextView) findViewById(R.id.CustomFontText);
  34. tv.setTypeface(tf);
  35. }
  36. }
  37.  
  38. Molot.otf
  39.  
  40. Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/Molot.otf")
  41.  
  42. Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/MOLOT.OTF")
  43.  
  44. Typeface tf = Typeface.createFromAsset(getAssets(), "fonts/MOLOT.OTF")
  45.  
  46. Typeface typeface = Typeface.createFromAsset(getAssets(), "fonts/fontname.otf");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement