Hide App Notifications in Android - android

I'm attempting to write an app that clears certain notifications based on Lollipops new profile features. I've read this: Android: remove notification from notification bar
But it doesn't give me the information I need. What I want to know is: theoretically, how would I get another apps notification ID from within mine? So if I wanted to get the ID for G+, how would I code that? Do I even have access without elevated permissions (device admin or root)?
Thanks.

Ive done something very similar with one of my apps.
https://play.google.com/store/apps/details?id=com.t3hh4xx0r.privatenotifications
You need access to the NotificationListener
https://developer.android.com/reference/android/service/notification/NotificationListenerService.html

Related

How to access or modify Android ContentProvider?

I want to know how to modify message data, neither root nor default application in android application
Goal is block number list manager and i want to receive message of to filtered number I’ve looked BlockNumberContract api but this require permission like default sms/dialer application, carrier application Only default application(User is chosen application) will have access MMS-SMS ContentProvider when on android 4.4+ I was check to LINK
Also, If you know anything else, please let me know them
Additionally if impossible on android application level, Please another level any solutions and any ideas let me know
thanks :)
You can't. That's the entire reason they created the Default Messaging App- to prevent you from doing it. You need to be the default messaging app to do this- or at least root and directly edit the db.

Show custom name in App-To-Phone Calls in Sinch

I'm developing an Android application that allows users to make app to phone calls and it is working pretty fine at the moment but, I want to show a custom name when the remote user receive the call. Now, the phone receiving the call is showing an unknown caller name.
My question is if there is a way to achieve this or it's impossible to show what i want.
There is a couple of ways do do this:
User callUserWithHeaders and add a friedly name as a header
Look up the username in your backend when you recieve the call and display the friendly name

Phonegap PushPlugin with a badge number and grouping feature

I have used pushPlugin to recieve push notification in my phonegap android application. Everything is working correctly. Only issue is when multiple messages are present in the notification bar, the last message overrides the previous message. I would like to group all the messages under the app as whatsApp does.
I tried adding notId parameter and setting it to random number from my server side code. Doing this actually displays multiple notifications but does not group then.
I would also like to know how to add badge number to my app. Basically a number which will tell the user that so many number of notifications are come. As it is in whatsApp (ex. 2 messages received). I have added this plugin to handle that, but I am not sure whether it has to be done in phonegap or will i have to modify java code (plugin) to achieve this.
I know this topic is addressed previously here but there is no answer to it. hence i have raised a new question. Any help would be appreciated.
I do think (although I totally am not sure) that WhatsApp doesn't actually show separate notifications, instead it concatenates the non-read messages on server before sending just one new notification that overwrites the current as you said. For example, if you initially have one message not read causing this notification
WhatsApp
Hey dude!
and then you receive another message, the notification sent is
WhatsApp
2 new messages from 2 contacts
or if the sender is the same contact
WhatsApp
Hey dude!\n
What is up?
You could use the pushNotification.setApplicationIconBadgeNumber(successHandler, errorHandler, event.badge);if you only needed iOS support but as it doesn't support the Android for that feature you need to use something else and that plugin you mentioned looks good for it. Seems like it is quite easy to use like this (after it is installed)
cordova.plugins.notification.badge.set(3);

Getting notification in system bar for an update in a webpage

I am new to android programming. I am designing an android app for my college. I have made a webview that loads up a webpage named events.html. how can i make it such that whenever new events are added to the webpage, a notification in the system bar of the app will appear about that events if the user is connected to the internet. Please help me. Many thanks in advance.
Store the HTML file in your app's database/shared preference/file (in Java object form will be more useful for later comparison).
Periodically check for a new file (at some interval), temporarily storing the result. This will likely be in an Android Service
Compare the temporary file to the one you had stored previously.
If the two files are different, then use NotificationManager to create a new notification
Without all of this, it looks like you would need to have a server with push notifications (or Google Cloud Messaging) available that pushes notifications to your college's app users whenever that is a new event. This is an expensive (more demanding option compared to above).

How to show notification in android?

I have created an android application for a RSS reader it is working fine .Now i want to show a notification to the user at the time of receiving a new blog or feed
please any one help me how to do that
Thanks in advance
Check out the NotificationManager class.
Given answer is good only #Krishna wants to develop a notification. But in his scenario, he needs to tell the user, when they receives an updates. So while you are studying the given link, also remember you should have a mechanism to Broadcast when you receive a notification even when the user is not already open your application. As a hint: you have to provide some services and permissions in Manifest file.
This documentation page also explain very well with coding.

Categories

Resources