Ken MorishitaData Scientist, Machine Learning Engineer, Software Developer
はじめまして。 6/1より入社いたしましたAndroidエンジニアの釘宮です。よろしくお願いいたします。 今日はAndroidの設計について語ってみようと思います。 その前に 「良い設計とはなにか」という議論が「正義とはなにか」という議論のようにいつまでたっても結論がでないのは、環境やチームメンバのスキルセット、ステークホルダーによって目指すべきゴールが変わるためだと考えます。 つまるところ、設計に正解はありません。 そのため以下で話すことは、「これが設計の正解だ!!」というわけではなくて、「こういう設計の仕方するとうまくいくっぽい」くらいのノリです。 あと、特にMVCとかDDDとか人によって解釈のズレが起きやすいところなどは、冗長になるのを嫌って自分の解釈で言い切っています。ご了承ください。 設計の目的について ハードルが下がったところで、早速。 まず設計の目的ってなんでしょうか? この
よく使うものメモです。 全般情報 Dashboards | Android Developers 公式のバージョンシェア。毎月5日くらいに更新される。 デザイン Design | Android Developers 公式のデザインガイドライン。各項目ごとにかなり細かく解説してある。 Downloads | Android Developers ↑内にあるデザインパーツ集。 便利なんだけど地味すぎて知らない人いそう。 特にActionBar用の画像とかandroid.R使うよりこっち使った方が捗る。 NavigationDrawer用の三本線とかもここにある。 Android Asset Studio Android用の色々な画像やStyleなどが簡単に生成出来る。めちゃくちゃ便利。 Android Niceties ナイスなデザインのAndroidアプリを紹介してるっぽいサイト。参考にな
関連記事 この記事も古くなりましたね。執筆時の実装バージョンKotlin 0.12から1.0.2へのアップグレード対応をした際の知見を記事にしました。 Kotlinを実案件で使いました 先日、僕の勤め先のQonceptは『リアル鬼ごっこ』×富士急ハイランド 巨大遊園地からの逃走を開発、リリースしました。 富士急ハイランドで実際に鬼ごっこをする企画で、一般のお客さんがスマホで専用アプリを使いながらクリアを目指します。園内には鬼役のスタッフや、ゲーム進行に関わる設備などがあり、これらとスマホがiBeacon(BluetoothLE)を用いて連動することで、ダメージを受けたり、アイテムを使用したり、クイズを解いたりなどします。 Qonceptの開発範囲は、iOSアプリ(とAppleWatchアプリ)、Androidアプリ、サーバサイドでした。 受注確定となった時点で、残り日数と開発者リソースに対
2. 自己紹介 • 名前:尾古 豊明(@patorash) • 愛称:パトさん • シルバー聖闘士(5月末にRuby Silver取得) • ここのところ、Railsばっかりやってますが 実はAndroidアプリも作ってます。 • 最近、Railsで計画停電情報 関電バージョン作 りました。(http://teiden-plan.herokuapp.com) • 好きなRubyのメソッドは instance_methods, instance_variablesです。 • でも、よく使うのはeachやmap。 3. 告知 • 第2回メタプログラミングRuby読書会 http://atnd.org/events/29989 • 日時:8月4日(土) • 場所:パトランド(@patorashの家) • やること: – 本の音読 – 写経 • 懇親会は – パトランド名物:たこ焼き
まあだいたい Rubotoを使ってRubyでAndroidアプリをかく を追体験しただけなんですが。 まず動機ですが、別にRubyでAndroid appを書きたいわけではないです。やりたいのことは以下のふたつ。 Ruby REPLからAndroid appを操作することと Android appのテストをRubyで書くこと 特にテスト。文字列操作とかリスト操作はRubyのほうが得意なので、得意なことを得意な言語でやれば効率いいんじゃないかと思うわけです。 ruboto setupがコケる homebrewでandorid sdkをインストールしている場合、ruboto setupがコケます。 $ ruboto setup --target android-19 Java runtime : Found Java Compiler : Found Apache ANT : Found An
こんにちは、id:hogelog(会員事業部 小室)です。 現在自分が開発しているAndroidアプリのプッシュ通知の実装に Amazon Cognito, Amazon SNS, Amazon DynamoDB を使ったらアプリコード(と、AWSの設定)だけで機能が実現できてしまい、予定していたサーバサイド実装がまったく不要となったのでその知見を共有します。 アプリプッシュ通知の要件 今回実装したプッシュ通知の要件は以下です。 プッシュ通知を許可したユーザ全員に共通した内容を一斉通知 通知はバッチプログラムから週に数回程度 年内には一万ユーザぐらいに利用されること目標 GCMトークンはデータストアに記録しておく 将来的にはA/Bテストなどをおこなうことも可能なように 当初はこれらの機能を実現するため、適当なRailsアプリでGCMトークンを受け取ってうまいことあれこれするAPIを実装しよ
Delphi、Xamarin、Monaca、caede、本当に使えるモバイル対応のクロスプラットフォーム開発環境はどれか?(前編) CROSS 2015 iOSやAndroidなどに対応した4種類のクロスプラットフォーム対応開発ツール、Delphi、Xamarin、Monaca、caedeの関係者が壇上に並び、それぞれのツールの優位性や弱点について語り合うセッション「本当に使えるCROSSプラットフォーム開発環境はどれだ! ガチンコ対決」が、1月29日に開催されたイベント「CROSS 2015」で行われました。 クロスプラットフォーム開発ツールは、例えばVisual StudioやXcodeといったベンダ純正のツールと比べると比較的地味な存在ですが、モバイルアプリケーション開発においてクロスプラットフォーム対応のニーズは高く、注目すべきソフトウェアです。 セッションには各ツールの関係者が登
タッチイベントがうまく流れてこなくて困ったり、自力でイベントをルーティングしたりするときに困ったりと、ちょこちょことタッチイベントについて勉強したのでまとめておきます。 主にタッチイベントがどう流れてどう止まるかなどについて調べています。 イベントの流れを理解するには以下の資料がかなり参考になりました。 Mastering the Android Touch System (PDF) 毎度のことながら、間違いがありましたらご指摘頂ければ幸いです。 タッチイベントを処理する主要なメソッド 実際の流れを理解する前に、主要なメソッドを三つ紹介しておきます。 メソッド名 概要 onTouchEvent() (View) タッチイベントに対して何かを処理するメソッド。setOnTouchListener() で登録した listener はこのタイミングで呼び出される。 onInterceptTou
この記事はAndroid Advent Calendar 2014の14日目です。 Androidアプリケーション開発をiOSのそれと比べると、SDKのソースコードが公開されていることがアドバンテージの一つになると思います。自分は半年ほど前から、開発時に時々SDKのソースコードを参照するようになり、それからSDKへの理解が深まって、開発効率が高まったと感じています。 この記事では、自分がSDKのソースコードを読む際に使っている方法をまとめます。たぶんよく知られている方法ばかりです。 1. ブラウザで見る GrepCode 特定のクラス名でぐぐっていたりすると、GrepCode というサイトが時々引っかかります。Javaのソースコードを集めて検索可能にしてくれているサイトですが、ちょっとSDKのコードを読みたいというときは、このサイトで読むのがおすすめです。 Android SDKの各バージ
モバイルでゲームは少人数開発へ回帰するのか。「TERRA BATTLE」開発座談会レポート。え,プログラマも各デザイナーも1人ずつ? ライター:大陸新秩序 2014年10月9日にリリースされ,1か月経たずに100万ダウンロードを達成したミストウォーカーの新作RPG「TERRA BATTLE」(iPhone / Android)。同タイトルは,坂口博信氏や植松伸夫氏といった,日本のゲーム業界におけるビッグネームが関わっていることで注目を集め,またゲーム自体も挟み将棋をベースにしたシンプルなルールである半面,属性の相性や連鎖をきちんと考慮しないとクリアできない奥深さで高い評価を得ている。 そんな「TERRA BATTLE」が,Unityを使って開発されたことは,これまであまり報じられていない。おそらく本稿を目にして初めて知ったという人も多いのではないだろうか。 4Gamerでは,「TERRA
今回は新規プロジェクトを作成する際に、毎回同じパッケージ構成をしている、毎回同じファイル作ってるという方向けの投稿です。 少しだけ裏技チックな手法を使います。 前置き github上で最近★を集めていてAndroidのベストプラクティスについ触れているandroid-best-practices をご存知でしょうか? ここではpackage構成は下記が良いと言っています。 com.futurice.project ├─ network ├─ models ├─ managers ├─ utils ├─ fragments └─ views ├─ adapters ├─ actionbar ├─ widgets └─ notifications 私はこれに少しカスタマイズしたものを採用しております。 少しだけ説明すると、MVC + 3層レイヤーをAndroidで構築すると下記のようになるとい
本出すぞ!!! cocos2d-xではじめるスマートフォンゲーム開発 [cocos2d-x Ver.3対応] for iOS/Android 作者:三木 康暉技術評論社Amazon こんにちは。[Twitter:@giginet]です。なぜか「本書かない?」って言われて、気付いたら本を出版していた。 この度、『cocos2d-xではじめるスマートフォンゲーム開発 [cocos2d-x Ver.3対応] for iOS/Android 』という本を書かせて頂くことになりました。 どんな本? 「cocos2d-x」というゲームフレームワークの入門書です。 cocos2d-x を使ってiOSとAndroid向けのゲーム3本を開発します。 本書は入門書の位置づけなので、「プログラミングの心得はあるけど、ゲーム開発・スマートフォン開発は全くの素人!」という方でもいろいろなゲームを実装できるように執筆
特に結論はないです。本当に分からないので。 ソケットレベルまで踏み込むと、途端に面倒になってどのライブラリを使っても手に負えませんし、単にGETとかPOSTとかする分には正直どれ使ってもそこまで変わらない気がしてます。 それより自己署名証明書の検証を無視して通信を行うと端末が爆発するライブラリが必要だと思います。 Apache HTTP Client みんなお馴染みDefaultHttpClient。色々なライブラリがあるけど、最終的にはここに行き着いていることが多いです。 しかし「Apache HTTP Clientとは何なのか」、という説明はあまり見ない気がします。 自分も「Apacheソフトウェア財団のトップレベルプロジェクトとして運用されている、RFCを満たす実装を目指したJava向けのHTTPインターフェース」という超ふんわりとした認識しかないです。 かなり巨大なライブラリで、全
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く