Skip to content

Instantly share code, notes, and snippets.

View xxnjdlys's full-sized avatar

xxnjdlys xxnjdlys

  • China Beijing
  • 19:35 (UTC +08:00)
View GitHub Profile
@xxnjdlys
xxnjdlys / ConfirmDialog.java
Created June 10, 2014 06:12
ConfirmDialog
package com.wukongtv.wkremote.client;
import android.app.Dialog;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
@xxnjdlys
xxnjdlys / Utils.java
Last active August 29, 2015 14:02
Get Current Device Ip.
package com.sadieyu.androidsocketclient;
import org.apache.http.conn.util.InetAddressUtils;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.util.Collections;
import java.util.List;
/**
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.android</groupId>
<artifactId>my-android-app</artifactId>
<version>0.1</version>
<packaging>apk</packaging>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example.android</groupId>
<artifactId>my-android-app</artifactId>
<version>1.0.0</version>
<packaging>apk</packaging>
<![CDATA[<font color=\'#007aff\'>我的应用</font>启动程序返回遥控页面]]>
/**
* configures the code driving the build.
* In this case, this declares that it uses the Maven Central repository,
* and that there is a classpath dependency on a Maven artifact.
* Note: This only affects the code running the build, not the project.
* The project itself needs to declare its own repositories and dependencies. This will be covered later.
*/
buildscript {
repositories {
mavenCentral()
Migrating Project To Android Studio Beta
===============================================
#### 为了部落 && 感受暴风城的力量 ...
It takes me lots of time to solve this problem and I hope this post will save your time.
Are you stuck trying to build your android project using Android Studio with Android L preview?
##### Here is my experience.
* First I downloaded the latest build of Android Studio Beta.
@xxnjdlys
xxnjdlys / gist:850bc66521b7c7543956
Created August 15, 2014 15:45
pass param into fragment
package com.wukongtv.wkremote.client;
import android.app.Dialog;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@xxnjdlys
xxnjdlys / setEnvironment
Created August 22, 2014 03:46
ubuntu set environment
export PATH=/path/to/dir:$PATH
source .bashrc
@xxnjdlys
xxnjdlys / gradle.properties
Created September 24, 2014 06:46
Make Android Studio build more faster.
## TODO: To make android studio build more faster ...
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Settings specified in this file will override any Gradle settings
# configured through the IDE.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# The Gradle daemon aims to improve the startup and execution time of Gradle.