IntelliJ Plugin Development introduction: GUI form designing

JDesigner

This post explains IntelliJ IDEA Plugin development. GUI form and Dialog IntelliJ provides 2 types of GUI component called GUI form and Dialog. IntelliJ uses special XML format with extension .form to design GUI component. Form is similar to Android’s res/layout xml files, and it makes easy to developing GUI on IntelliJ platform. Ref Creating and Opening Forms GUI Designer Basics Creating new GUI form or Dialog can be done by right click on src → New → GUI Form or Dialog. Detail explanation for each GUI component is done later.  For both components, form file (extension .form) and bound class (extension .java) will be created.   Understanding .form What is the […]

Continue reading →

Source code reading of waifu2x

Memo for self study. SRCNN – Super resolution by deep convolutional neural network Recently many application is developed using deep learning. waifu2x is a image super resolution application using convolutional neural network. The source code is open at github. It is developed using torch7, so the Lua programming language is used. I have never used Lua, but it is similar to python, so reading Lua source code was not so difficult without further study.  waifu2x supports upscaling (“scale”) and noise reduction (“noise”), but I will focus on scaling function here.  * Actually same CNN network architecture is used for upscaling, and noise reduction, they work in same way. Main difference is only training set used during training.  […]

Continue reading →

Install Android phone’s app on Android TV via Wifi

es-file-explorer-receive-mod2

  As far as I know, this is one of the most convenient method to transfer files between Android devices and transfer & install Android apps in apk format. If you want to transfer by using USB, not by Wifi see old post “Install Android phone’s application to Android TV“. Sideloading apps on Android TV Many of the Android phone/tablet’s apps are not on the Google play store on Android TV (Nexus Player, Sony BRAVIA Android TV, NVIDIA Shield etc…). Many famous Android phone app is not correspond to Android TV yet, for example Browser app: Chrome, Firefox, Opera, UC Browser… SNS app: Facebook, Twitter, What’s app, … System/performance app: Antutu, CPU  […]

Continue reading →

Netflix sign up procedure on Android TV

s-netflix_2

Sign up procedure I signed up Netflix with a 1-month free trial using Sony BRAVIA Android TV. Below is a procedure. * This post is written at 2016 March. The procedure might change in the future. You need a credit card even signing up free trial. First welcome page: price is shown in ringgit because I registered in Malaysia.   Step 1: Register Name E-mail Address Password E-mail subscription setting Step 2: Choose your plan There seems to be 3 plans, “Basic“, “Standard” and “Premium“. The big difference is the video quality (you cannot enjoy Full HD with Basic plan) and how many screens you can watch at the same […]

Continue reading →

Try Netflix on Android TV

netflix_1

  Netflix No need to explain, Netflix is most famous streaming movie & TV series provider, and now there’s more than 75 million subscribers (Wikipedia). For movie lovers, it is a must have service so that you can enjoy unlimited movie at home with flat-rate! Netflix is available with Android TV devices (such as Nexus Player, recent Sony BRAVIA TV etc.), and below are some screen shots to introduce.    Main page: Many popular movies and TV series are listed. I feel that Netflix is fully utilizing “recommendation” to show personalized video lists. For example, you can see recommended video lists based on the video you watched before. I guess it is […]

Continue reading →

Procedure for multi-language support for WordPress by building multisite

multi-language-switcher-flag-and-description

I started this blog in English, but I’m Japanese and I sometimes want to write some post in Japanese. I added Multi-Language support for this WordPress by using multisite feature which is supported by default WordPress feature. Now Original English site and newly created Japanese site are running on my WordPress. How to support multi-language in WordPress There are several ways to support multi language in WordPress. Roughly, 4 methods are available and you need to choose best solution based on your requirement and situation. Install independent WordPress on different server in each country For each language to support, prepare host server in each country and make independent WordPress site. […]

Continue reading →

Recent update of LeanbackLauncher Home app

leanback02

Recently (actually not recently, I noticed this change maybe 1-2 month ago), leanback launcher app, Android TV’s default home launcher app, has updated. I noticed 2 changes for its behavior. I also want to discuss about current situation for home launcher apps for Android TV. Icon layout customization Current leanback launcher has really few features we can customize its configuration. But updated app allows you to customize icon layout by long-pressing center button on the app launcher icon.  It seems it is only allowed for “Apps” and “Games” rows which are default Android TV rows, and other rows (for example, “Inputs” row of SONY BRAVIA TV) layout cannot be customized. Other […]

Continue reading →

Testing YouTube Android Player API on Android phone & Android TV

youtube-android-player-api

  I tested YouTube Android Player API on Android TV devices. Sadly it is not working well with Android TV’s YouTube app (“YouTube for Android TV”). Only YouTube App Launcher Intents works well for now (2016.1.14). YouTube Android Player API YouTube Android Player API is an official library on Google Developers web site, which enables us to integrate YouTube functionality into our (third party’s) Android apps. We can control YouTube video/playlist playback from our app, and customize playback view using YouTube Android Player API. YouTube app must be installed on user’s device As written in the official page, How it works The API client library interacts with a service that is distributed […]

Continue reading →

VerticalGridFragment
– Android TV application hands on tutorial 19

verticalgridfragment

Showing icons on vertical alignment We learned BrowseFragment to show icons, where icons are aligned horizontally when the size increases. VerticalGridFragment is another Fragment provided by leanback support library, where it shows the icons with vertical alignment.   For example, I guess Sideload Launcher – Android TV is using this VerticalGridFragment to show installed app icons.  This post explains how to implement VerticalGridFragment. The implementation is referenced from Google’s sample implementation in the same way as before. Create parent Activity – VerticalGridActivity Starting by creating Activity. right click on “ui” package, [New] → [Activity] → [Blank Activity], type Activity Name as “VerticalGridActivity” and click [Finish]. It will automatically create VerticalGridActivity class, activity_vertical_grid.xml layout resource and add this […]

Continue reading →

BrowseFragment ListRow customization
– Android TV application hands on tutorial 18

CustomListRow

More customization of BrowseFragment – Multiple rows icon alignment on ListRow Continuing from the previous chapter, BrowseFragment Header customization, I proceed to customizing ListRow. Chapter 17: Customizing Header Chapter 18: Customizing ListRow (we are here!) Leanback Launcher app shows multiple rows in Apps, Games bar if the number of icon is many (2 rows are used for “Apps” category in above picture). But original ListRow provided by Leanback support library only allows to show contents in one line. In this chapter, goal is to allow ListRow to show multiple rows in each header, by making customized class of ListRow (Model) and ListRowPresenter (Presenter). Explanation: Dig in source code  ListRow (Model), ListRowView (View), ListRowPresenter (Presenter) is used for […]

Continue reading →