It may sound a weird question at first but I want to learn the name of the first alert in Android so that I can research how it is done.
What I mean is, for example, while you are talking to some person on WhatsApp, some other person or group sends you a message and you are firstly alerted on top of the screen for a few seconds (which is directly clickable) and then that notification takes its place back on the notification bar, meaning you have to scroll down this time to reach.
How can I search this? Or, if anyone has any tutorial about how to implement it, I'd appreciate much.
Thanks,
Its called Heads-up Notification.
refer this link
Related
I have developed an android app and now I am trying to implement the same one in IOS but not easy. Please Somebody help me.
Below is my implementation in android.
as you see in the picture when a push notification arrives in the foreground state,
the "POP notification on the top" is shown where ever I am in the app. It's possible because I have developed it with one activity and multiple fragments that when a notification arrives, I can control it in the activity that whatever fragment I see, I can pop the notification.
But in IOS, due to my poor skill, It's not easy...
let me show you my current IOS structure which is under the designation.
as you see it, it has one tab bar controller which has 5 menu
and each menu has a navigation controller, and each of them also has a view controller.
In this structure, can I implement the notification like the first image?
or should I change the structure?..
currently, I don't know what I should study for solving this.. please let me know.
I Want to develop Full Screen caller application with Caller details and accept call and ignore button how to achieve this? .I searched a lot but i'm not able to find solution or any reference, so anyone can lead or help me or any reference it would be helpful for me, thanks in advance happy coding.
I'm not going to give you ready-made code even though I could probably dig into my own and do it. You said you searched a lot but if this were true, you'd have found many references to articles and docs such as these.
Get contact data from number
Take control of calls programmatically
Detect incoming calls
Interesting considerations for incoming calls
That should get you started. But it should go someting like this: Register that you want to be notified when incoming calls are received. On that notification you receive launch your own activity that takes control of the calls programmatically (button to dismiss, button to accept?). That screen can show whatever you want, beit the contact information you retrieved from the phone number, a photo, etc.
I have an app that recieves push messages from Google Cloud Messaging.
So when the app is not visible user recieves Notification. If app is visible user recieves Toast. But want to try more interesting solutions if they are exist.
So the question is what views in Android could be called from any Activity of the app like this happens when we use Toast?
Thanks in advance for your answers!
Ok, there is no legal way to do what I wanted. It's possible to invoke AlertDialog, but it will block the current activity. To not block the activity, we can still use Toasts, even custom, but without possibility to make it stay on the screen.
But the best solution is to do nothing, but leave notifications only, doesnt metter if app is visible or not.
I want to know how does notification read and unread functionality works in android. I want to know how the badges number count is set visible and invisible on read and unread message method.
When I create notification in my application then it will create successfully and add with +1 increment on badges. But after read this notification all other unread notification will also disappear. I want only the reeded message notification/count will be disappeared not for all.all other those are not open will be remain unread on badge. how could I did this.
same like as our message box functionality.
I want to know how the badges number count is set visible and
invisible on read and unread message method
No there is no any direct method to do this. but i show you one way how to achieve this. This solution only working in SAMSUNG Devices. There is no guaranty it's working on all devices.
https://github.com/eldhosembabu/mathokkil/
also another way is you can achieve this by App Widget Provider in Android. for more information go to AndroidWidgets
If you want to put it on Launcher Icon , then in android its not by default functionality given. The reason behind it is, when apk is generated, apk will not find that icon attached with it, so that is the main reason.
Alternate is, you can create widget for it. Creating widget is only solution to achieve this.
When using a custom dialog in an Android App how is it then possible to let the user know, that he/she has entered a wrong argument, e.g. a wrong password or username?
Possible an AlertDialog or just a Toast_Message?
Thank you
You can add a textview to your customdialog, if the user/password combination fails, you only need to display this textview with the message wanted.
It will be better than AlertDialog, 2 consecutives dialog aren't good for the user. And the toast message are not always understandable for all users.
You can use whatever you want in principle. Flash the screen and all LEDs generate all possible sounds to make the phone R2D2s clone on speed.
On a more serious note. A Toast notification can be used but is not necessarily a good option since it could happen that the users just does not pay attentions and misses the whole notification resulting in a confused user as he is expecting the application to log him in.
Now there is the AlertDialog notification which is probably the most suitable notification type to inform a user about something critical he did or didn't. It requires users attention which is exactly what you want in such cases.
There would be the StatusBarNotification which is meant to display an ongoing process. Best example would be a download or something.
Another option would be an appearing TextView which needs to be distinctive enough to be easily noticed by the user and of course the layout has to be planned to support such dynamic changes.
My recommendation is the AlertDialog and if not applicable for some reason then the dynamic TextView.