1556138063

add public android sdk

Showing 41 changed files with 473 additions and 0 deletions
No preview for this file type
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<config>
3 +
4 + <sdkconfig
5 + appClientKey="9DtxPtUrzYU0uTBGGMJzKyhKAK5t2O9i"
6 + appId="Dz8T95TrG9d/WVIWAPZviuaV7Tbko3oAlqDCYpNKkTU="
7 + channelparameter1="4uc0/gEfNt4="
8 + channelparameter2="4uc0/gEfNt4="
9 + custom="T7w9VvhA5tQ="
10 + gamechannelid="4uc0/gEfNt4="
11 + gamesimplename="qcFlv/sgri8oQ6xDbE0odg=="
12 + logincheckurl="Xwm2VZk4IZHw4pR8WSu0JRSPl5jMDzA8+5nKH+jNJckQW+5uHcG5Mxl+gMWO6s8PhqrR0VX7irk="
13 + paycheckurl="Xwm2VZk4IZHw4pR8WSu0JRSPl5jMDzA8+5nKH+jNJclRWohb/BPqZ4ChH88g5ubtvsBW3D32B8c="
14 + payorderurl="Xwm2VZk4IZHw4pR8WSu0JRSPl5jMDzA8+5nKH+jNJclRWohb/BPqZ4SO5qrmq1RBsIoFXavzUfg="
15 + sdksimplename="vWVsU5Ogkh8="
16 + sdkversioncode="BVPAQexcXDk="
17 + styleName="4N7gnKed6uk="
18 + usertype="gssaXIIEiL0="
19 + weixinId="x3d4hSeP9KFDTFusyU+iB/9NgyvRyoop"
20 + payCallbackUrl = "http://51wang"
21 + />
22 +
23 +</config>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<classpath>
3 + <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
4 + <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
5 + <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
6 + <classpathentry kind="src" path="src"/>
7 + <classpathentry kind="src" path="gen"/>
8 + <classpathentry kind="output" path="bin/classes"/>
9 +</classpath>
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<projectDescription>
3 + <name>Demo_PoolSdk</name>
4 + <comment></comment>
5 + <projects>
6 + </projects>
7 + <buildSpec>
8 + <buildCommand>
9 + <name>org.python.pydev.PyDevBuilder</name>
10 + <arguments>
11 + </arguments>
12 + </buildCommand>
13 + <buildCommand>
14 + <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
15 + <arguments>
16 + </arguments>
17 + </buildCommand>
18 + <buildCommand>
19 + <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
20 + <arguments>
21 + </arguments>
22 + </buildCommand>
23 + <buildCommand>
24 + <name>org.eclipse.jdt.core.javabuilder</name>
25 + <arguments>
26 + </arguments>
27 + </buildCommand>
28 + <buildCommand>
29 + <name>com.android.ide.eclipse.adt.ApkBuilder</name>
30 + <arguments>
31 + </arguments>
32 + </buildCommand>
33 + </buildSpec>
34 + <natures>
35 + <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
36 + <nature>org.eclipse.jdt.core.javanature</nature>
37 + <nature>org.python.pydev.pythonNature</nature>
38 + </natures>
39 +</projectDescription>
1 +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 +<?eclipse-pydev version="1.0"?><pydev_project>
3 +<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
4 +<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property>
5 +</pydev_project>
1 +eclipse.preferences.version=1
2 +encoding/<project>=UTF-8
1 +eclipse.preferences.version=1
2 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3 +org.eclipse.jdt.core.compiler.compliance=1.6
4 +org.eclipse.jdt.core.compiler.source=1.6
1 +@echo off
2 +cd /d %~dp0
3 +"%ANT_ROOT%\bin\ant" clean release -f build.xml
4 +pause
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3 + package="com.youai.foolsdk.demo"
4 + android:versionCode="1"
5 + android:versionName="1.0" >
6 +
7 + <uses-sdk
8 + android:minSdkVersion="8"
9 + android:targetSdkVersion="19" />
10 +
11 + <uses-permission android:name="android.permission.INTERNET" >
12 + </uses-permission>
13 + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
14 + <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
15 + <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
16 + <uses-permission android:name="android.permission.INTERNET" />
17 + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
18 + <uses-permission android:name="android.permission.READ_PHONE_STATE" />
19 + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
20 + <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
21 + <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
22 + <uses-permission android:name="android.permission.READ_LOGS" />
23 + <uses-permission android:name="android.permission.GET_TASKS" />
24 +
25 + <application
26 + android:name="com.gzyouai.publicsdk.application.PoolSDKApplication"
27 + android:allowBackup="true"
28 + android:icon="@drawable/public_sdk_self_ic_launcher"
29 + android:label="@string/app_name" >
30 + <activity
31 + android:name="com.youai.foolsdk.demo.AppActivity"
32 + android:configChanges="keyboardHidden|orientation|screenSize"
33 + android:label="@string/app_name"
34 + android:screenOrientation="landscape"
35 + android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
36 + <intent-filter>
37 + <action android:name="android.intent.action.MAIN" />
38 +
39 + <category android:name="android.intent.category.LAUNCHER" />
40 + </intent-filter>
41 + </activity>
42 +
43 + <!-- start YouaiSDK -->
44 + <receiver
45 + android:name="com.gzyouai.fengniao.sdk.framework.AppInstallReceiver"
46 + android:label="@string/app_name" >
47 + <intent-filter>
48 + <action android:name="android.intent.action.PACKAGE_ADDED" />
49 + <action android:name="android.intent.action.PACKAGE_REPLACED" />
50 + <action android:name="android.intent.action.PACKAGE_REMOVED" />
51 +
52 + <data android:scheme="package" />
53 + </intent-filter>
54 + </receiver>
55 + <!-- start i9133 -->
56 + <activity
57 + android:name=".wxapi.WXPayEntryActivity"
58 + android:exported="true"
59 + android:launchMode="singleTop" />
60 + <activity
61 + android:name="com.youai.sdk.YouaiSDK"
62 + android:label="youai_sdk"
63 + android:theme="@android:style/Theme.Dialog" >
64 + </activity>
65 +
66 + <service
67 + android:name="com.youai.sdk.YouaiService"
68 + android:enabled="true" >
69 + <intent-filter>
70 + <action android:name="com.youai.sdk.YouaiService" />
71 + </intent-filter>
72 + </service>
73 + <service
74 + android:name="com.youai.sdk.FloatViewService"
75 + android:enabled="true"
76 + android:exported="true" >
77 + <intent-filter>
78 + <action android:name="com.youai.sdk.FloatViewService" />
79 + </intent-filter>
80 + </service>
81 +
82 + <receiver android:name="com.youai.sdk.Receiver" >
83 + <intent-filter>
84 + <action android:name="android.intent.action.BOOT_COMPLETED" >
85 + </action>
86 +
87 + <category android:name="android.intent.category.LAUNCHER" />
88 + </intent-filter>
89 + </receiver>
90 +
91 + <activity
92 + android:name="com.alipay.sdk.app.H5PayActivity"
93 + android:configChanges="orientation|keyboardHidden|navigation"
94 + android:exported="false"
95 + android:screenOrientation="behind" >
96 + </activity>
97 + <activity
98 + android:name="com.alipay.sdk.auth.AuthActivity"
99 + android:configChanges="orientation|keyboardHidden|navigation"
100 + android:exported="false"
101 + android:screenOrientation="behind" >
102 + </activity>
103 + <!-- end i9133 -->
104 +
105 + </application>
106 +
107 +</manifest>
...\ No newline at end of file ...\ No newline at end of file
1 +# This file is used to override default values used by the Ant build system.
2 +#
3 +# This file must be checked into Version Control Systems, as it is
4 +# integral to the build system of your project.
5 +
6 +# This file is only used by the Ant script.
7 +
8 +# You can use this to override default values such as
9 +# 'source.dir' for the location of your java source folder and
10 +# 'out.dir' for the location of your output folder.
11 +
12 +# You can also use it define how the release builds are signed by declaring
13 +# the following properties:
14 +# 'key.store' for the location of your keystore and
15 +# 'key.alias' for the name of the key to use.
16 +# The password will be asked during the build when you use the 'release' target.
17 +
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<config>
3 +
4 + <sdkconfig
5 + appClientKey="9DtxPtUrzYU0uTBGGMJzKyhKAK5t2O9i"
6 + appId="Dz8T95TrG9d/WVIWAPZviuaV7Tbko3oAlqDCYpNKkTU="
7 + channelparameter1="4uc0/gEfNt4="
8 + channelparameter2="4uc0/gEfNt4="
9 + custom="T7w9VvhA5tQ="
10 + gamechannelid="4uc0/gEfNt4="
11 + gamesimplename="qcFlv/sgri8oQ6xDbE0odg=="
12 + logincheckurl="Xwm2VZk4IZHw4pR8WSu0JRSPl5jMDzA8+5nKH+jNJckQW+5uHcG5Mxl+gMWO6s8PhqrR0VX7irk="
13 + paycheckurl="Xwm2VZk4IZHw4pR8WSu0JRSPl5jMDzA8+5nKH+jNJclRWohb/BPqZ4ChH88g5ubtvsBW3D32B8c="
14 + payorderurl="Xwm2VZk4IZHw4pR8WSu0JRSPl5jMDzA8+5nKH+jNJclRWohb/BPqZ4SO5qrmq1RBsIoFXavzUfg="
15 + sdksimplename="vWVsU5Ogkh8="
16 + sdkversioncode="BVPAQexcXDk="
17 + styleName="yvfh/4zhaEQ="
18 + usertype="gssaXIIEiL0="
19 + weixinId="x3d4hSeP9KFDTFusyU+iB/9NgyvRyoop"
20 + payCallbackUrl = "http://51wang"
21 + />
22 +
23 +</config>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project name="PoolSdk" default="help">
3 +
4 + <!-- The local.properties file is created and updated by the 'android' tool.
5 + It contains the path to the SDK. It should *NOT* be checked into
6 + Version Control Systems. -->
7 + <property file="local.properties" />
8 +
9 + <!-- The ant.properties file can be created by you. It is only edited by the
10 + 'android' tool to add properties to it.
11 + This is the place to change some Ant specific build properties.
12 + Here are some properties you may want to change/update:
13 +
14 + source.dir
15 + The name of the source directory. Default is 'src'.
16 + out.dir
17 + The name of the output directory. Default is 'bin'.
18 +
19 + For other overridable properties, look at the beginning of the rules
20 + files in the SDK, at tools/ant/build.xml
21 +
22 + Properties related to the SDK location or the project target should
23 + be updated using the 'android' tool with the 'update' action.
24 +
25 + This file is an integral part of the build system for your
26 + application and should be checked into Version Control Systems.
27 +
28 + -->
29 + <property file="ant.properties" />
30 +
31 + <!-- if sdk.dir was not set from one of the property file, then
32 + get it from the ANDROID_HOME env var.
33 + This must be done before we load project.properties since
34 + the proguard config can use sdk.dir -->
35 + <property environment="env" />
36 + <condition property="sdk.dir" value="${env.ANDROID_HOME}">
37 + <isset property="env.ANDROID_HOME" />
38 + </condition>
39 +
40 + <!-- The project.properties file is created and updated by the 'android'
41 + tool, as well as ADT.
42 +
43 + This contains project specific properties such as project target, and library
44 + dependencies. Lower level build properties are stored in ant.properties
45 + (or in .classpath for Eclipse projects).
46 +
47 + This file is an integral part of the build system for your
48 + application and should be checked into Version Control Systems. -->
49 + <loadproperties srcFile="project.properties" />
50 +
51 + <!-- quick check on sdk.dir -->
52 + <fail
53 + message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
54 + unless="sdk.dir"
55 + />
56 +
57 + <!--
58 + Import per project custom build rules if present at the root of the project.
59 + This is the place to put custom intermediary targets such as:
60 + -pre-build
61 + -pre-compile
62 + -post-compile (This is typically used for code obfuscation.
63 + Compiled code location: ${out.classes.absolute.dir}
64 + If this is not done in place, override ${out.dex.input.absolute.dir})
65 + -post-package
66 + -post-build
67 + -pre-clean
68 + -->
69 + <import file="custom_rules.xml" optional="true" />
70 +
71 + <!-- Import the actual build file.
72 +
73 + To customize existing targets, there are two options:
74 + - Customize only one target:
75 + - copy/paste the target into this file, *before* the
76 + <import> task.
77 + - customize it to your needs.
78 + - Customize the whole content of build.xml
79 + - copy/paste the content of the rules files (minus the top node)
80 + into this file, replacing the <import> task.
81 + - customize to your needs.
82 +
83 + ***********************
84 + ****** IMPORTANT ******
85 + ***********************
86 + In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
87 + in order to avoid having your file be overridden by tools such as "android update project"
88 + -->
89 + <!-- version-tag: 1 -->
90 + <import file="${sdk.dir}/tools/ant/build.xml" />
91 +
92 +</project>
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<lint>
3 +</lint>
...\ No newline at end of file ...\ No newline at end of file
1 +# This file is automatically generated by Android Tools.
2 +# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 +#
4 +# This file must *NOT* be checked into Version Control Systems,
5 +# as it contains information specific to your local configuration.
6 +
7 +# location of the SDK. This is only used by Ant
8 +# For customization when using a Version Control System, please read the
9 +# header note.
10 +sdk.dir=D:\\android\\sdk
1 +# To enable ProGuard in your project, edit project.properties
2 +# to define the proguard.config property as described in that file.
3 +#
4 +# Add project specific ProGuard rules here.
5 +# By default, the flags in this file are appended to flags specified
6 +# in ${sdk.dir}/tools/proguard/proguard-android.txt
7 +# You can edit the include path and order by changing the ProGuard
8 +# include property in project.properties.
9 +#
10 +# For more details, see
11 +# http://developer.android.com/guide/developing/tools/proguard.html
12 +
13 +# Add any project specific keep options here:
14 +
15 +# If your project uses WebView with JS, uncomment the following
16 +# and specify the fully qualified class name to the JavaScript interface
17 +# class:
18 +#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19 +# public *;
20 +#}
1 +# This file is automatically generated by Android Tools.
2 +# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 +#
4 +# This file must be checked in Version Control Systems.
5 +#
6 +# To customize properties used by the Ant build system edit
7 +# "ant.properties", and override values to adapt the script to your
8 +# project structure.
9 +#
10 +# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 +#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 +
13 +# Project target.
14 +target=android-19
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<selector xmlns:android="http://schemas.android.com/apk/res/android" >
3 + <item android:drawable="@drawable/public_sdk_self_demo_btn_main_s" android:state_selected="true"/>
4 + <item android:drawable="@drawable/public_sdk_self_demo_btn_main_s" android:state_pressed="true"/>
5 + <item android:drawable="@drawable/public_sdk_self_demo_btn_main_n"/>
6 +</selector>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<selector xmlns:android="http://schemas.android.com/apk/res/android" >
3 + <item android:drawable="@drawable/public_sdk_self_demo_btn_login_s" android:state_selected="true"/>
4 + <item android:drawable="@drawable/public_sdk_self_demo_btn_login_s" android:state_pressed="true"/>
5 + <item android:drawable="@drawable/public_sdk_self_demo_btn_login_n"/>
6 +</selector>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + android:layout_width="match_parent"
4 + android:layout_height="match_parent"
5 + android:background="@drawable/public_sdk_self_demo_main" >
6 +
7 + <Button
8 + android:id="@+id/ya_pay_bt"
9 + android:layout_width="wrap_content"
10 + android:layout_height="wrap_content"
11 + android:layout_alignParentLeft="true"
12 + android:layout_alignParentTop="true"
13 + android:layout_marginLeft="14dp"
14 + android:layout_marginTop="53dp"
15 + android:background="@drawable/public_sdk_self_ya_bt_selector"
16 + android:onClick="yaOnClick"/>
17 +
18 + <Button
19 + android:id="@+id/ya_submit_role_data_bt"
20 + android:layout_width="wrap_content"
21 + android:layout_height="wrap_content"
22 + android:layout_alignLeft="@+id/ya_pay_bt"
23 + android:layout_alignParentBottom="true"
24 + android:layout_marginBottom="75dp"
25 + android:background="@drawable/public_sdk_self_ya_bt_selector"
26 + android:onClick="yaOnClick"/>
27 +
28 + <Button
29 + android:id="@+id/ya_channel_center"
30 + android:layout_width="wrap_content"
31 + android:layout_height="wrap_content"
32 + android:layout_alignParentRight="true"
33 + android:layout_alignTop="@+id/ya_pay_bt"
34 + android:background="@drawable/public_sdk_self_ya_bt_selector"
35 + android:onClick="yaOnClick"/>
36 +
37 + <Button
38 + android:id="@+id/ya_switch_account_bt"
39 + android:layout_width="wrap_content"
40 + android:layout_height="wrap_content"
41 + android:layout_alignParentRight="true"
42 + android:layout_alignTop="@+id/ya_submit_role_data_bt"
43 + android:background="@drawable/public_sdk_self_ya_bt_selector"
44 + android:onClick="yaOnClick" />
45 +
46 + <Button
47 + android:id="@+id/forum_bt"
48 + android:layout_width="wrap_content"
49 + android:layout_height="wrap_content"
50 + android:layout_centerHorizontal="true"
51 + android:layout_centerVertical="true"
52 + android:background="@drawable/public_sdk_self_ya_bt_selector"
53 + android:onClick="yaOnClick" />
54 +
55 +</RelativeLayout>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 + android:layout_width="match_parent"
4 + android:background="@drawable/public_sdk_self_sdk_login_bg"
5 + android:layout_height="match_parent" >
6 +
7 + <Button
8 + android:id="@+id/ya_login_bt"
9 + android:layout_width="wrap_content"
10 + android:layout_height="wrap_content"
11 + android:layout_alignParentRight="true"
12 + android:layout_alignParentTop="true"
13 + android:layout_marginRight="28dp"
14 + android:layout_marginTop="21dp"
15 + android:background="@drawable/public_sdk_self_ya_login_bt_selector"
16 + android:onClick="yaOnClick" />
17 +
18 + <Button
19 + android:id="@+id/ya_enter_game_bt"
20 + android:layout_width="wrap_content"
21 + android:layout_height="wrap_content"
22 + android:layout_alignLeft="@+id/ya_login_bt"
23 + android:layout_below="@+id/ya_login_bt"
24 + android:layout_marginTop="28dp"
25 + android:background="@drawable/public_sdk_self_ya_login_bt_selector"
26 + android:onClick="yaOnClick"/>
27 +
28 +</RelativeLayout>
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<resources>
3 +
4 + <string name="app_name">SDK_Demo</string>
5 +
6 +</resources>
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type