Thursday 28 March 2019




How to do text writing animation?
 In Android Development we do not have the option to use any other custom font in our default TextView in an xml layout file, except from the default Roboto font.

And the choices that Android gives us are limited, by letting us set only normal, sans, serif or monospace fonts, which are usually not enough, especially when we want to customise our application.

In this example we are going to make a custom Android TextView that can change its font, by customising its attributes from the xml.







Customized android launcher for kiosk application


Description:
Library helps you to control the specific application launcher from other android modules using android overlay.


What is Kiosk Android Applications ?
Fully managed devices that serve a specific purpose.

Ex:-
1. Employee facing Android Apps: Inventory management, field service management, transport and logistics
2.Customer facing Android Apps: Kiosks, digital signage, hospitality check in.


Here are some of the essential features of kiosk mode:

1.Confining to a single application to serve a specific use case.
2.Hiding the navigational button (home and recent apps) in Android
3.Disabling status bar.
6.App to run in a full screen mode.

Add on Module :
Using this library module, Developer can manage the the kiosk application's launcher/Exit pragmatically .

Click Here for the Library module




Tuesday 9 January 2018

Set up android project with Open CV






Open CV is an open sourced computer vision library. It is a machine learning software library used for image processing and computer vision techniques. Open CV has more than 2500 optimized algorithms for Image Processing. It is mostly used for real time computer vision applications.

List of usage.

  • Face Detection
  • Object Detection
  • Line detection
  • Retina recognition
  • Motion understanding
  • Mobile robotics
  • Motion tracking
  • Hand gesture recognition


Step by step configuration: 
  • ·         Create new Android project with C++  support
  • ·         Select C++ version 11
  • ·         Download Open CV SDK From  https://opencv.org/
  • ·         From file ->Import new module -> select  OpenCV-android-sdk\sdk\java
  • ·         From project properties >Import as new module
  • ·         From App View ->Create new jni folder (Name should be jniLibs)
  • ·         Copy all folder from OpenCV-android-sdk\sdk\native\jni  and paste into newly created jniLibs folder
  • ·         Delete all files except .so file extension.
  • ·         Change  CMakeLists.txt  https://github.com/nithinchalakkal/Open-CV-Files/blob/master/CMakeLists.txt
  • ·         Make sure both Gradles  (OpenCV and app ) running in same SDK version
  • ·         Sync the application. 


      Source Ref : https://github.com/nithinchalakkal/Open-CV-Files







Monday 8 January 2018

Run time permission in android (Dexter)



Here, we are going to simplify the process of adding the run time permissions using Dexter library. Using this library, the permissions can be implemented in seconds.




Requesting Single Permission

To request a single permission, you can use withPermission() method by passing the required permission. You also need a PermissionListener callback to receive the state of the permission.

> onPermissionGranted() will be called once the permission is granted.

> onPermissionDenied() will be called when the permission is denied. Here you can check whether the permission is permanently denied by using response.isPermanentlyDenied() condition.










Tuesday 20 December 2016

Chart in Android Application

Charts are a great tool for communicating information visually. Using "MPAndroidChart" you can design and share your own charts through Android application.







Tuesday 6 December 2016

Requesting Permissions at Run Time



Normal and Dangerous Permissions


System permissions are divided into several protection levels. The two most important protection levels to know about are normal and dangerous permissions:

Normal permissions cover areas where your app needs to access data or resources outside the app's sandbox, but where there's very little risk to the user's privacy or the operation of other apps. For example, permission to set the time zone is a normal permission. If an app declares that it needs a normal permission, the system automatically grants the permission to the app. For a full listing of the current normal permissions, see Normal permissions.
Dangerous permissions cover areas where the app wants data or resources that involve the user's private information, or could potentially affect the user's stored data or the operation of other apps. For example, the ability to read the user's contacts is a dangerous permission. If an app declares that it needs a dangerous permission, the user has to explicitly grant the permission to the app




   

Step 1 :


You’ll also need to declare Permissions in your AndroidManifest.xml file. There’s no change here. Whatever permissions your app has always needed should be declared in your AndroidManifest.xml file with the uses-permission tag. 



Step 2 : 


Verify Permissions before calling APIs
You have to actually request and check if the permission was granted by user to use.
So permissions in manifest file will only work for api below 21.
Check this code for a snippet of how permissions are requested in api23 


Here’s an example:👆


Thursday 1 December 2016

Text To Speech & Speech to Text





Text To Speech

It is a great piece of technology that was developed to help individuals with visual impairments. However, device manufacturers these days enable text-to-speech Android that allows books to be read out loud and new languages to be learned.
Android text to voice was introduced when Android 4.2.2 Jelly Bean was launched with a more conversational capability so that users are able to have a familiar human-like interaction.
At the moment, there are not many Android texts to speech app available in the market that fully utilizes Google text speech technology. In this article, we will guide you on how to use Google text-to-speech on Android.

Speech to Text

Android comes with an inbuilt feature speech to text through which you can provide speech input to your app. With this you can add some of the cool features to your app like adding voice navigation (Helpful when you are targeting disabled people), filling a form with voice input etc.
In the background how voice input works is, the speech input will be streamed to a server, on the server voice will be converted to text and finally text will be sent back to our app.

Combination of Text To Speech & Speech to Text


Here application has one Question with its multiple answers as options.   When launch time, application will read (speak) the question as well as its answers list by default, will wait for user response.  Based on user response (voice input) system will match with existing answer list. If the answer is match with any of the answer, system will continue to the next questions or next level of process. Else it will ask to the user to give correct input till its match with existing answer list. 


For Sample - Click Here  ☝


How to do text writing animation?  In Android Development we do not have the option to use any other custom font in our default Tex...