Is it possible to extend the standard UI - android

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.

Related

Displaying data on the Nest Hub: Using Cast SDK or Assistant SDK?

I would like to display some information from a Firebase database on the screen of my Nest Hub.
Let's say I want to scroll through 10 items and display their details every 5s.
If I am not wrong, I am tied to only 2 possibilities
Assistant Actions
I read the doc and made some POC, but it seems overcompliacted, I have to create a project, that I cannot deploy publicly, create a Firebase function to create the webhook, and I don't really have complex Assistant commands to send, so it seems overcomplicated at first sight.
=> Maybe I missed a way to make that simple?
Cast SDK
As an Android dev familiar with Java and now Kotlin, this seems easier, but as far as I understand, I can only cast Media to the Nest. Should I then create a layout with all my info, turn them to image files, and finally create a slideshow for the Nest Hub?
Thanks for any advise
Part of this answer depends on your use-case. Creating an Action via Actions Builder would give you a fair amount of flexibility over the interaction model, as it will support voice commands and you'd be able to trigger it directly from the device ("Talk to X").
Creating something via Cast may be easier, as you're just projecting content (a webview). While easier, you'd need to be able to start it from another device and can't control it with voice. Control can be done through the casting device.
Based on the use-case you've given, as a passive display, I would suggest going with the Cast SDK. You can look at implementing a custom web receiver to manage your web app.

Customising Mesibo Chat bubbles

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.

Chat application using socket.io

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

How to use addressing and validation PostCodeAnywhere on Android?

I'm building an application that takes the departure and destination address from the user. The company purchased Capture+ from PostCode anyWhere to be used on our website, I now need to build it on Android.
I'm trying to build a layout that would have something like this demo
http://www.postcodeanywhere.co.uk/address-capture-software/try-it-now/
I tried to look for an Android API for that, but didn't find a Java API http://www.postcodeanywhere.co.uk/support/sample-code.aspx
This link shows how to get started with Capture+ , but again only javascript and some html form
https://www.postcodeanywhere.co.uk/address-capture-software/guide/default.aspx?reg=1
I've tried reading about the search dialog http://developer.android.com/guide/topics/search/search-dialog.html
But i'm not sure if it's the right thing, I'm really lost, can anyone help me please ?
I'm on the technical support team here at Postcode Anywhere. With the Capture+ function at the moment it can only be done with the JavaScript snippet provided in the integration process.
We do however have JAVA code samples for all our API calls which you can use to implement the more traditional 'Click to Find' method. All the APIs can be found here:
http://www.postcodeanywhere.co.uk/address-validation/api/
For the UK the APIs that you require are the 'Find' and the 'Retrieve By ID'.
No problem, good to hear you got it working.
The service is intended to be used in this two part method (Find and retrieve). The retrieve by ID is the call where the charge is made. There are restriction on how many 'Finds' that can be used when no 'Retrieves' are made.
If you want to drop me an email of your requirements I can have a look into the best way of doing it?
My email is tomm#postcodeanywhere.com
Cheers

iOS equivalent of launching an Activity in Android

I just got done writing an Android Activity that allows other Activities to call it for some result (it's not intended to be a stand-alone Activity). I'm now working on the equivalent iOS application and can't find any resources for how I would enable similar functionality on iOS.
The situation: The tool I'm producing is intended to be used by other applications, rather than as a standalone application. The thing is, the GUI that needs to be presented to the user is rather involved so I'd like to be able to provide the developer with a "all-in-one" package that they can simply launch and get results from. Doing this in Android was very straight forward. I simply wrote an Activity and instructed the developer to launch this Activity for result. I've looked around and can't find a similar functionality to allow an iOS developer to do the same. What would be the best way to go about doing this?
I think part of the problem I'm having in finding resources is that I'm not entirely sure what what I'm making is called. A library? extension? plug-in? I would think a library doesn't have a GUI and it seems extensions and plug-ins are made for an extensible application (that is, one in which the user can install the extension/plug-in).
Your API could be à single call that would pop up a modal view. A target and selector can be specified to receive an answer. Supplying it to other developers means packing it into a "framework". I'm not sure if you can include resources.
There isn't really any equivalent. The closest you can come is having the second application call UIApplication's openURL with a custom scheme that is listened to by your app, and then when your app is done it would do the same with a custom scheme that is listened to by the calling app.
In practice, the iOS app would usually include the entire activity-equivalent as some sort of library, which at the high level would take the form of a UIViewController subclass that is presented modally and then calls a delegate method or completion selector of some sort on completion.
iPhone development is a different design than Android development, so you may need to rethink what it is you are trying to do.
Most likely you will want to look at just including the code in each program, initially, just so you can get it testable, but that may not be the best solution.
But, without knowing more details about what you are trying to do it is hard to give some suggestions as to better solutions.
For example, you may find LocalNotifications as one solution (http://useyourloaf.com/blog/2010/7/31/adding-local-notifications-with-ios-4.html), but again, it depends on what your needs are.
I found that using local notifications to call a REST service, then to process it and decide if I need to inform the user was helpful, as a replacement for how I used Intents in the Android application.

Categories

Resources