In the previous tutorial, we are talking about mock data by use proxy tool(Eg. Charles). We can easily to mock a server for development. But it may not powerful as a server. So today we try another way to build something look like a server but with less time - about 30 seconds. Yes, you... Continue Reading →
How to mock data while development – part1?
While working on developing an application we mostly use Restful. In the application, we often call some API from the server. But sometimes the code server is not complete? So the question is: How we develop the app without serverside? Today, I will share the ways I often do to solve the problem. I will share... Continue Reading →
Android dynamic theming
In android sometimes, you need to create the dynamic theme for the application. Today, we will create a demo to see how it work. Our application will be look like this. Here are the things we will do. 1. Create custom attrs. 2. Create themes. 3. Implement style of custom attrs. Now let start. 1.... Continue Reading →
Android crashlytics build failed with gradle
Today I intergrade my project with Jenkins. In my project I used crashlytics for crash tracking. When I build with jenkins have an error occurred: * What went wrong: A problem occurred evaluating project ':mobile'. > Failed to apply plugin [id 'io.fabric'] > Could not create plugin of type 'CrashlyticsPlugin'. It look crazy, because I... Continue Reading →
Multi view types for Recycle View
Currently, I am working on custom multi-view type for RecycleView. I know there are many answers to this issue. But I think my answer is much different. I use `enum` to define `ViewType`. Also, the `ViewHolder` is generic and define the type data of itself. Sorry, for talking so much, I will so you the... Continue Reading →
Convert mpeg to wav in Java
In previous tutorial - Bing speech api I introduced Bing Speech Api which help you can recognize speech from audio file. One problems is you can only use `WAV` audio format. So what's happen if we have only `mpeg` file such as mp2, mp3. On your computer you can user some convert tools. But when... Continue Reading →
Android Bing Speech API
Today I have a task need to recognize text from an audio. So I search some solution on the internet then I found Bing API. One of that is Bing Speech API which will help we recognize text from an audio file. In this tutorial, I will show you how to use Bing Speech API.... Continue Reading →
Capture android screenshot
Sometime you need to capture android screenshot. Here is some ways: 1. we press `Home` + `Power` button in 2 seconds. Then screenshot will store on the phone. 2. Use some screenshot app. (You can try search on Google Play with keyword `screenshot`). 3. Use adb to capture screenshot. Today we will focus on capture... Continue Reading →
Android Firebase crash reporting
What's Firebase crash reporting ? Crash Reporting creates detailed reports of the errors in your app. Errors are grouped into clusters of similar stack traces and triaged by the severity of impact on your users. In addition to automatic reports, you can log custom events to help capture the steps leading up to a crash.... Continue Reading →
Android event bus with rxjava Improve
In previous tutorial we created custom rx-bus. In this tutorial, we will improve our sample. In the previous tutorial we just see, to subscribe we will need to register bus. So what's happen if we need to subscribe to many many fragments, activities? The solution is to create `BaseActivity`, `BaseFragment` to the handler. Here is... Continue Reading →