Robotium Jump Start PRO

The Robotium framework provides us with testing automation for the android platform. It supports testings both for native and for hybrid applications. Using the Robotium framework we can easily write our own automatic black-box test cases. The following is the code of the activity I test in the video clip. package com.lifemichael.samplecalc; import android.os.Bundle; import […]

The Android Search Framework PRO

The android platform provides us with a search framework that helps us implementing search mechanism in our application. We can allow the user to enter the searched term either through a search dialogue shown on top of the screen or through a search view widget. When developing an application that includes a searching mechanism we […]

Developing Android Remote Services PRO

The first step is coding the aidl file that includes our definition for the interface that lists the methods we want to enable their invocation from another process. package com.abelski.currencyservice; interface ICurrencyService { double getCurrency(String country); } The aidl compiler will go over that file and auto generate the interface we defined in the aidl […]

Pausing & Resuming Java Script Execution in Web View PRO

When executing code written in Java Script in our web view we would like to pause it when the user moves to another activity and resumes it when he returns. The following code sample includes two activities. The first activity includes a web view that executes code written in Java Script. The second activity is […]

The Android findViewById Function PRO

Most Android developers are fairly well familiar with the findViewById function our activity inherits from the Activity class. This function receives the ID number of a specific View resource the activity user interface includes. If you ever try to call that function before calling the setContentView function (our activity inherits from the Activity class) then […]

Skip to content Update cookies preferences