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
class WebViewClientEx extends WebViewClient { | |
private static final String URL_ADSENSE_SHOW_ADS_JS | |
= "pagead2.googlesyndication.com/pagead/show_ads.js"; | |
public android.webkit.WebResourceResponse shouldInterceptRequest(WebView view, String url) { | |
if (Build.VERSION.SDK_INT >= 15 | |
&& url.endsWith(URL_ADSENSE_SHOW_ADS_JS)) { | |
HttpURLConnection conn = null; | |
try { |
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
180 DEBUG I *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** | |
180 DEBUG I Build fingerprint: 'lge/geehrc_open_eu/geehrc:4.1.2/JZO54K/E97510b.1360741472:user/release-keys' | |
180 DEBUG I Revision: '11' | |
180 DEBUG I pid: 14422, tid: 14477, name: GAThread >>> com.alanjeon.twitplus <<< | |
180 DEBUG I signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000 | |
180 DEBUG I r0 74e4bb1c r1 ffffffff r2 00000008 r3 731a8065 | |
180 DEBUG I r4 731a8065 r5 731a8066 r6 00000000 r7 731a8065 | |
180 DEBUG I r8 00000020 r9 731a8065 sl 00000000 fp 74e4bb1c | |
180 DEBUG I ip 6f218da0 sp 74e4ba98 lr 6f2012f3 pc 40a99430 cpsr 000d0030 | |
180 DEBUG I d0 0000000000000000 d1 0000000000000000 |
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.alanjeon.okhttptest; | |
import com.squareup.okhttp.OkHttpClient; | |
import android.app.Activity; | |
import android.os.AsyncTask; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.View; |
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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.8.+' | |
} | |
} | |
apply plugin: 'android' |
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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.5.+' | |
} | |
} | |
apply plugin: 'android' |
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
/* | |
* Copyright 2012 Google Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
def getVersionCodeFromManifest() { | |
def manifestContent = file(android.sourceSets.main.manifest.srcFile).getText() | |
def matcher = (~"versionCode=\"(\\d+)\"").matcher(manifestContent) | |
matcher.find() | |
return Integer.parseInt(matcher.group(1)) | |
} | |
def getVersionCodeFromManifestLong() { | |
def manifestFile = android.sourceSets.main.manifest.srcFile | |
def xpath = XPathFactory.newInstance().newXPath() |
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
# Copyright (C) 2012 The Android Open Source Project | |
# | |
# IMPORTANT: Do not create world writable files or directories. | |
# This is a common source of Android security bugs. | |
# | |
import /init.${ro.hardware}.rc | |
import /init.usb.rc | |
import /init.trace.rc |
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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.6.+' | |
} | |
} | |
apply plugin: 'android' |
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
buildscript { | |
// android 빌드를 하기위해 플러그인 자체을 가져오기 위한 설정입니다. | |
repositories { | |
mavenCentral() | |
} | |
// plugin 자체는 maven 중앙 저장소를 통해 배포됩니다.( http://search.maven.org/ ) | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.6.+' | |
} | |
// android plugin 버전 0.6.+ 를 사용합니다. 배포된 버전중 +로 표시된 부분의 숫자가 가장 큰 버전이 사용됩니다. |