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
package com.wukongtv.wkremote.client; | |
import android.annotation.TargetApi; | |
import android.app.Application; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.res.AssetManager; | |
import android.content.res.Resources; | |
import android.os.Build; | |
import android.support.multidex.MultiDex; |
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
package com.example.sadieyu.myapplication; | |
import android.content.Intent; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.widget.TextView; | |
public class MainActivity extends AppCompatActivity { |
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
apply plugin: 'com.android.application' | |
apply plugin: 'android-apt' | |
repositories { | |
mavenCentral() | |
maven { | |
url "http://112.124.19.81:8081/nexus/content/repositories/releases" | |
credentials { | |
username 'libuser' | |
password 'b813b813' | |
} |
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
#!/bin/bash | |
# build script for wkremote | |
####################################### | |
# abort script on any failure | |
set -e | |
# check if necessary tools exists | |
type zipalign >/dev/null 2>&1 || { echo >&2 "zipalign required but it's not installed. Aborting."; exit 1; } | |
type java >/dev/null 2>&1 || { echo >&2 "java required but it's not installed. Aborting."; exit 1; } |
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
#! /usr/bin/python | |
# coding=utf-8 | |
import zipfile | |
import shutil | |
import os | |
import sys | |
# in fact it's an empty file ,just use it for getting pids | |
src_empty_file = 'info/sycn.txt' | |
# create an file if not exist |
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
package com.wukongtv.wkremote.client.widget; | |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.graphics.Rect; | |
import android.graphics.drawable.Drawable; | |
import android.util.AttributeSet; | |
import android.widget.TextView; | |
import com.wukongtv.wkremote.client.R; |
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
09-30 10:40:22.684 6417-6417/com.wukongtv.wkremote.client E/AndroidRuntime: FATAL EXCEPTION: main | |
09-30 10:40:22.684 6417-6417/com.wukongtv.wkremote.client E/AndroidRuntime: Process: com.wukongtv.wkremote.client, PID: 6417 | |
09-30 10:40:22.684 6417-6417/com.wukongtv.wkremote.client E/AndroidRuntime: java.lang.RuntimeException: Unable to create application com.wukongtv.wkremote.client.MyApp: java.lang.SecurityException: ConnectivityService: Neither user 10189 nor current process has android.permission.ACCESS_NETWORK_STATE. | |
09-30 10:40:22.684 6417-6417/com.wukongtv.wkremote.client E/AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4556) | |
09-30 10:40:22.684 6417-6417/com.wukongtv.wkremote.client E/AndroidRuntime: at android.app.ActivityThread.access$1500(ActivityThread.java:151) | |
09-30 10:40:22.684 6417-6417/com.wukongtv.wkremote.client E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java |
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
package com.sadieyu.fragmenttest; | |
import android.content.Context; | |
import android.graphics.drawable.Drawable; | |
import android.util.AttributeSet; | |
import android.widget.ImageView; | |
/** | |
* Created by sadieyu | |
* Date: 15-8-18. |
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
package com.wukongtv.wkhelper.Utils; | |
/** | |
* Created by sadieyu | |
* Date: 15-8-10. | |
* Time: 下午2:20 | |
*/ | |
import android.graphics.Bitmap; |
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
package com.sadieyu.mixbitmapsdemo; | |
import android.app.Activity; | |
import android.graphics.Bitmap; | |
import android.graphics.Canvas; | |
import android.graphics.Matrix; | |
import android.graphics.PointF; | |
import android.graphics.Rect; | |
import android.graphics.drawable.Drawable; | |
import android.os.Bundle; |