2015年9月26日土曜日

android studioでandroidmanifest.xmlの編集

android studioでandroidmanifest.xmlの編集をする際、eclipseではGUIの画面がありましたが、andorid studioにはありませんでした。

beta版でなくなっても機能が付かなかったので、機能を付けるつもりはないのかな。コード補完で十分いいでしょう。とも思いますが、敷居はちょっとでも低いほうがいいなと思うのです。本当に機能が無いのかな?つける予定もないのかな?つけないポリシーがあるのかなと結構探してしまいました。

2015年6月14日日曜日

android studioで起動時に文字コードのエラーが出る

android studioで起動時してプロジェクトを読み込んだ直後に文字コードのエラーが出る。

>Warning:The project encoding (windows-31j) does not match the encoding specified in the Gradle build files (UTF-8).
>This can lead to serious bugs.
><a href="http://tools.android.com/knownissues/encoding">More Info...</a><br><a href="open.encodings.settings">Open File Encoding Settings</a>

File->Settings->Editor->File Encodings

すべてUTF-8でそろえる。

Project Encoding windows-31jからUTF-8へ変更
下の、Default Encoding for properties files: も UTF-8へ変更。
Transparent native-to-ascii conversion もチェックを入れる。

android studioで英語のスペルチェックをオフにする

android studioで英語のスペルチェックをオフにする方法です。

file->settings->editor->language injections->spelling->dictonaryタブ->dictonarysのチェックを全部外す

関数などの名前で省略形などを使っているとでてしまうので、無効にします。


でも、作法にあっていないから出るのであって、そのままで、ワーニングを出さないようにするようにすべきかと思いつつ保留。です。
コーディング上のワーニングは全部つぶさないと、綺麗なソースコードではなくてバグを誘発するので、ぎゃくにスペル違いはいいんじゃないのとおもったので、ワーニングを出さないようにしてみました。


android studioでGUIの画面が出ない

android studioでGUIの画面が出ない。

> Rendering Problems This version of the rendering library is more recent than your version of >Android Studio. Please update Android Studio

androidのアイコンの横に22という数字が出ているので、下三角を押して20などを選ぶ。

androidのバージョンが新しすぎて対応していないのかな。




2015年6月13日土曜日

Excel sheet can not be deleted

When I try to delete an Excel sheet, I right-click but I can not delete it because I can not select it.
Sheets can not be deleted if you are using the book sharing feature, Disable book sharing once. Review-> Change-> Book Sharing

エクセルのシートが削除できない

エクセルのシートを削除しようと右クリックするが削除が選べず削除することができない。

ブックの共有機能を使っているとシートは削除できないので、
ブックの共有を一度無効にする。

校閲ー>変更ー>ブックの共有

androidの開発でエミュレーターが動かない

android studioからandroidエミュレーターを起動してデバックしようとすると以下のメッセージが出て起動しない。

>emulator: ERROR: x86 emulation currently requires hardware acceleration!
>Please ensure Intel HAXM is properly installed and usable.
>CPU acceleration status: HAX kernel module is not installed!

eclipse + adtでもたぶんでるかな。


android sdk managerのpackagesの中の一番下、
intel x86 emulator accelerator(HAXM installer)にチェックを入れてインストールする。

---
それでもダメな場合

tools->android->avd managerからdevice configration画面を出して
ABIが「x86」ではなく「armeabi-v7a」を選ぶ。

2015年5月31日日曜日

Windows 8.1 / Windows 8でOSのスタートアップへプログラムを登録する

エクスプローラーで下記のフォルダを開いてショートカットを置く。

C:\Users\[ユーザー名]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

スタートメニューが変になって、さらにスタートアップを探して
そこから右クリックでフォルダを開こうとしたら
スタートアップがなくての状況です。

全体は↓かな。未確認。
C:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

マイクロソフト、ビルゲイツ氏がいなくなってから不発です。

2015年5月2日土曜日

daemon toolsで仮想ドライブが追加できない

リモートデスクトップからdaemon toolsを使っていたら、仮想ドライブが追加できませんでした。
原因はwindowsのグループポリシのデフォルトが無効になっていたためでした。

エラーメッセージ「仮想デバイスが追加できません。」

gpedit.msc実行
 コンピューターの構成
  管理用テンプレート
   システム
    リムーバブル記憶域へのアクセス

「すべてのリムーバブル記憶域:リモートセッションでの直接アクセスを許可する」有効にする。