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

  • Home
  • SEARCH
  • 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 8328099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:20:05+00:00 2026-06-09T01:20:05+00:00

Losing my mind with this. I keep getting this crash. A similar question was

  • 0

Losing my mind with this. I keep getting this crash. A similar question was asked here before, but I am not making that same mistake. Here is my manifest:

<uses-sdk
    android:minSdkVersion="11"
    android:targetSdkVersion="15" />

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".ReminderListActivity"
        android:label="@string/title_activity_reminder_list" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name=".ReminderEditActivity"
        android:label="@string/title_activity_reminder_edit" >
    </activity>
    <provider 
        android:name=".ReminderListProvider" 
        android:authorities="com.corsair.android.taskreminder.ReminderListProvider" >            
    </provider>
</application>

As you can see, I have the authority fully qualified. I have a constant declared in my code for the authority(and use it when I create my Uri’s:

public static final String AUTHORITY = "com.corsair.android.taskreminder.ReminderListProvider";

// basic database info for creation
public static final String DATABASE_NAME = "reminders.db";
public static final String DATABASE_TABLE_NAME = "reminders";
public static final int DATABASE_VERSION = 1;

private ReminderListProviderMetaData() {
}

// inner class describing the Reminders Table
// by implementing BaseColumns, we automatically get the _ID column
// which is necessary for showing the DB contents in a ListView
public static final class RemindersTableMetaData implements BaseColumns {
    private RemindersTableMetaData() {
    }

    public static final String TABLE_NAME = "reminders";

    // uri and MIME type definitions
    // info for database access
    // the content URI is the authority prefixed with "content://"
    public static final String BASE_PATH = "reminders";
    public static final Uri CONTENT_URI = Uri.parse("content://"
            + AUTHORITY + "/" + BASE_PATH);

Here is my logcat:

    08-01 18:11:10.111: I/dalvikvm(1150): threadid=3: reacting to signal 3
    08-01 18:11:10.141: I/dalvikvm(1150): Wrote stack traces to '/data/anr/traces.txt'
    08-01 18:11:10.481: I/dalvikvm(1150): threadid=3: reacting to signal 3
    08-01 18:11:10.694: I/dalvikvm(1150): Wrote stack traces to '/data/anr/traces.txt'
    08-01 18:11:11.951: I/Process(1150): Sending signal. PID: 1150 SIG: 9
    08-01 18:12:50.231: I/dalvikvm(1196): threadid=3: reacting to signal 3
    08-01 18:12:50.661: I/dalvikvm(1196): Wrote stack traces to '/data/anr/traces.txt'
    08-01 18:12:50.671: I/dalvikvm(1196): threadid=3: reacting to signal 3
    08-01 18:12:50.801: I/ActivityThread(1196): Pub                                 com.corsair.android.taskreminder.ReminderListProvider: com.corsair.android.taskreminder.ReminderListProvider
    08-01 18:12:50.833: D/ReminderProvider(1196): main oncreate called
    08-01 18:12:50.851: I/dalvikvm(1196): Wrote stack traces to '/data/anr/traces.txt'
    08-01 18:12:50.871: D/ReminderProvider(1196): inner oncreate called
    08-01 18:12:50.893: D/AndroidRuntime(1196): Shutting down VM
    08-01 18:12:50.893: W/dalvikvm(1196): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
    08-01 18:12:50.911: E/AndroidRuntime(1196): FATAL EXCEPTION: main
    08-01 18:12:50.911: E/AndroidRuntime(1196): java.lang.RuntimeException: Unable to get provider com.corsair.android.taskreminder.ReminderListProvider: java.lang.NullPointerException
    08-01 18:12:50.911: E/AndroidRuntime(1196):     at android.app.ActivityThread.installProvider(ActivityThread.java:4240)
    08-01 18:12:50.911: E/AndroidRuntime(1196):     at android.app.ActivityThread.installContentProviders(ActivityThread.java:3992)
    08-01 18:12:50.911: E/AndroidRuntime(1196):     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3946)
    08-01 18:12:50.911: E/AndroidRuntime(1196):     at android.app.ActivityThread.access$1300(ActivityThread.java:123)
    08-01 18:12:50.911: E/AndroidRuntime(1196):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
    08-01 18:12:50.911: E/AndroidRuntime(1196):     at android.os.Handler.dispatchMessage(Handler.java:99)
    08-01 18:12:50.911: E/AndroidRuntime(1196):     at android.os.Looper.loop(Looper.java:137)
    08-01 18:12:50.911: E/AndroidRuntime(1196):     at android.app.ActivityThread.main(ActivityThread.java:4424)
    08-01 18:12:50.911: E/AndroidRuntime(1196):     at java.lang.reflect.Method.invokeNative(Native Method)
    08-01 18:12:50.911: E/AndroidRuntime(1196):     at java.lang.reflect.Method.invoke(Method.java:511)
    08-01 18:12:50.911: E/AndroidRuntime(1196):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
    08-01 18:12:50.911: E/AndroidRuntime(1196):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
    08-01 18:12:50.911: E/AndroidRuntime(1196):     at dalvik.system.NativeStart.main(Native Method)
    08-01 18:12:50.911: E/AndroidRuntime(1196): Caused by: java.lang.NullPointerException
    08-01 18:12:50.911: E/AndroidRuntime(1196):     at com.corsair.android.taskreminder.ReminderListProvider$DatabaseHelper.onCreate(ReminderListProvider.java:75)
    08-01 18:12:50.911: E/AndroidRuntime(1196):     at com.corsair.android.taskreminder.ReminderListProvider.onCreate(ReminderListProvider.java:102)
    08-01 18:12:50.911: E/AndroidRuntime(1196):     at android.content.ContentProvider.attachInfo(ContentProvider.java:944)
    08-01 18:12:50.911: E/AndroidRuntime(1196):     at android.app.ActivityThread.installProvider(ActivityThread.java:4237)
    08-01 18:12:50.911: E/AndroidRuntime(1196):     ... 12 more
    08-01 18:12:51.241: I/dalvikvm(1196): threadid=3: reacting to signal 3
    08-01 18:12:51.291: I/dalvikvm(1196): Wrote stack traces to '/data/anr/traces.txt'
    08-01 18:12:51.541: I/dalvikvm(1196): threadid=3: reacting to signal 3
    08-01 18:12:51.601: I/dalvikvm(1196): Wrote stack traces to '/data/anr/traces.txt'
    08-01 18:12:58.262: I/Process(1196): Sending signal. PID: 1196 SIG: 9

Here is line 75(referred to in the logcat):

@Override
public void onCreate(SQLiteDatabase db) {
Log.d(TAG, "inner oncreate called");
db.execSQL(RemindersTableMetaData.DATABASE_CREATE_SCHEMA);
}

Here is the DATABASE_CREATE_SCHEMA:

public static final String DATABASE_CREATE_SCHEMA = "create table "
+ DATABASE_TABLE_NAME + " (" + RemindersTableMetaData._ID
+ " integer primary key autoincrement, " + REMINDER_TITLE
+ " text not null, " + REMINDER_BODY + " text not null, "
+ REMINDER_DATE_TIME + " text not null" + ");";

Here is my ContentProvider’s onCreate():

// database helper member variable
private DatabaseHelper mOpenHelper;
private SQLiteDatabase db;
// component creation callback
@Override
public boolean onCreate() {
Log.d(TAG, "main oncreate called");
mOpenHelper = new DatabaseHelper(getContext());
mOpenHelper.onCreate(db);
return true;
}

Here is my DataBaseHelper’s constructor:

// this class helps open, create, and upgrade the database
private static class DatabaseHelper extends SQLiteOpenHelper {
public DatabaseHelper(Context context) {
super(context, ReminderListProviderMetaData.DATABASE_NAME, null,
ReminderListProviderMetaData.DATABASE_VERSION);
}

Really at my wit’s end here. Thanks for any help.

  • 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-06-09T01:20:06+00:00Added an answer on June 9, 2026 at 1:20 am

    I think I see the problem in your ContentProvider, my comments detail the changes:

    public boolean onCreate() {
        Log.d(TAG, "main oncreate called");
        mOpenHelper = new DatabaseHelper(getContext());
    
        /* Remove this line next line:
         *   1) db is null
         *   2) DatabaseHelper's constructor already silently calls this
         */
        //mOpenHelper.onCreate(db);
    
        return true;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm losing my mind on this one. My last question answered a syntax issue,
This is a follow-up question to this question because I'm losing my mind over
OK, I'm losing my mind over this. I did read here at SO and
I think I'm losing my mind here. This is the code. (It's a simplified
I'm losing my mind here. I have a conflict getting cloud zoom to work
I am somewhat wondering if I am losing my mind, but I swear to
I feel like I'm losing my mind here. I've peeled back the css layer
I am losing my mind here. Im looking at a beginners OAuth php package
I am losing my mind. It's a simple scenario: Entity definition (generated) // this
I'm using PostgreSQL 8.1.11. And I'm losing my mind. Why can I not use

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.