Google Play Services マイグレーションで「The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.」

 

Froyo を捨てて、Google Play Services を使う。

Getting_Started_-_Google_Mobile_Ads_SDK_—_Google_Developers

機能はまともに動いているようなのだが、こんなログ。

W/ResourceType﹕ getEntry failing because entryIndex 133 is beyond type entryCount 3

W/ResourceType﹕ Failure getting entry for 0x7f0a000d (t=10 e=13) in package 0 (error -213483947)

E/GooglePlayServicesUtil﹕ The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

気持ちが悪いので、調べる。

だいぶ盛り上がっているようでしたが、どれも該当しないハマりコース。

android_-_LogCat_message__The_Google_Play_services_resources_were_not_found._Check_your_project_configuration_to_ensure_that_the_resources_are_included_-_Stack_Overflow

android - LogCat message: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included - Stack Overflow android - LogCat message: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included - Stack Overflow

これ、結局、開発環境のみでのエラー出力だったりします。

続きを読む >>


Androidブラウザからアプリを起動するいまどきのリンク記述

 

AndroidManifest.xml_-_zxing_-_Multi-format_1D_2D_barcode_image_processing_library_with_clients_for_Android__Java_-_Google_Project_Hosting

例えば、アプリ内の intent-filter の記述が以下。

<intent-filter>
    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.BROWSABLE"/>
    <data android:scheme="zxing" android:host="scan" android:path="/"/>
</intent-filter>

AndroidManifest.xml - zxing - Multi-format 1D/2D barcode image processing library with clients for Android, Java - Google Project Hosting

この intent-filter に拾ってもらえるHTMLでのリンク記述はどう記述すべきか。

続きを読む >>


Android標準ブラウザとなった Chrome を使っていれば来るであろう幸せのショートカッツ

 

「〜したほうが幸せになれるかもしれません」とかいってる人、最近見かけなくなりましたが。

 

WEBページをスマホで閲覧するとき、

ブラウザを起動させて、

「ブックマークからお気に入りのサイトをチェック」

とか

「開きっぱなしになっているタブをリロードしてチェック」

とかしてたけど。

 

もうこれはだるいっす。

ショートカット作成して、ホームにおいちゃいましょう。

お気に入りのページを表示した状態でメニューからワンタップで作成できます。

20131129-180454

以下、それで起きる3つの幸せ

続きを読む >>


AndroidStudio 「getClass()」でエラー?

 

このコードなのですが、

    private final String TAG = getClass().getSimpleName();

最近は、下に赤下波線となったりします。

MainActivity

問題なく動作はするのですが、なんか気持ち悪いです。

Ambiguous method call. Both
getClass () in Object and
getClass () in Object match.

すこし記述を変えてみると正常になりました。

続きを読む >>


あやしいアプリは「AppOps(アプリ別パーミッション設定)」で拒否しておこう

 

「AppOps」てのがなんのことか良くわからなかったのだけども。

20131123-133045

20131123-134312

 

USBデバック接続してコンソールから以下で利用できるようです。

$ adb shell am start -n com.android.settings/com.android.settings.Settings \
-e :android:show_fragment com.android.settings.applications.AppOpsSummary \
--activity-clear-task --activity-exclude-from-recents \
--activity-no-history

Android 4.3.1と4.4でAppOpsを呼び出す方法 | ブライテクノBlog Android 4.3.1と4.4でAppOpsを呼び出す方法 | ブライテクノBlog

リストのアイテム(インストールされている任意のアプリ)を選択すると、
アプリが使用しているパーミッションが表示され、パーミッションのON/OFFを切り替えることができます。

[Android] AppOps を起動する(Android 4.4 編) - adakoda [Android] AppOps を起動する(Android 4.4 編) - adakoda

新 Nexus 7 の発表とともに提供が始まったばかりの Android 4.3 に、アプリごとにパーミッションを個別設定できる機能 App Ops が含まれていることが分かりました。この App Ops は標準状態ではアクセスできない隠し設定ですが、可視化して触れるようにする非公式のショートカットアプリも Google Play で公開されています。

Android 4.3 にアプリ別パーミッション設定の隠し機能が見つかる、有効化アプリ公開 - Engadget Japanese Android 4.3 にアプリ別パーミッション設定の隠し機能が見つかる、有効化アプリ公開 - Engadget Japanese

ようするに、
・インストールしているアプリのパーミッションを制御できる
・UIからは見えないいわゆる「隠し機能」
・OS 4.3までは利用可能化するアプリが公開されている
ということのようです。

けど、今、Google Play を見てみると公開されています。KitKatでも。
続きを読む >>