タグ

2015年6月2日のブックマーク (4件)

  • Writing Android Libraries

    About the content This content has been published here with the express permission of the author. At some point as a developer you’ll consider writing a library, whether to perform a specific task, modularize your code-base, or perhaps just to reuse your code in an elegant way. But writing a library is tough work. Hosted by the Bay Android Dev Group, in this talk our own Emanuele Zattin shares som

    Writing Android Libraries
  • MediaPlayerでStreaming的な再生 その3

    前回、4つの方法を試そう、とありましたが、 最初に試した方法でなかなかな感じに仕上がりましたので 2以降は試していません。 さて、1の方法について書きます。 RandomAccessFileを使用して、ダウンロードファイルサイズのファイルを作成、書き込みを行う 一番最初に試した方法では、ファイルへの書き込み自体はうまくいってましたが、 肝心の再生が、setDataSourceを行った時点までしか再生されない結果になっていました。 ここで、考えたのが、setした時点のファイル情報から、シーク可能な範囲が決定されているのではないのか、ということです。 そのため、前のエントリでの1と4の方法を考えたわけです。 で、この方法では、RandomAccessFileクラスを利用して、あらかじめ音楽ファイルのサイズのファイルを作成して、順次書き込んでいこうという方法です。 色々とややこしいですが 以下に

  • TechCrunch | Startup and Technology News

    It’s not just instant-delivery startups that are struggling. Oda, the Norway-based online supermarket delivery startup, has confirmed layoffs of 150 jobs as it drastically scales back its expansion ambitions to…

    TechCrunch | Startup and Technology News
    petitviolet
    petitviolet 2015/06/02
    いろんな方面に圧力かけてそう
  • Androidバージョンの違いをCustomViewで吸収する - Qiita

    新し目のバージョンのAndroidにしか無いViewを使いたいが、xmlをバージョンで分けたりしたくない そこで、そういったViewをラップするCustomViewを作る 今回、ICS以上でTextureView、それ以下でSurfaceViewを使ったカメラを実装した リポジトリ https://github.com/petitviolet/MultiCamera 記事中のコードはこのリポジトリの一部抜粋となっています ライブラリとして使用 Githubにaarをアップロードしたので、以下のように記述するとライブラリとして使用できます repositories { maven { url "https://raw.githubusercontent.com/petitviolet/MultiCamera/master/repository/" } } dependencies { com

    Androidバージョンの違いをCustomViewで吸収する - Qiita
    petitviolet
    petitviolet 2015/06/02
    書いた