Yaron Vazana

NLP, Algorithms, Machine Learning, Data Science, tutorials, tips and more

  • About
  • Blog
  • Projects
  • Medium

Contact Me

yaronv99 [at] gmail.com

Powered by Genesis

You are here: Home / Archives for Programming

How To Add OpenCV To Your Android App

January 20, 2016 by Yaron 4 Comments

OpenCV is an open source library which provides a wide range of machine learning and computer vision algorithms. OpenCV original library is written in C++ but there are wrappers for other major programming languages, including Java (for android).

Since I use OpenCV quite often, I decided to dedicate a separate post and write a tutorial on how to add the library to an existing android application, developed in android studio.

OpenCV for android

[Read more…]

Filed Under: Android, Mobile Tagged With: Android, Android Studio, Apps, Material Design, Mobile, Open CV, Programming

What Google Can Teach Us about Caching

January 7, 2016 by Yaron Leave a Comment

Loading a single bitmap image into your android app is straightforward. However, on most cases you need to load many images at once into your UI view, this can damage your app responsiveness and downgrade your overall look and feel.

This post walks you through Google’s best practice for using a memory and disk caching to improve the responsiveness and fluidity of your UI when loading multiple images.

android-cache

[Read more…]

Filed Under: Android, Mobile Tagged With: Android, Apps, Google, Mobile, Programming

Material Design Collapsing Toolbar With Image

December 28, 2015 by Yaron Leave a Comment

One of the best Material Design’s component is the Collapsing Toolbar. Many android apps use this concept as it brings simplicity, elegance and beauty to the screen. Using images is a great practice in general, mobile screens are much smaller so less images can fit in. Showing an image as the main header and collapsing it when the user scrolls, allows us to show more above the fold content in less space.

Making long story short, this is the final result…

Collapsing toolbar with image open Collapsing toolbar with image close

[Read more…]

Filed Under: Android, Mobile Tagged With: Android, Apps, Google, Material Design, Mobile, Programming

Android SQLite Database

August 1, 2015 by Yaron Leave a Comment

Most android apps require saving information between client sessions. We would want to save each type of data according to its purpose and when we’re going to use it. Android platform provides several methods to handle your data and persisting it.

  • Shared Preferences – saving key-value pairs of primitive types. This data will persist across user sessions (even if your application is killed).
  • Internal Storage – storing private data on the device memory. This data will be saved inside private files on the device internal memory. Other apps can not read those files and neither the user. When uninstalling the app, those files are automatically removed.
  • External Storage – saving data inside files on an external storage such as SD card. This data is public and available to everyone. Also, this data can become unavailable if the user mounts the external storage or removes the media.
  • SQLite Databases – storing private data inside a local MySQL Database. All classes inside the app can read and write this data.

SQLite Database

[Read more…]

Filed Under: Android, Mobile Tagged With: Android, Apps, Db, Mobile, Programming, SQLITE

Adding REST Endpoint To Your Android App

July 1, 2015 by Yaron 2 Comments

In the previous tutorials, I showed how to create Material Design android applications. Those applications were mostly UI based and didn’t really did an intensive background work. Switching views and showing some web service results is a trivial task which can be handled by the phone CPU easily. But what if we want to analyze our data before we serve it to our users? well, in that case, we would probably want to add some backend services to do all the hard work.

How to add rest endpoint to android app

This tutorial shows how to add a Backend layer to your Android application and send/receive data from it

[Read more…]

Filed Under: Android, Mobile Tagged With: Android, Apps, Material Design, Mobile, Open CV, Programming

  • 1
  • 2
  • 3
  • Next Page »

SUBSCRIBE TO BLOG

Subscribe to Blog

Subscribe to get the latest posts to your inbox

Recent Posts

  • Training an AutoEncoder to Generate Text Embeddings
  • Using Dockers for your Data Science Dev Environment
  • Identifying Real Estate Opportunities using Machine Learning
  • How to Create a Simple WhatsApp Chatbot in Python using Doc2vec
  • Average Word Vectors – Generate Document / Paragraph / Sentence Embeddings
  • Visualizing Vectors using TensorBoard
  • Training a Doc2Vec Model with Gensim
 

Loading Comments...