ホーム画面にウィジェットを追加できません。Androidウィジェットを追加できません
完全に空の新しいページを作成しましたが、いくつかのアプリウィジェットは表示されません。ダウンロードしたアプリと自分で作成したアプリがあり、追加するウィジェットのリストには表示されません。
これを引き起こす原因としてはどのようなものが考えられますか?私はそれが私がプログラムした死んだ単純なもののために奇妙であるか、または私は何か重要な何かを無効にしているこれらの特定のウィジェットにはサポートされていないということだと思っています...
何か提案がありますか?
更新 ここではいくつかのコードがありますので、これまでのサポートに感謝します。
マニフェストファイル:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.widget"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<receiver android:name=".Widget" android:label="Countdown">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data android:name="android.appwidget.provider"
android:resource="@xml/widget" />
</receiver>
</application>
そして、ここでは私のmain.xmlです
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout01"
android:layout_height="200dp"
android:background="@drawable/background"
android:layout_width="160dp"
android:orientation="horizontal">
<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center_vertical|center_horizontal"
android:textColor="@android:color/black"
android:text="17:12:34 PM"
android:textSize="8pt" />
</LinearLayout>
(http://mattgemmell.com/2008/12/08/what-have-you-tried/)あなたのコードを投稿することも有用であることが分かるでしょう。 – adneal
+1私は同じ問題があります。 – Mob