I'm implementing an app including a feedback activity. In iOS, I use jsqmessageviewcontroller. I have searched online but failed to find a similar library in android Is there any library of displaying text messages? Like the jsqmessageviewcontroller in iOS.
As far as I know, there is no out-of-the-box solution. You will need to implement it on your own. If you look at the tutorial here: http://adilsoomro.blogspot.in/2012/12/android-listview-with-speech-bubble.html , you will get the full source code for something similar to your iOS counterpart.
In short, you need a ListView with a custom views and 9patch (fancy name for PNG) to make the speech bubbles.
Have a look at http://androidlibs.org/ to find more libraries, if you need.
Update:
https://github.com/tuenti/SmsRadar/ :
Read incoming and outgoing text messages using an Android application
across different Android SDK versions it's not trivial. If yo don't
want to appear as SMS application and your application has to read
incoming and outgoing SMSs this is your library.
Related
I am currently working on an Android Application developed in Delphi 10.2 and have most of the functionality that I need working. However I am trying to get my head around the following SharedActivity.getContentResolver.registerContentObserver. I what to use this for detecting when an SMS has been sent via content://sms/sent URI.
I have the code that will go and get the message using sharedactivity.getcontentresolver.query but just struggling with the ContentObserver part in Delphi. Have spent 2 days searching for an example but found nothing. Maybe it is not possible!
We are using Mesibo for our live customer support. We have used their sample code from the GitHub.
So far it is working flawlessly for messaging and calls. We are able to customise colours, icons etc except their chat bubbles. Their chat bubbles needs some refinement so we want to replace them with our own for incoming and outgoing messages. However the documentation or sample code does not speak much about it.
Any help will be appreciated
It is best to subclass MesiboMessagingFragment and use it instead of launching default user interface. That way you can customize virtually every aspect of mesibo UI.
Subclass MesiboMessagingFragment
implement MesiboRecycleViewHolder.Listener which is a wrapper around Android RecycleView functions.
Render and return your view in Mesibo_onBindViewHolder()
Hope it helps! If requires, I can get you a sample code.
I want to make chat application using socket.IO. I have a number of group user list(users in groups) that comes from server while parsing. but now i am going to chat against all these users. Means when i send message, all the group users received message.
But first thing i found the library. with example but in the example no clear UI just API classes
in https://github.com/Gottox/socket.io-java-client that not clear to me.
From above API I copied classes examples/chat/Chat.java, ChatCallback.java, ChatCallbackAdapter.java also import socket.jar from google not from above ApI, because in the above API it tell us to copy scr/io/socket, Its same things. if i am not right. "socket.jar and scr/io/socket"
Now i have totally four classes above three and one is layout class, I named it MainActivity.java
And now i want that typyes of UI messaging. like in below screen shot.
Please anyone help me use this API and also above classes and implement proper messaging like in below image showing. i have my own server URL i will replace it later but now help me in code form that how to use these API classes with layout class.
Thanks
Using Socket.io is good start, but it's gonna be a lots of work to build a comprehensive chat app. If you want to skip the pain building everything from scratch, you can refer to Hyphenate SDKs (iOS, Android, and Web), which is real time communication with proprietary protocol over socket.
Hyphenate supports both Mobile and Web SDK with rich features and very reliable services. It also provides open source UI components so you don't need to build everything from scratch.
https://docs.hyphenate.io
https://github.com/HyphenateInc
Is it possible to extend the standard call/message UI which is provided by native android. Is it possible to add an extra tab/scrollable item to the dial pad and messaging screen?
Thanks in advance for the replies !
You can't "extend" the existing apps, but you can create your own call/message UI.
The call log has an official API that you can use to create your own call log (and you can check out Android's sources to get some code or reference).
The messaging currently isn't supported by an official API, by you can still access and use it, just check out the relevant Android sources to get an idea about how to query for messages.
Doing some research I have found some different speech to text API's for Android.
Pocket Sphinx
Android Native API
I have the following requirements:
Must be able to support offline speech recognition (I'm not sure
if the Android API can do this)
Must be able to detect and
respond immediately to every word said. I would rather this than
detecting an entire sentence. I could split the returned sentence
into and array though and get each word.
The detection needs to
be processing in the backgound (no popups or anything as the Android
API seems to do)
Can someone recommend an API that is capable of my requirements.
Pocketsphinx meets all your requirements. What you call the "Android Native API" is basically a set of interface definitions and it does not contain the notion of offline/online.
You can also implement these interfaces using Pocketsphinx, since it supports things like partial results, confidence scores, n-best results etc. This way the implementation becomes available to any Android app. Maybe somebody has done it already, but I'm not aware of it.