Android Studioがリリースされて以来、Gradleプラグインをしばらく使っていたものの androidプラグインがjavaプラグインと共存できないせいでいろいろとできないことがあった。 その一つが、カバレッジの計測。 4月末のAndroid Gradle Plugin 0.10.0のリリースでJaCoCoのサポートが追加され、ついにandroidプラグインでもカバレッジ計測ができるようになった。 http://tools.android.com/tech-docs/new-build-system 気づいて早速使おうとしたものの、上記ページに書かれている他はほとんど書かれているところがなくうまく動かず。。。 また、動かそうとしたのが単純なAndroidアプリケーションプロジェクトでなくライブラリプロジェクトであり、Eclipse互換の構造を保とうとしながら作っていたせいかもしれ
对不起,您请求的页面不存在、或已被删除、或暂时不可用 请点击以下链接继续浏览网页 》查看产品展示 》返回网站首页 manbetx·万博(中国)有限公司
最近、iPhoneよりAndroidのほうが性能がよくなった気がする――という話をネット関係者の間でちらほら耳にするようになった。Nexus5の発売やGoogle Nowの登場を皮切りに、「使いやすさ」が劇的にUPしているというのだ。 筆者はAndroidユーザーだ。しかしながら…。これは筆者の勝手なイメージだけれど、AndroidというとどこかiPhoneに押され気味な印象がある。 最新版Androidは具体的にどういった点がよくなったのだろう。そもそも、iPhoneにはないAndroidのよさって何…? そこで、グリー株式会社取締役執行役員であり、数年前からAndroidのヘビーユーザーだという荒木英士さんにAndroidのすごいところとどのように活用しているのかなどを聞いてみた! 使い始めたのは3年前 Androidユーザーになったキッカケ 今回、お話を伺ったグリー株式会社の荒木英士
AndroidのユニットテストフレームワークであるRobolectricのEclipseへの導入方法と簡単なテストを書いてみました。Home » Android • Test » 【Android】Robolectricでユニットテストを行う – 導入編 【Android】Robolectricでユニットテストを行う – 導入編 Posted in Android, Test By Yohei On 2013/12/02 概要 Androidのテストは、SDKに組み込まれたテストフレームワークがありますが、イマイチ使いづらい。 色々探しているとRobolectricというUnit Test用フレームワークがあるのを知りました。Junit 4が使えてたり、開発のスピードアップにもつながるのでRoblectricを使ってテストを使用と思いました。 Robolectricsを使用す
最近 Jenkins 上で Android アプリのテストを実行できるようにしたので軽くメモしておきます。 Jenkins実践入門 ?ビルド・テスト・デプロイを自動化する技術 (WEB+DB PRESS plus) 作者: 佐藤聖規,和田貴久,河村雅人,米沢弘樹,山岸啓,川口耕介出版社/メーカー: 技術評論社発売日: 2011/11/11メディア: 単行本(ソフトカバー)購入: 26人 クリック: 496回この商品を含むブログ (62件) を見る 更新履歴 2014-03-25: Android Gradle plugin 0.9.0 でテストのタスク名が変更されたことに合わせて内容を変更しました。 前提 Android アプリのビルドには Gradle を使用している (参考: Gradle Plugin User Guide - Android Tools Project Site)
さくらのVPS+Jenkins+github+rails3の続編。 ゴールは、githubにpushすると、さくらのVPSで動いているJenkinsがgithubから最新ソースひっぱってRobolectricのテストかけた上に、apkを作るところまで。 プロジェクトの作成 mavenプロジェクトにしてみた。 ユーザーの作成 以前作ったやつで兼用。 SSH key コレも兼用しようと思ったらダメだった。1リポジトリにつき1keyだそうで。 https://help.github.com/articles/error-key-already-in-use Once a key has been attached to one repo as a deploy key, it cannot be used on another repo. If you're running into this
羊さんが素敵なエントリを書いてくれてました「OverScrollでListViewをビョーンってする方法 - hdk_embeddedの日記 -」 でも、やっぱりフレームワークの ListView とか ScrollView で on/off できないってことはないんじゃないのかな?と思って調べてみました。 ScrollView の onTouchEvent メソッドのなかでは、ちゃんと overScrollBy メソッドが呼ばれています。 android.wdiget.ScrollView public boolean onTouchEvent(MotionEvent ev) { ... case MotionEvent.ACTION_MOVE: if (mIsBeingDragged) { // Scroll to follow the motion event final int a
Androidアプリを開発する上でこれはダメなUX、UIをGoogleのエンジニアが動画で詳しく紹介してくれます。 iPhoneアプリ開発にも通ずるところがあるので必見です。 要点をまとめておきます。 読み込み中のダイアログを頻繁に出さない 何度も出るとうざいし、読み込みをキャンセルできないと端末を叩き付けたくなります。 解決策としては、アクションバーの下にプログレスバーを出したり、コンテンツの表示部分だけにロード中のマークなどを出すようにする。 ボタンが小さすぎる 縦、横48dp以上が望ましいです。 ダイアログの「はい」「いいえ」ボタンの位置を標準に合わせてね フィードバックがない ボタンや選択できるエリアをタッチしたら何らかのフィードバックを。 選択部分の色を変える。pressとfocusedの状態を用意するとなお良いです。音もありかな。 UIデザインはこだわりすぎない やりすぎず、あ
数多のアプリが氾濫する Android アプリですが、過去に開発の経験がある方・現在進行形で開発中の方……数多くいらっしゃるかと思います。 そんな方に是非、ご覧頂きたいのが Google が Youtube にて公開している ANDROID DESING in ACTION UX アンチパターンです。ご存じの通りアンチパターンとは「べからず集」のことで「これは駄目だからこうして欲しい」といったことがわかりやすく紹介されています。 動画の内容としては、ダイアログの表示方法、ボタンの位置、タッチフィードバック……etc 開発者の方はそのまま知識を吸収することができますし、開発者ではない方も「へー」と思えること間違いなしです。
情報処理推進機構(IPA)4月11日、Androidアプリの脆弱性を学習したり、点検したりできるツール「AnCoLe(アンコール)」を公開した。IPAへの届出が多い脆弱性について7つのテーマで、実際に開発したアプリをチェックできる。 AnCoLeは統合開発環境のEclipseに組み込んで利用する。開発中のアプリを読み込ませると脆弱性や問題点を点検し、結果では該当箇所のソースコードを把握できる。該当箇所については対策方法を学習できるようになっている。再点検を行って問題が無い場合は終了する。 学習対象の脆弱性テーマは、「ファイルのアクセス制限不備」「コンポーネントのアクセス制限不備」「暗黙的Intentの不適切な使用」「不適切なログ出力」「WebViewの不適切な使用」「SSL通信の実装不備」「不必要な権限の取得」の7つ。いずれも情報漏えいやアプリの改ざんなどにつながる恐れがある。
AsyncTaskLoaderをテストしたい 非同期処理はテストしづらいですね。 AsyncTaskLoaderのテストをする際にはまったのでメモしておきます。いわゆる俺得エントリー 準備するもの レシピには以下のものが必要になります AsyncTaskLoaderのクラスを使った非同期処理があるAndroidプロジェクト テストしたいプロジェクトを対象にしたAndroid Testプロジェクト 諦めない心 今回利用するソースコードはこちら。 AsyncTaskSampleとAsyncTaskSampleTestの2つのプロジェクトを利用します 今回は、文字列から緯度経度を検索する非同期処理を行う簡単なAndroidプロジェクトを対象に、テストプロジェクトを作成します。AsyncTaskLoaderの拡張であるGeocoderLoaderは以下の通りです。 /** * 住所や施設名などから
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く