Profile

Cover photo
Kang Lu
Works at Aldiko
Attended Shanghai Jiao Tong University
Lives in Shanghai
6,569 followers|405,110 views
AboutPostsPhotosReviews

Stream

Kang Lu

Shared publicly  - 
 
 
Google Keep just got a little easier. If you add new images with text in Keep, search now finds printed text within those image so you can find what you're looking for even quicker. A new 'Trash' view in your Keep drawer comes in handy in case you delete something by mistake (where you'll now have an extra 7 days before it's permanently gone). And for the list-makers, your checked items now automatically move to the bottom of your lists so you can easily see what still needs to get done.

Try Keep today on the web (http://goo.gl/L7FdQJ), on Android (http://goo.gl/9VQ8Uv) and on Chrome (http://goo.gl/LYctiG).
1
Add a comment...

Kang Lu

照片墙(Photo Wall)  - 
1
Add a comment...
Sting Chen was tagged in Jessica Gu's photo.

Kang Lu

Shared publicly  - 
1
Leon Shawn's profile photo
 
sting笑的好萌。
 ·  Translate
Add a comment...

Kang Lu

Shared publicly  - 
 
Don't ask Google, girls know everything.
7
1
Kang Lu's profile photo
Add a comment...

Kang Lu
owner

Android  - 
 
 
The   #Wear   #Android  emulator is tiny (130 MB) but still there are few ~hidden secrets~. Here's what I found so far:

# adb shell am start a android.settings.SETTINGS
This will bring you the Settings activity {power off, airplane mode, reset to factory and information} - clicking 10 times on the build number makes you a "developer" :)

# adb shell am start -a com.google.android.clockwork.action.TIMER -n com.google.android.wearablepreview.app/com.google.android.clockwork.home.timer.SetTimerActivity
This will popup a countdown timer - set it for X minutes, and watch it expire (or delete, or reset it).

# am start -a android.speech.action.RECOGNIZE_SPEECH -n com.google.android.wearablepreview.app/com.google.android.clockwork.home.speech.SpeechIntentApiActivity
This will listen for voice commands - can anybody with a mic confirm if it works?

# am start -n com.google.android.wearablepreview.app/com.google.android.clockwork.home.incomingcall.PhoneActivity --el call_time_ms 0 
Pops-up an "unknown caller" dialog for a fraction of a second... you'll get the idea of how receiving calls looks like.

Oh, and the icons at the bottom of the image are from the main application: a lot of weather and call related icons there.

Share your Wear findings !! (:
1
Add a comment...
Have him in circles
6,569 people

Kang Lu
owner

HTML5  - 
 
 
Chromium has just hit version 36 and as always, here are some miscellaneous facts about this cool number from Wikipedia: 

- 36 is the atomic number of krypton.
- The sum of the integers from 1 to 36 is 666.
- There are 36 inches in a yard.
- 36 is the number of characters required to store the display name of a UUID or GUID.
- 36 is the ASCII code for the dollar symbol.

Source: https://codereview.chromium.org/218183002
1
Add a comment...
 
 
Today’s #AndroidDev #Protip from +Stephan Linzner is about improving Gradle build performance.

Gradle, the new build system for Android projects, has been designed for scalability and efficiency. However, there are a few things you, as a developer, can do to significantly improve the performance of Gradle.

1. Incremental Builds. Gradle supports full incremental builds out of the box, which means that it only runs tasks that are not up to date and skips others. Gradle looks at the inputs and outputs of each task to see if any build artifacts have changed and only runs a task if necessary—this significantly increases build performance.

2. Gradle Daemon. [0] The Gradle daemon is a great way to speed up your builds, which is extremely useful when you have to build your application repeatedly. The basic idea is to fork a “daemon” process [1] which can be reused on subsequent builds, rather than launching a new JVM on every build.

The good news is that Android Studio always keeps a Gradle daemon around for you. However, if you build from the command line, you need to tell gradle that you want to use the Gradle daemon. You can use command line arguments [2] to interact with Gradle daemon, but the easiest way is to add a daemon property to your gradle.properties file:

org.gradle.daemon=true

It is also good practice to set this property in $HOME/.gradle/gradle.properties rather than putting it in project root. The reasoning behind this is that you want to avoid using the Gradle daemon on your build servers, where startup time is less important than memory consumption.

3. Parallel Project Execution. [3] Parallel execution can make a significant difference if you are building a very complex project with many sub-projects (for example, Android library projects). Gradle has an in-development Parallel Mode which enables parallel execution of sub-projects that are decoupled. “Decoupled” means that these projects do not access each other's project model. Cross project configurations are a good example of this. Any use of the allprojects {} and subprojects {} closures will result in the projects being coupled. Android Studio does not use Parallel Mode by default, but you can enable it in Preferences > Compiler > Gradle.

Again, if you are using the command line you need to explicitly tell Gradle that you want to use Parallel Mode. To enable it, add the parallel property to your gradle.properties file:

org.gradle.parallel=true

4. Disable pre-dexing on build servers. When running your build on a build server, you may always want to start with a clean build. But this means that you cannot take advantage of Gradle’s incremental nature. To improve incremental builds, the Android Gradle Plugin uses an optimization that pre-dexes all dependencies at first compilation. While this optimization makes subsequent builds faster it makes the first build slower. As this is not what you want, it makes sense to disable pre-dexing to improve performance by setting the preDexLibraries property of the Android Gradle Plugin  to false [4]:

project.android.dexOptions.preDexLibraries=false

For more details on how to disable pre-dexing only on your build server, refer to this tip from +Xavier Ducrohet  goo.gl/2G6hcj

With Android projects becoming increasingly complex and modular development practices becoming more popular, build performance is critical. Only a few seconds per build can make a big difference in productivity.

Do you have any other tips and tricks? Please let us know in the comments.

[0] Gradle Daemon - http://goo.gl/fVoeGC
[1] This process will automatically expire after 3 hours
[2] Gradle Command Line - http://goo.gl/UrDjOA
[3] Parallel Project Execution - http://goo.gl/QuAPoK
[4] Advanced Build Customization - http://goo.gl/3QiCil

#AndroidTools
1
Add a comment...

Kang Lu

照片墙(Photo Wall)  - 
 
 
Don't ask Google, girls know everything.
1
Add a comment...
People
Have him in circles
6,569 people
Work
Occupation
Create top-notch ebook reading application
Employment
  • Aldiko
    present
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Shanghai
Story
Tagline
I look forward to tomorrow!
Introduction
Bragging rights
Build a service that helps a lot of google reader users to realtime sync shared items to twitter
Education
  • Shanghai Jiao Tong University
    Mathematics, 2006 - 2010
  • Shanghai High School
    2003 - 2006
Basic Information
Gender
Male
Looking for
Friends, Networking
Apps with Google+ Sign-in
广东点心,还不错
Food: GoodDecor: GoodService: Good
Public - a year ago
reviewed a year ago
三文鱼寿司和金枪鱼寿司很赞,比一般的寿司店都好
Food: ExcellentDecor: Very goodService: Good
Public - a year ago
reviewed a year ago
Public - 2 years ago
reviewed 2 years ago
27 reviews
Map
Map
Map
浓汤煲翅不错
Food: Very goodDecor: Very goodService: Very good
Public - a year ago
reviewed a year ago