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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T12:58:11+00:00 2026-05-28T12:58:11+00:00

I created a database of adding employees now i need to notify(push notification) the

  • 0

I created a database of adding employees now i need to notify(push notification) the user that these many records have been added in their database.To show the push notification i am using an text view. how can i make that help is appreciated…..

  • 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-28T12:58:12+00:00Added an answer on May 28, 2026 at 12:58 pm

    Its not the push notification it is Notification

    Check this link : http://www.anddev.org/show_notification_in_statusbar-t1019.html

    Here is the code for show Notification.

    package org.anddev.android.statusbarnotificator;
    
    import android.app.Activity;
    import android.app.Notification;
    import android.app.NotificationManager;
    import android.content.Intent;
    import android.net.Uri;
    import android.os.Bundle;
    import android.view.View;
    import android.view.View.OnClickListener;
    
    public class StatusbarNotificator extends Activity {
    
            private NotificationManager mNotificationManager;
            private int YOURAPP_NOTIFICATION_ID;
    
        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle icicle) {
            super.onCreate(icicle);
            setContentView(R.layout.main);
    
            // Get the notification manager service.
            mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
    
            /* Show a sample notification when the first button was clicked. */
            findViewById(R.id.btn_showsample).setOnClickListener(new OnClickListener(){
                            @Override
                            public void onClick(View v) {
                                    StatusbarNotificator.this.showNotification(
                                                    R.drawable.tinyandroid,
                                                    R.string.notif_short,
                                                    R.string.notif_detailed,
                                                    false);
                            }
            });
    
            /* Clear the notification. */
            findViewById(R.id.btn_clear).setOnClickListener(new OnClickListener(){
                            @Override
                            public void onClick(View v) {
                                    StatusbarNotificator.this.mNotificationManager.cancel(YOURAPP_NOTIFICATION_ID);
                            }
            });
        }
    
        private void showNotification(int statusBarIconID, int statusBarTextID, int detailedTextID, boolean showIconOnly) {
            // This is who should be launched if the user selects our notification.
            Intent contentIntent = new Intent(this, StatusbarNotificator.class);
    
            // This is who should be launched if the user selects the app icon in the notification.
            Intent appIntent = new Intent(android.content.Intent.VIEW_ACTION,
                            Uri.parse("http://www.anddev.org"));
    
            // choose the ticker text
            String tickerText = showIconOnly ? null : this.getString(statusBarTextID);
    
            mNotificationManager.notify(
                       YOURAPP_NOTIFICATION_ID, // we use a string id because it is a unique
                                                          // number.  we use it later to cancel the
                                                          // notification
                       new Notification(
                           this,                        // our context
                           statusBarIconID,             // the icon for the status bar
                           tickerText,                  // the text to display in the ticker
                           System.currentTimeMillis(),  // the timestamp for the notification
                           "anddev.org - Notification", // the title for the notification
                           getText(detailedTextID),     // the details to display in the notification
                           contentIntent,               // the contentIntent (see above)
                           R.drawable.icon,                         // the app icon
                           "anddev",                                        // the name of the app
                           appIntent));                 // the appIntent (see above)
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a number of columns in my database that were originally created as
I have created a set of Models for my database using Python. Now I'd
So I have a typed dataset that I have created records for from another
I have created a table in the database that has a System.Guid as it's
I have a mysql database that I want to add the functionality of adding
I am playing with wpf and when i have created database it is created
I've created small database under SQL Server 2008 . Now i wanted to move
I created new cPanel account, using this account created new database, new database user
We have already created the database framework, with all the relations and dependencies. But
I made a blog database and created some tables in it. I have wriTten

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.