2012-03-08 4 views
0

私はアンドロイドの初心者です。私はアンドロイドの基礎を知っていて、私はライブ壁紙アプリケーションを開発しています!私はdeveloper.android.comに行きました。しかし、私はthroを持っていません ' 私はプロジェクトでこれを行う方法を私に示唆すれば、私は本当に感謝するだろう!ライブ壁紙にタッチイベントを追加することはできません

答えて

0

android.service.wallpaper.WallpaperService.Engine

onTouchEvent() - called when the user performs touch-screen interaction with the window that is showing the wallpaper 
onCommand() – called to process a command 

単にonTouchEvent()を実装し、タッチイベントに反応します。最後に、アプリケーションはライブ壁紙に任意のコマンドを送信できます。現在、唯一の標準的な家庭用アプリケーションのライブ壁紙のonCommand()方法にコマンドを送信します。

は、次のチュートリアル

How a live wallpaper works

の表情を持っています
関連する問題