Androidの電源管理ウィジェットのように無線LANやBluetoothの有効・無効を切り替える方法を紹介します。 無線LAN、WifiManagerについてはWiFiの情報を取得するでSSIDの取得方法など情報取得の方法を解説しています。。ソースコードはGoogleCodeのこちらのリポジトリより取得できます。 それぞれのデバイスの制御方法は以下の通りです 無線LAN:WifiManager Bluetooth:BluetoothAdapter 無線LANはセンサー類と同様にContext#getSystemService(WIFI_SERVICE);でManagerを取得して切り替えることが可能です。Bluetoothは無線LANとは異なり、BluetoothAdapter#getDefaultAdapter();によりデバイスの有無を確認できます(nullが返却されればBlueto
Android secret codes and hacks are fun and even useful if you need to troubleshoot some problems on your phone, but they are not as impressive at most other phones since the phones can already do pretty much everything but there are still some codes which are not always general knowledge. Obviously these codes are not really secret and don’t do anything amazing but since people commonly refer to t
トースト(Toast)の表示位置を変えてみる トースト(Toast)の表示位置を変えてみる. Toast toast = Toast.makeText(getApplicationContext(), "aaaa", Toast.LENGTH_LONG); toast.show(); 通常は、これだけで十分だが、位置を変えることもできる。 Toast toast = Toast.makeText(getApplicationContext(), "aaaa", Toast.LENGTH_LONG); toast.setGravity(Gravity.FILL_VERTICAL, 0, 0) toast.show(); toast.setGravity(Gravity.AXIS_CLIP, 0, 0); toast.setGravity(Gravity.RIGHT, 0, 0);
There are many questions on the web asking how to resize the VideoView to an arbitrary aspect ratio. Say the original video is 4:3 (width:height) and would like to change it to 16:9 (OK, I don't care the picture looks flattened). Many people use the Android built-in 'android.widget.VideoView' to play video and since it is derived from SurfaceView, people thus intuitively go on to use 'SurfaceView.
2010年8月、Kaspersky Lab が Android で動作する「Trojan-SMS.AndroidOS.FakePlayer.a」(以後、AndroidMalwareと呼称)を確認したと発表しました。このトロイの木馬を見てみたいと思い探したところ、contagiodump がそのトロイの木馬を提供していました(要パスワード)。ちょうどAndroid について色々と調べたいと思っていたので、このトロイの木馬を調べてみました。 Android はまだまだ分からないことばかりなので、間違い等があれば教えてください。 結論 「Trojan-SMS.AndroidOS.FakePlayer.a」は、特定の宛先に対して 3 通の SMS メッセージを送信するだけのアプリのようです。このトロイの木馬を調べることで、Android のデバッグ環境や Android SDK に触れましたが、デ
スゲー中二的な感じで。 用意するもの ○ ハックしたいapk ○ apktool ○ dex2jar ○ jd-gui 大まかな流れ 1. apkを展開して中からdexを取り出す 2. dex2jarでjarに変換 3. jd-guiでjavaのソースを入手し、書き換えたいところを探す 4. apktoolでデコードしたsmaliを、3で入手したJavaのソースを元に書き換える 以上。 smaliの大体の読み方は以下を参考 http://androidcracking.blogspot.com/2010/09/examplesmali.html そしてframework-res.apk書き換えたら文鎮化した、ということです。
[PR]株式会社セキュアスカイ・テクノロジーのAndroidアプリケーション診断 結論を先に書くと、Androidアプリケーションのリバースエンジニアリングは非常に簡単である。理由は大きく2つあり、一つはそれがJavaアプリケーションであること、もうひとつはAndroidがオープンソースであることだ(ただしJNI等を使ってC++やCのコードなどを呼び出している場合には、下層のモジュールの解析は通常のCアプリケーション同様に面倒ではないかと考えられる)。 Androidアプリケーションは.apkという拡張子でファイル単体で配布されるので、まずそれを用意する。筆者はAppMonsterというツールを使っている。このツールだと簡単にSDカードにapkファイルを保存してくれる。このエントリでは例としてテスト用のアプリケーションであるandroid1.apkを使用する。 apkファイルはZIP形式の
As you can see, the bottom row is filled with either 0 or 255, and 255‘s occur in series rather than one at a time. How often they appear and how long each dash is affects the resulting fire so you will play with this later. You can also seed several bottom rows rather than one. Next, for every row, starting from bottom- 1, bottom to top, you do the following: Take each cell in the row, left to ri
Sony Ericsson Products and services Smartphones Support Community Sign up It is possible to unlock the boot loader for certain releases of Sony Ericsson Android™ phone models from 2011 and onwards. Please note that you may void the warranty of your phone if you unlock the boot loader. Sony Ericsson can then no longer guarantee the full functionality of your phone, and will not be responsible for a
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く