Guest User

Untitled

a guest
Jul 15th, 2012
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. Widgets not appearing on Droid Razr
  2. package demo.crat.widgets;
  3.  
  4. import android.app.Activity;
  5.  
  6. import android.os.Bundle;
  7.  
  8. public class democrat extends Activity {
  9. /** Called when the activity is first created. */
  10. @Override
  11. public void onCreate(Bundle savedInstanceState) {
  12. super.onCreate(savedInstanceState);
  13. setContentView(R.layout.main);
  14.  
  15. }
  16.  
  17. }
  18.  
  19. package demo.crat.widgets;
  20.  
  21. import android.appwidget.AppWidgetProvider;
  22.  
  23. public class W1 extends AppWidgetProvider {
  24. }
  25.  
  26. <?xml version="1.0" encoding="utf-8"?>
  27. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  28. package="demo.crat.widgets"
  29. android:versionCode="4"
  30. android:versionName="1.3">
  31. <uses-sdk android:minSdkVersion="4" />
  32.  
  33. <application android:icon="@drawable/icon" android:label="@string/app_name">
  34. <activity android:name=".democrat"
  35. android:label="@string/app_name">
  36. <intent-filter>
  37. <action android:name="android.intent.action.MAIN" />
  38. <category android:name="android.intent.category.LAUNCHER" />
  39. </intent-filter>
  40. </activity>
  41. <!-- Broadcast Receiver that will process AppWidget updates -->
  42. <receiver android:icon="@drawable/w1" android:name=".W1" android:label="@string/string1">
  43. <intent-filter>
  44. <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
  45. </intent-filter>
  46. <meta-data android:name="android.appwidget.provider"
  47. android:resource="@xml/hello_widget_provider" />
  48. </receiver>
  49. <!-- Broadcast Receiver that will process AppWidget updates -->
  50. <receiver android:icon="@drawable/w2" android:name=".W2" android:label="@string/string2">
  51. <intent-filter>
  52. <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
  53. </intent-filter>
  54. <meta-data android:name="android.appwidget.provider"
  55. android:resource="@xml/hello_widget_provider2" />
  56. </receiver>
  57.  
  58. </application>
  59. </manifest>
Advertisement
Add Comment
Please, Sign In to add comment