1. yescalianti's Avatar
    Hi,

    I'm a novice programmer in Android, and I've made various programs with various functions.

    Recently, I created a simple program that creates and manipulates a database.
    But, one of the activities isn't working. I click on the button to open the activity, and then it open, but the visual don't appears. I made a log for it, and saw that the last log is after the call to activity (startActivity).
    After this call, the activity is loaded, but the method OnCreate() is not used. The screen appears only black. The AndroidManifest is configured correctly, and the Eclipse IDE don't show any errors.

    I need help.

    Thanks.
    05-15-2011 12:32 PM
  2. Folkert's Avatar
    Have you opened this activity before? The OnCreate method is only run once(when the app is opened). When you reopen this activity, then onResume is called, so try to put your logic in the onResume method.
    05-19-2011 12:29 AM
  3. yescalianti's Avatar
    Thanks for the help, but the problem was in the onCreate() function -> It's a mistake with the first "o" from onCreate. See below:

    Wrong : "OnCreate()"
    Correct: "onCreate()"
    05-19-2011 01:25 PM

Tags for this Thread

LINK TO POST COPIED TO CLIPBOARD