12. November 2016

Android widget not visible on Lenovo K5 – Solved

I’ve created Android Widget for controlling ESP8266 relay the last week.

widget-android

The only problem was that the widget was not visible on Lenovo K5.

I was searching for the root cause using method: “Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth.”

I grabbed several other repositories with widgets from Github. Widgets from other projects were working.

To keep long story short. Here is the configuration when widget does not appear:

2016-11-12-android-studio-nothing

Here is the configuration when widget properly appears:

2016-11-12-android-studio-default

Can you spot the difference?

It is very simple. Large number of Android devices displays widget just after installation even when using the first configuration. The problem with Lenovo K5 is that it does not register widget just after installation via adb. You need to launch MainActivity and only after that UI subsystem displays the widget.

Original code from Obaro’s repo is without MainActivity. I took inspiration from Udacity’s Android widget. After I’ve added MainActivity and several other small files into the project the widget appeared even on Lenovo K5.

You can find updated version at GitHub/LampWidget. Thanks to Adusak for a hint about MainActivity.

1. November 2013

How to configure Two-Finger Scrolling on Lenovo notebook to behave the same way like Apple MacBook

2016-11-21 Update for Windows 10

Mac users are familiar with Two-Finger Scrolling feature. You can place two fingers on the mouse track pad and you’re able to scroll content on the screen. Since Mac OS X 10.6 Apple changed direction of scrolling to match gestures used on tablets or phones. It’s interesting that for more than decade scrolling was done in opposite direction. When you swiped down then the content was scrolling up. Many users were confused after switch, but it quickly became natural.

Lenovo notebook has also support for multitouch gestures and scrolling by two fingers. The only problem is that default installation, behave the same way like old Mac OS. It’s reversed. When you need to switch between Mac and Lenovo then it’s quite confusing. Fortunately it’s possible to configure it just by few clicks.

Windows 10

Search for Mouse & touchpad settings (press Window and type for word mouse):

windows-10-mouse

Open Mouse & touchpad settings and in section Related Settings click Additional mouse options (bottom of screen).

windows-10-additional-settings

Open UltraNav tab and click TouchPad Settings

windows-10-ultranav

Click Scrolling in Select an item. Click Two-Finger Scrolling in the menu. Check: Enable reverse scrolling direction

windows-10-two-fingers-scrolling




Windows 7 and older UltraNav

Search for Mouse configuration (press Window and type word mouse):

lenovo-mouse-config

Open UltraNav tab and click TouchPad Settings

lenovo-ultranav

Click Scrolling in Select an item. Check: Enable reverse scrolling direction

lenovo-reverse-scrolling

Click OK and Two-Finger Scrolling should behave the same way like Mac OS. :-)

9. June 2011

Connect Android to Internet via PC with WiFi

Imagine situation: you have only PC or Notebook with Windows connected to the Internet and you also need to connect Android device to net. There is no WiFi device arround.

First approach is to create just ad-hoc wifi network. The only problem is that Android does not support ad-hoc networks.

Some folks suggest to use VirtualRouter. Unfortunately I had some problems to connect to the network created by this software. This solution doesn’t work for me.

Then I found solution that works like a charm – Connectify.me.

Just turn-on sharing on the device connected to the Internet and choose Home network with virtual interface.

Then start Connectify.me and set up network.

I found another issue related to Lenovo Internet Connection tools. WiFi was shutting down after few minutes. It is quite easy to fix it, when you know where to find right checkbox.

Just open “Lenovo – Internet Connection”, go to Tools. Open Global Settings. Uncheck “Allow wireless radios to be turned off when inactive”. Click ok.

Enjoy WiFi and Android :-)