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 8455255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:14:23+00:00 2026-06-10T12:14:23+00:00

I was creating notification using builder class and using android 4.1 version (API level

  • 0

I was creating notification using builder class and using android 4.1 version (API level 16).
But the application is generating exception as
08-28 12:39:00.321: E/AndroidRuntime(2311): java.lang.NoClassDefFoundError: android.app.Notification$Builder
Necessary packages are already imported.

Notification.Builder notification = new Notification.Builder(this);
notification.setSmallIcon(R.drawable.ic_launcher);
notification.setTicker("My Notification");
notification.setContentInfo("New event");
mgr.notify(123, notification.build());

Is there anything wrong in the code? thanks in advance

  • 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-10T12:14:24+00:00Added an answer on June 10, 2026 at 12:14 pm

    You need to run you application on a device / emulator with API level >= 11 in order to use the Notification.Builder class.

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

Sidebar

Related Questions

Guyz facing problems with creating a push notification service (for android) using Google C2DM
I'm using addTimeInterval for creating local notification but it seems that it is now
I am creating an application with push notification alerts using Google C2DM service. Can
I'm trying to use custom notifications in my Android application using Google's sample from
I am creating a mail class in symfony using swiftmailer. I have written mailer
So, I'm planning on creating a reminder app for WP7 using the Microsoft.Phone.Scheduler class,
As far as I know we can create notifications in Android using Notification Manager
I am creating a listView in Android using the following code : ListView listView
In my android app i am using Latest Geoloqi API to implement Geofence concept.when
I'm creating a notification with something similar to the following: Intent ni = new

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.