This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from kivy.app import App | |
| from jnius.reflect import autoclass | |
| from jnius.jnius import cast | |
| from kivy.uix.button import Button | |
| from kivy.uix.boxlayout import BoxLayout | |
| from kivy.uix.gridlayout import GridLayout | |
| #from kivy.clock import Clock | |
| #from multiprocessing import Process, Pipe | |
| from functools import partial |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gabriel@tochange:~/pyjnius$ python | |
| Python 2.7.3 (default, Apr 20 2012, 22:44:07) | |
| [GCC 4.6.3] on linux2 | |
| Type "help", "copyright", "credits" or "license" for more information. | |
| >>> from jnius import autoclass | |
| <jnius.JavaStaticMethod object at 0x976502c> False | |
| <jnius.JavaMethod object at 0x976db24> False | |
| <jnius.JavaMethod object at 0x976db6c> False | |
| <jnius.JavaMethod object at 0x976dbb4> False | |
| <jnius.JavaMethod object at 0x976dbfc> False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cdef class GenericNativeWrapper(object): | |
| """ | |
| This class is to be used to register python method as methods of | |
| JavaObjects using RegisterNatives | |
| """ | |
| cdef JNIEnv* j_env | |
| def __cinit__(self, j_env, definition, callback): | |
| self.j_env = NULL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cdef class GenericNativeWrapper(object): | |
| """ | |
| This class is to be used to register python method as methods of | |
| JavaObjects using RegisterNatives | |
| """ | |
| cdef JNIEnv* j_env | |
| cdef args | |
| def __cinit__(self, j_env, definition, callback): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cdef class GenericNativeWrapper(object): | |
| """ | |
| This class is to be used to register python method as methods of | |
| JavaObjects using RegisterNatives | |
| """ | |
| cdef JNIEnv* j_env | |
| cdef args | |
| def __cinit__(self, j_env, definition, callback): | |
| self.j_env = NULL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from kivy.app import App | |
| from kivy.uix.widget import Widget | |
| from kivy.graphics import Rectangle | |
| from kivy.graphics.texture import Texture | |
| class MyWidget(Widget): | |
| def __init__(self, **args): | |
| super(MyWidget, self).__init__(**args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| + | |
| + # libcrypt activated ? | |
| + if [ "X$BUILD_libcrypt" != "X" ]; then | |
| + nebug "Activate flags for libcrypt / python" | |
| + export LDFLAGS="$LDFLAGS -L$BUILD_libcrypt/" | |
| + fi | |
| + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from kivy.app import App | |
| from kivy.uix.widget import Widget | |
| #from kivy.graphics import Color, Ellipse | |
| from kivy.graphics import Rectangle | |
| from kivy.lang import Builder | |
| from kivy.animation import Animation | |
| from kivy.core.image import Image | |
| from kivy.properties import ObjectProperty | |
| Builder.load_string(''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from kivy.app import App | |
| from kivy.uix.widget import Widget | |
| #from kivy.graphics import Color, Ellipse | |
| from kivy.graphics import Rectangle | |
| from kivy.lang import Builder | |
| from kivy.animation import Animation | |
| from kivy.core.image import Image | |
| from kivy.properties import ObjectProperty | |
| Builder.load_string(''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 253 DatabaseUtils E java.lang.SecurityException: Invalid value for is_public_api: null | |
| 253 DatabaseUtils E at com.android.providers.downloads.DownloadProvider.enforceAllowedValues(Downloa | |
| dProvider.java:795) | |
| 253 DatabaseUtils E at com.android.providers.downloads.DownloadProvider.checkInsertPermissions(Downl | |
| oadProvider.java:714) | |
| 253 DatabaseUtils E at com.android.providers.downloads.DownloadProvider.insert(DownloadProvider.java | |
| :472) | |
| 253 DatabaseUtils E at android.content.ContentProvider$Transport.insert(ContentProvider.java:189) | |
| 253 DatabaseUtils E at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:1 | |
| 52) |