• 大小: 211KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-09
  • 语言: Java
  • 标签:

资源简介

Chaquopy demo This is the demo app for Chaquopy, the Python SDK for Android. You can install a Python 2 or Python 3 build of this app from Google Play. The app includes: A Python console for interactive experimentation. An example of an Android activity written entirely in Python. An example of how

资源截图

代码片段和文件信息

package com.chaquo.java;

import com.chaquo.python.*;
import com.chaquo.python.android.*;
import org.junit.*;

import static org.junit.Assert.*;


public class AndroidPlatformTest {
    @BeforeClass
    public static void androidOnly() {
        Assume.assumeTrue(System.getProperty(“java.vendor“).toLowerCase().contains(“android“));
    }

    @Test
    public void getApplication() {
        assertNotNull(((AndroidPlatform) Python.getPlatform()).getApplication());
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-04-19 19:54  chaquopy-master\
     文件         205  2019-04-19 19:54  chaquopy-master\.gitignore
     目录           0  2019-04-19 19:54  chaquopy-master\.idea\
     文件        8805  2019-04-19 19:54  chaquopy-master\.idea\codestyleSettings.xml
     目录           0  2019-04-19 19:54  chaquopy-master\.idea\codestyles\
     文件        7929  2019-04-19 19:54  chaquopy-master\.idea\codestyles\Project.xml
     文件         153  2019-04-19 19:54  chaquopy-master\.idea\codestyles\codestyleConfig.xml
     文件         686  2019-04-19 19:54  chaquopy-master\.idea\compiler.xml
     目录           0  2019-04-19 19:54  chaquopy-master\.idea\copyright\
     文件          74  2019-04-19 19:54  chaquopy-master\.idea\copyright\profiles_settings.xml
     文件         757  2019-04-19 19:54  chaquopy-master\.idea\gradle.xml
     目录           0  2019-04-19 19:54  chaquopy-master\.idea\inspectionProfiles\
     文件        2438  2019-04-19 19:54  chaquopy-master\.idea\inspectionProfiles\Project_Default.xml
     文件         235  2019-04-19 19:54  chaquopy-master\.idea\inspectionProfiles\profiles_settings.xml
     文件         345  2019-04-19 19:54  chaquopy-master\.idea\modules.xml
     文件         564  2019-04-19 19:54  chaquopy-master\.idea\runConfigurations.xml
     文件        3608  2019-04-19 19:54  chaquopy-master\CHANGELOG.md
     文件        1054  2019-04-19 19:54  chaquopy-master\LICENSE.txt
     文件         771  2019-04-19 19:54  chaquopy-master\README.md
     目录           0  2019-04-19 19:54  chaquopy-master\app\
     文件        2897  2019-04-19 19:54  chaquopy-master\app\build.gradle
     文件         913  2019-04-19 19:54  chaquopy-master\app\proguard-rules.pro
     目录           0  2019-04-19 19:54  chaquopy-master\app\src\
     目录           0  2019-04-19 19:54  chaquopy-master\app\src\main\
     文件        1762  2019-04-19 19:54  chaquopy-master\app\src\main\AndroidManifest.xml
     目录           0  2019-04-19 19:54  chaquopy-master\app\src\main\java\
     目录           0  2019-04-19 19:54  chaquopy-master\app\src\main\java\com\
     目录           0  2019-04-19 19:54  chaquopy-master\app\src\main\java\com\chaquo\
     目录           0  2019-04-19 19:54  chaquopy-master\app\src\main\java\com\chaquo\java\
     文件         476  2019-04-19 19:54  chaquopy-master\app\src\main\java\com\chaquo\java\AndroidPlatformTest.java
     文件         554  2019-04-19 19:54  chaquopy-master\app\src\main\java\com\chaquo\java\ContainerTest.java
............此处省略165个文件信息

评论

共有 条评论