0

I have an application for example it's name is : SHOPPING

I would like to create a widget that will show last products from my web service, then after click on it(imageview or button), must open a class of SHOPPING application (To buy product).

is it possible to open a class of SHOPPING application from widget ?

S.M_Emamian
  • 17,005
  • 37
  • 135
  • 254

1 Answers1

1

Yoy can put widget in your application. In your manifest file:

<receiver
   android:icon="@drawable/icon"
   android:label="Example Widget"
   android:name="MyWidgetProvider" >
   <intent-filter >
        <action android:name="android.appwidget.action.APPWIDGET_UPDATE"      />
   </intent-filter>

   <meta-data
      android:name="android.appwidget.provider"
      android:resource="@xml/widget_info" />
</receiver> 
Dmitriy Puchkov
  • 1,530
  • 17
  • 41