Code example for AppWidgetHost

Methods: createView

    private void addAppWidget(int id, AppWidgetProviderInfo info){
		AppWidgetHostView hv = host.createView(this, id, info);
    	int page = mPager.getCurrentItem();
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present. 
        getMenuInflater().inflate(, menu);
        return true; 
Contextual code suggestions in your IDE  Get Codota for Java