Show Animated Emojis (Like Telegram) on other android apps - android

Telegram is openSource and recently they added live (animated) emojis to the app.
if a user sends a single emoji (and if large emojis be active in telegram settings) telegram shows a giant animated emoji:
I tried to find where the frames of animated emojis are stored in the telegram source code
I didn't find them. I just find a folder containing the normal png of apple's emojis:
https://github.com/DrKLO/Telegram/tree/master/TMessagesProj/src/main/assets/emoji
now I have 3 questions:
Where animated emojis may be stored on the telegram app?
If any way we can find them, do we allowed to use them in our app (open source license)?
Is there a library for this that I missed?

Related

How To Reduce File Size For A Custom Sticker App

I've built a custom iMessage sticker app that has hundreds of stickers and requires an in-app purchase to unlock them. As I'm adding more and more stickers, my app size is obviously increasing. I'm doing my best to compress images and keep the file size down but trying to think of other ways to keep a low file size.
I came across this sticker app:
Apple: https://itunes.apple.com/us/app/mojilala-unlimited-10000+/id1153431461?mt=8&_branch_match_id=598750316922589452
Android: https://play.google.com/store/apps/details?id=com.leo.stickers&hl=en
It has 42,000 stickers but the file size is only around 22MB. It works like a normal sticker app too, you can't tell a difference.
I'm very new to coding and have no idea what to even research to have something like this for my app. Could the stickers be hosted on a WordPress site and a link to the image be sent to the app somehow? Is this something Firebase could do?
I'm not sure how the above mentioned app works. But I think you can use the following approaches:
Only add the free stickers to the app, and download the others from the server when user purchases it.
Slightly different approach from the above one, add the low resolution thumbnails to the app. When user launches your app for the first time download the actual stickers in the background and show them after the successful download. Add some logic to check whether any new stickers available to download when your app is launched each time and act accordingly.
For iOS there are several methods to reduce the app size, please check this Technical Q & A
Use Firebase Cloud Storage to upload your stickers as images. You can download those images and display them in your app. Go through the Firebase Cloud Storage Documentation for the details.

Codenameone creating printable documents

In my codenameone app (ios/android) i want the user to be able to print out what is rendered on the screen. This could be tabular information or maybe a certificate of their achievement.
But what options are open to me get that screen content onto A4 paper?
FYI to generate the formatted screen, the app will have received the JSON data from a Dropbox MySQL database, and then formatted as normal.
From reading this forum, I know that direct print is not a feature of apps, so my next route is to use the ShareButton object in CN1 and get the user to basically export the screen content to a 3rd party app, which can print. But this is limited to text strings or photos (not both) and so a tabular screen would not export correctly. I also expect that doing this from an iPhone to the Mail app would not be fit for A4 size.
The mobile browser does this very well by being able to export to the PDR reader but that PDR reader isn't an option when exporting from apps.
Thanks in advance.
Recent versions of Share allow sharing both text and an image as far as I know so this should work. Generally the most common approach I've seen is to generate a PDF on the server and then use Display.execute() to run the PDF file which launches the OS native viewer.
I know some folks did some work on print integration based on questions asked here and in the forum but I don't know if they succeeded. There is nothing contributed back as far as I know.

ebook formats and mobiles

I have an app for android and iOS. I want to add in app option, which allow user select book from list and read it.
List of available books will be load from server.
Now i wondering which book format to choose. First i'm thinking about pdf, but it has not-flexible reflowing for different screens(books contains sheets and formules). Maybe .epub would be good choice?
ps. is this possible to prevent user copy loaded book files?
Should i load files only in memory(without saving on sd), but how then work with files exceeded ram memory?
have you know any good iOS and android libraries, sdk for reading ebook files?
I am searching for the same SDK options and found this for ePub:
http://skyepub.net/downloads/
There are handfuls of PDF SDKs. Throw a dart at the internet and see what it hits, however, I would like to know which ones have risen to the top (e.g., the top 3).
Still looking for .mobi (Kindle's format).

alternative format to PDF format for Android development

I am developing an Android application which only works with text documents. Currently I'm using PDF format. But the total size of all the documents leads to some 25-30mb, too much for an app.
The app is required to open the text documents and also allow features like zoom, search, etc. For this we considered a PDF viewing library, but that is simply increasing the size of the app.
We have considered redirecting the PDF's to open in default apps in the phones. But there are some text documents that NEED to be viewed through our own app. But a PDF viewing library isnt the best solution due to already huge size.
my question is : is there any alternative format to PDF format to be used in Android application that allows file compressibility without loss of quality?
and does not require a third party library to open the text documents.
Also , will I be able to zoom in on the text?
is there any alternative format to PDF format to be used in Android application that allows file compressibility without loss of quality?
HTML.
does not require a third party library to open the text documents
The WebView widget in Android can render HTML.
will I be able to zoom in on the text?
You as a developer can control the zoom level of the WebView, and users may also be able to use pinch-to-zoom gestures, depending on your content and the WebView size.

File extension for Book App iPhone and Android

For the first time I am building a book app. I am developing the app so that you can pick from one - 5 books and buy the book as an in app purchase. I am using phonegap to build the app.
My question is what file format do I need to use for the actual books for iPhone? and what file format do I need for Android?
I need to prepare the file of the actual book and I need to know what extension they should be in to properly function. thanks!
You can use any one out of .epub, .mobi or .pdf.
In .pdf files Adobe has addressed the drawback of fixed screen size by adding a re-flow facility to its Acrobat Reader software. Most good PDF software now supports reflow so this limitation is one best left in the past.
Here are few links on same
PDF
Comparison_of_e-book_formats
Hope this help you.
I think you should look into the open standards like epub or mobi. PDF I wouldn't recommend, because it's very static and doesn't scale well. (e.g. a page is a page, regardless of the screen size)

Categories

Resources