위젯을 홈 화면에 추가하는 데 문제가 있습니다.Android 위젯을 추가 할 수 없습니다.
완전히 비어있는 새 페이지를 만들었지 만 여러 앱 위젯이 나열되지 않았습니다. 다운로드 한 수많은 앱과 내가 직접 코딩 한 앱이 있으며 추가 할 위젯 목록에 해당 앱이 전혀 나타나지 않습니다.
가능한 원인은 무엇입니까? 나는 내 휴대 전화 (Huawei Sonic)가 이러한 특정 위젯에 대해 지원되지 않는다고 생각합니다. 이는 프로그래밍 된 죽은 단순한 것 이상한 것이거나 중요한 것을 무력화 시켰습니다 ...
어떤 제안이 있습니까?
업데이트 여기에 몇 가지 코드가 요청되었으므로 지금까지 도움을 주셔서 감사합니다.
매니페스트 파일 : 여기
<?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>
그리고는 적절한를 찾을 수없는 경우 위젯을 홈 화면에 추가되지 않습니다
<?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