Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7458603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T13:28:10+00:00 2026-05-29T13:28:10+00:00

The method onCreate(Bundle) is undefined for the type AppWidgetProvider public class SupermarioActivity<imageButton1> extends AppWidgetProvider

  • 0

The method onCreate(Bundle) is undefined for the type AppWidgetProvider

public class SupermarioActivity<imageButton1> extends AppWidgetProvider {
public static SupermarioActivity Widget = null;
public static Context context;
public static AppWidgetManager appWidgetManager;
public static int appWidgetIds[];   

@Override
public void onUpdate( Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds )    {     
    if (null == context) context = SupermarioActivity.context;
    if (null == appWidgetManager) appWidgetManager = SupermarioActivity.appWidgetManager;
    if (null == appWidgetIds) appWidgetIds = SupermarioActivity.appWidgetIds;

    SupermarioActivity.Widget = this;
    SupermarioActivity.context = context;
    SupermarioActivity.appWidgetManager = appWidgetManager;
    SupermarioActivity.appWidgetIds = appWidgetIds;

    Log.i("PXR", "onUpdate");


    }

static void updateAppWidget(Context context, AppWidgetManager appWidgetManager,
        int appWidgetId) {


    RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.main);
    remoteViews.setImageViewResource(R.id.imageButton1, appWidgetId);


    // Tell the widget manager
    appWidgetManager.updateAppWidget(appWidgetId, remoteViews);
}

  public void onCreate(Bundle savedInstanceState)
  {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);    

    imageButton1 imagebutton1 = (imageButton1) findViewById(R.id.imageButton1);

    imageButton1.setOnClickListener(new OnClickListener()
    {
      public void onClick(View v)
      {
         ImageView iv = (ImageView) findViewById(R.id.imageview1);
         iv.setVisibility(View.VISIBLE);
      }
    });
}

    private void setContentView(int main) {
    // TODO Auto-generated method stub

}
    private imageButton1 findViewById(int imagebutton1) {
    // TODO Auto-generated method stub
    return null;
}

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T13:28:11+00:00Added an answer on May 29, 2026 at 1:28 pm

    You defined an onCreate(Bundle) method for SupermarioActivity<imageButton1> that looks like it belongs in an Activity subclass. But SupermarioActivity extends AppWidgetProvider, not Activity (or any Activity subclass).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got the following method... public class Image extends Activity { public void onCreate(Bundle
The method signature of a Java main method is: public static void main(String[] args)
Here is the problem @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); progressDialog = ProgressDialog.show(ContactMainActivity.this,
@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); Main(); }
Here is the code: public class beautiful extends Activity { ImageView radar = (ImageView)
I'm getting an error: The method OnClickListener() is undefined for the type View I'm
public class testScreenRotation extends Activity { /** Called when the activity is first created.
i have the following situation: public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.createcharacter); //Referenciando Items
is it possible to start a context menu on the onCreate method? I know
I have Activity with ListView inside it and in the onCreate method of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.