Portlet Request URL Parts

While working with portlets on different Portal Servers (WebSphere Portal Server, Liferay Portal Server), there are times when we need to construct a URL to a local file within the project. There are several ways to this but leveraging the Request objects has been something i’ve been playing around with. To save time, here are…


Java HTTP Call

This tutorial shows a basic “Getting started” Java program but as always, we would like to add something practical. In this case, we would make an HTTP call using HttpURLConnection, retrieve the results and display them.


Ingress-like Engine

Quick Summary: A blog that captures some research notes, ideas, and concepts on building out an GPS based engine similar to Ingress


android.content.res.Resources$NotFoundException: Resource ID #

If you ever encounter an NotFoundException (android.content.res.Resources$NotFoundException), it is an indicator that there is a resource not found or properly declared. The error message provides you the Resource ID – 0x7f070000, and this ID should be found inside R.java. Sample Error Message 02-13 16:07:20.908: E/AndroidRuntime(2716): android.content.res.Resources$NotFoundException: Resource ID #0x7f070000 type #0x10 is not valid Ensure…


Android Google Maps API Tutorial

This tutorial covers The Android Google Maps API v2. It will show how you can create an Android application displaying a Google Map, finding your current location, and provides a base for more advanced map functionality and development.


Android Getting Started

There are many beginner tutorials out there and the articles at developer.android.com do a pretty good job already. What I will show you instead is getting started quickly and progressively move towards a real working application with practical use instead of just a Hello World application.


Uncaught SyntaxError: Unexpected end of input

If you are using Google Chrome to develop/debug your HTML/Javascript applications you may run into this message every now and then; Uncaught SyntaxError: Unexpected end of input. It simply means that there’s something broken in your syntax, usually more or less braces ‘{, }’ in your script. Google Chrome will help you identify which file…


java.net.ConnectException: failed to connect to /192.168.x.x – connect failed: ENETUNREACH (Network is unreachable)

Another helpful tip while building multi-device applications (a few android tablets, tomcat web servlet) on your local network is to ensure all devices are connected to the wifi network. Ensure that they all have a valid IP and that they can see (ping) each other. If not, you may encounter a: java.net.ConnectException indicating that the…


Zoom Lock on Google Chrome

In web applications developed for mobile devices, sometimes you want to lock the zoom. This was especially application when i worked on a Point of Sale system involving Acer Android-OS based touch monitors. The following snippet below worked for my particular setup: Acer 21.5 Inch Touch Monitor with 4.1 Android OS Windows Dev Machine and…


Android screenOrientation Lock

Sometimes in your Android applications, you want to lock the orientation to portrait or landscape, you can do so by adding the “screenOrientation” attribute in EVERY Activity you want in that orientation. Activities without this attribute will continue to rotate as you flip the device. In addition, adding the attribute to the <application> manifest does…