アプリ 起動中 に バックライト を 点灯 したままにする

スライドショーアプリを作っているんですが
スライドショーが長くなるとバックライトが自動的に消灯して
真っ暗になっちゃいました。

これじゃ困るんで、バックライトを点灯したままにする方法を見つけました。

setKeepScreenOn()

というメソッドです。

ImageViewに端末内の画像をセットしていくことでスライドショーを実装してるんですが、
そのImageViewにsetKeepScreenOn()をセットします。

SlideView = (ImageView)findViewById(R.id.slideshow_view);
SlideView.setKeepScreenOn(true);

こんな感じ。

意外と簡単でした♪

カテゴリー: Android アプリ 関連 情報 | 2件のコメント

Keep the back light on running applications

I’m making Suraidoshoapuri
Backlight is automatically switched off and the length of the slide show
I felt the darkness.

This difficulty Nde Well, I found a way to leave the backlight.

setKeepScreenOn ()

Method is called.

ImageView I’m going to implement a slide show of images set to the terminal,
The ImageView to setKeepScreenOn () sets.

SlideView = (ImageView) findViewById (R.id.slideshow_view);
SlideView.setKeepScreenOn (true);

Like this.

♪ was surprisingly easy

カテゴリー: Android アプリ 関連 情報 | 3件のコメント

プログラマ、SEはもっと報われていい。

先日、「プログラマー起業のススメ」 という記事を書きましたが
その根底には
「プログラマやSEは、もっと報われていいのではないか?」
という思いがあります。

プログラミングとかを日常的にやっていると
なにかそれがあたりまえのようで
大したことでない感覚になってしまうこともあると思うのですが、
そんなことないですよね?

「これは大した特殊技能だ」

と、ふとした瞬間に思い返したりします。

だって、今日のIT化した社会を支えているのは
そういう特殊技能を持っている人たちなんですから。
(もちろん、他の面で支えている方たちもたくさんいますが。)

でも、どうも、そういう人たちは
社会の中では安く買いたたかれている・・・。

そんな気がしてしまうのが、淋しいところです。

会社が好きで、会社のために働きたいと思っているのならいいですが
そうではなく、不満を感じながら我慢しているのであれば
そーとーもったいないと私は思います。

