Sunday, October 27, 2013

How can I make the Android emulator show the soft keyboard?

Question:
I'm debugging an issue with the soft keyboard display not displaying when it should. However, I don't have a device handy for testing. The problem is that the emulator never shows the soft keyboard.
Some skins have a keyboard constantly displayed on the right, some don't, but none that I've tried so far has ever shown a keyboard on the device screen. For what it's worth, this is using the latest version of the emulator (Android emulator version 18.0 (build_id MASTER-306762)), running on OSX 10.7.
Is there some setting that I missed?

Answer:
I found out how to do this on the emulator itself. All you need to do it go to \
settings -> Language & Input -> Go to the "Keyboard & Input Methods -> click Default
This will bring up a Dialog in which case you can then disable the Hardware Keyboard by switching the hardware keyboard from on to off. This will disable the Hardware keyboard and enable the softkeyboard.

Basic setup for Microsoft Remote Desktop and Remote Desktop Client for Android



Setup in the video:
- Windows 8.1 Pro running on a slow and outdate Netbook, BenQ Joybook Lite U101 with Aton N270, connect router with cable.
- HTC One X running Android 4.2.2, connect via WiFi.
- HTC Fly running Android 3.2.1, connect via WiFi.


Before establish connection between host PC and remote client app, you have to setup in both PC side and client side.

Set up your Remote Desktop in host PC. (This example running Windows 8.1 Pro)

- Enter "Remote Desktop" in Search, select "Select users who can use remote desktop".


- Under Remote tab, enable "Allow remote connections to this computer" under Remote Desktop. Click the "Select Users" button.


remark: what type of connection should be allowed?

Network Level Authentication (NLA) is an authentication method that completes user authentication before you establish a full connection and the sign-in screen appears. This can help protect the remote PC from hackers and malware.
  • To prevent anyone from connecting to your PC using Remote Desktop or RemoteApp and Desktop Connections, pick Don’t allow remote connections to this computer.
  • If you don't know which version of Remote Desktop Connection other people are using, pick Allow remote connections to this computer.
  • If you know that the people who will connect to your PC are running Windows 7 or Windows 8 on their PCs, check the Only allow connections from computers running Remote Desktop with Network Level Authentication (recommended) box.
Reference: What types of Remote Desktop connections should I allow?

- Click "Add" button.


- Select "Users" in Select the object type. Enter object name and click "Check Names", to get the selected object.


- OK.


- and OK.


 Install and start "Microsoft Remote Desktop" for Android.

Set up your Remote Desktop Client in Android side.

- Select "Remote Desktops" and click the "+".


- Enter Connection, IP address in PC name, User name and Password. And click the check mark on upper-right.


Read the Official FAQ.

Project Shield - Using Google's infrastructure to protect freedom of expression

Project Shield is an initiative to use Google's infrastructure to protect free expression online. The service currently combines Google's DDoS mitigation technologies and Page Speed Service (PSS), which allow websites to serve their content through Google to be better protected from DDoS attacks. The service is currently seeking 'trusted testers' and people with sites that serve media, elections and human rights-related content are invited to apply for an invite atg.co/projectshield

Sharpen bitmap using Convolution

The previous exercise "Blur bitmap using Convolution". By changing the matrix of Convolution class, we can use it to sharpen bitmap.

 class Convolution {

// matrix to sharpen image
int[][] matrix = { { 0, -1, 0 }, { -1, 5, -1 }, { 0, -1, 0 } };
...


Sharpen bitmap using Convolution

Getting Started with Remote Desktop Client on mobile

Microsoft release Remote Desktop Client for Android and iOS recently. Users can use the Microsoft Remote Desktop Client to connect to a remote PC and your work resources from almost anywhere.

Download here:
for Android from Google Play
for iOS from iTune




***To establish connection between Microsoft Remote Desktop Client to connect between remote PC, you have to do some setup. Refer to the document: Microsoft Remote Desktop Clients.

Very nice intro at updated Google Maps Android API v2 documentation page

Google Maps Android API v2 documentation page updated with very nice interactive intro:)


Google Maps Android API v2 documentation page



Visit: https://developers.google.com/maps/documentation/android/

USB On the Go, for HTC



If your Android support USB OTG, you can access USB Storage via USB OTG cable. (Please notice that not all devices support this feature)

Here is a post describe using of USB On the Go for HTC device from HTC Blog: http://blog.htc.com/usb-otg/

  • First, get your USB OTG cable ready
  • Plug your USB drive into the USB port on the cable, then plug the cable into your phones microUSB port.
  • Now you can access the data on your USB drive through your HTC smartphone. Using USB OTG, you can use apps like Gallery, Music and Polaris Office to easily access files on your USB drive and your smartphone.
  • When you’re done, you can quickly check available storage on your USB drive by going to Setting > Storage on your HTC phone.  Also, don’t forget to unmount your USB drive when you’re finished.