元ライブドアのホリエモンも
Mixiの笠原さんも
2ちゃんねるのひろゆき氏も
GREEもOKWAVEもカカクコムも
もとはといえば一人の技術者が作り上げたサイトです。(参考

そんなサイトがいまや世の中に大きな影響を与えている。

プログラマやSEの人たちには
そんなチカラがある思うのです。

あとはそれをビジネスに乗せるスキルだけ。
技術をお金に変える企画創造力があればいいんです。

企画創造力が欲しければ、
ぜひこの方↓に相談してみてください。

天職クリエーター野本愛貴さん
http://ameblo.jp/fukugyou-shindan/

あなたも気づいていない、あなたの可能性を引き出してくれますよ。

無料でスカイプ相談に乗ってくれる
「天職オリエンテーリング」 もやってるので
ぜひ活用してみてください。

(「アンドロイド情報局から来ました」と言えば、突っ込んで相談に乗ってくれると思いますw)

カテゴリー: 雑記 | 1,166件のコメント

Programmers, SE has been paid more good.

The other day, “programmer advice of entrepreneurship”, wrote an article that
The underlying
“Programmers and SE, or I might have paid more?”
I have it.

Regularly and doing programming or
It is obvious that something like
I think sometimes they feel it is not a big deal,
I do not I do that?

“It’s a great special skills.”

And the unexpected can recall at the moment.

Because of today’s IT community is supporting the 化Shita
I’m from people who have those special skills.
(Of course, there are many who have supported us in other ways.)

But somehow, these people are
In society is low 買Itataka.

But I feel that they are just lonely.

I like the company, but I think that if you work for a company
Instead, be patient if you are dissatisfied with
ー shame and I think that so.

Even former Livedoor Horiemon
Mr. Kasahara Mixi
Mr. Yannerunohiroyuki 2 Audio
GREE can also OKWAVE also Kakakukomu
Site originally created by engineers who say that. (Reference)

Have a significant impact in the world is now such a site.

Programmers and the people of the SE
I think it has the power to do.

Then you just put the skills that business.
I wish I had money, creativity, planning and technology change.

If you want a creative project,
↓ please consult this people experience.

Nomoto Megumi’s creative vocation 貴

http://ameblo.jp/fukugyou-shindan/

You also have not noticed, I will pull out your potential.

Contact us on Skype for free
“Orienteering calling” I’m paving
Please take advantage.

(“I’m from Andoroidonabi” Speaking of, we’ll take in-depth consultation w)

カテゴリー: 雑記 | 3件のコメント

Android アプリ 講座 オープン

Androidアプリの講座が
e-副業大学INNCというウェブスクールでオープンしました。

INNCは、
もともとアフィリエイトやドロップシッピングで稼ぐ方法を教えてくれるスクールなんですが、今後はそれに限らず副業の総合大学としてどんどん新しい講座(学科)をオープンしていくようです。

そのリニューアル第一弾として
・Androidアプリビジネス講座
・動画マーケティング講座
・PPCマーケティング講座

の3つが本日オープンしました。

Android講座は、アプリの作り方だけでなく、
ビジネスとしてどう発展させていくかということも
更新型で追加していくそうです。

いまなら初期費用・初月会費無料なので
興味のある方はぜひどうぞ。

e-副業大学INNC

カテゴリー: Android 関連情報 | 6件のコメント

Android Apps Course Opens

Android Apps courses
e-University web school that opened in INNC sideline.

INNC the
I’m at school will tell you how to make drop shipping and affiliate originally rapidly as new courses will sideline universities not only in it (department) seems to continue to open.

As the first such renewal
Apuribijinesu course · Android
* Video Marketing Course
· PPC Marketing Course
The three opened today.

Android courses, as well as how the app
Even if he or she will evolve as a business
Yes we add type update.

Free monthly dues, so now it’s first initial cost
If you are interested, please do.

e-university side INNC

カテゴリー: Android 関連情報 | 6件のコメント

Android の アニメーション サンプルコード

Androidで出来るアニメーションをまとめてみました。

※ivはImageViewインスタンスです。

◆移動
// TranslateAnimation(float fromX, float toX, float fromY, float toY)
translate = new TranslateAnimation(0, 30, 0, 30);
// 変化時間を3000ミリ秒にセット
translate.setDuration(3000);
// 3回繰り返す
translate.setInterpolator(new CycleInterpolator(3));
// アニメーション開始
iv.startAnimation(translate);

◆透明化
// AlphaAnimation(float fromAlpha, float toAlpha)
alpha = new AlphaAnimation(1, 0);
// 変化時間を5000ミリ秒にセット
alpha.setDuration(5000);
// 3回繰り返す
alpha.setInterpolator(new CycleInterpolator(3));
// アニメーション開始
iv.startAnimation(alpha);

◆回転
// RotateAnimation(float from, float to, float pivotX, float pivotY)
rotate = new RotateAnimation(0, 360, 150, 150);
// 変化時間を3000ミリ秒にセット
rotate.setDuration(3000);
// 3回繰り返す
rotate.setInterpolator(new CycleInterpolator(3));
// アニメーション開始
iv.startAnimation(rotate);

◆拡大縮小
// ScaleAnimation(float fromX, float toX, float fromY, float toY, float pivotX, float pivotY)
scale = new ScaleAnimation(1, 2, 1, 2, 150, 150);
// 変化時間を3000ミリ秒にセット
scale.setDuration(3000);
// 3回繰り返す
scale.setInterpolator(new CycleInterpolator(3));
// アニメーション開始
iv.startAnimation(scale);

◆複合
// アニメーションセットの初期化
mix1 = new AnimationSet(true);
// 回転をセット
mix1.addAnimation(rotate);
// 拡大縮小をセット
mix1.addAnimation(scale);
// 2回繰り返す
mix1.setInterpolator(new CycleInterpolator(2));
// アニメーション開始

このサイトに動画とサンプルコードがあります。

カテゴリー: Android アプリ 関連 情報 | 1件のコメント

Android Animation Sample Code

I can look together Android animations.

The ImageView instance ※ iv.

◆ Move
/ / TranslateAnimation (float fromX, float toX, float fromY, float toY)
translate = new TranslateAnimation (0, 30, 0, 30);
/ / Set the change time 3000 ms
translate.setDuration (3000);
/ / Repeat 3 times
translate.setInterpolator (new CycleInterpolator (3));
/ / Start animation
iv.startAnimation (translate);

◆ transparency
/ / AlphaAnimation (float fromAlpha, float toAlpha)
alpha = new AlphaAnimation (1, 0);
/ / Set the change time 5000 ms
alpha.setDuration (5000);
/ / Repeat 3 times
alpha.setInterpolator (new CycleInterpolator (3));
/ / Start animation
iv.startAnimation (alpha);

◆ rotation
/ / RotateAnimation (float from, float to, float pivotX, float pivotY)
rotate = new RotateAnimation (0, 360, 150, 150);
/ / Set the change time 3000 ms
rotate.setDuration (3000);
/ / Repeat 3 times
rotate.setInterpolator (new CycleInterpolator (3));
/ / Start animation
iv.startAnimation (rotate);

◆ Zoom
/ / ScaleAnimation (float fromX, float toX, float fromY, float toY, float pivotX, float pivotY)
scale = new ScaleAnimation (1, 2, 1, 2, 150, 150);
/ / Set the change time 3000 ms
scale.setDuration (3000);
/ / Repeat 3 times
scale.setInterpolator (new CycleInterpolator (3));
/ / Start animation
iv.startAnimation (scale);

◆ Complex
/ / Initialize animation sets
mix1 = new AnimationSet (true);
/ / Set rotation
mix1.addAnimation (rotate);
/ / Set scaling
mix1.addAnimation (scale);
/ / Repeat 2 times
mix1.setInterpolator (new CycleInterpolator (2));
/ / Start animation

There are videos and sample code on this site.

カテゴリー: Android アプリ 関連 情報 | 29件のコメント

the user data image is used by another emulator. aborting

アプリ開発中にエミュレーターを起動したら
急に
the user data image is used by another emulator. aborting
というエラーが出て、アプリが起動しなくなった。

どうも
「すでにほかのエミュレーターで起動してるよ!」
ということらしい。

Xperiaもつないで実機確認もしていたのでそのせいかと思い、
Xperiaを切断してみても同じエラー。

しかたないのでエミュレーターを再起動したら直った。

大したエラーじゃなくてよかったけど、
エミュレーターの起動はすごく時間がかかるので
あんまり頻発しないでほしい(^_^;)

カテゴリー: Android アプリ 関連 情報 | 5件のコメント

the user data image is used by another emulator. aborting

After starting the emulator in the Application Development
Suddenly
the user data image is used by another emulator. aborting
Out error, the application does not start.

Somehow
“I’m already running another emulator!”
Story goes.

Maybe because I thought it Xperia was also confirmed in the actual Motsunai,
Try the same error Xperia cut.

After restarting the emulator cured nothing for it.

I was good, not much error,
Since starting the emulator very time-consuming
Do not get too frequent (^_^;)

カテゴリー: Android アプリ 関連 情報 | 10件のコメント