Skip to main content

Posts

Showing posts from January, 2011

Create your first Google Maps application

In this article i will show you  the different steps to follow to create your first Google Maps application. We will also demonstarte some usefull options that  give your application more flexibility and performance. Creating the Project Using Eclipse, create a new Android Project and name it   MapsDemo as  shown in Figure 1 Figure 1 Obtaining a Maps API Key Before you integrate Google Maps in your Application, you need  to apply for a Free  Google Maps API Key. To apply for key follow the steps  below. You can refrence to Google's documentation for more  details. First, find  this file ( debug.keystore )    and copy it (for simplicity) in c:\\Android(Create a folder named Andrioid under c:\\) Extract the MD5 fingerpoint using the keytool.exe included with your JDK installation.You can find the  keytool.exe under  " C:\Program Files\Java\<JDK_version_number>\bin " folder. keytool.exe -list -alias andro...

Change custom title view at runtime. Android

Sometimes you are invited to update the string label of your title bar activity at runtime. To do this,  we start by adding a new xml file of the  custom view  to be  use as  a new layout for the title bar view. We use in this example a textView view  to update the title's string. <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/screen"     android:layout_width="match_parent" android:layout_height="match_parent"     android:orientation="vertical">        <TextView android:id="@+id/custom_text"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_alignParentLeft="true"          /> </RelativeLayout> In the main.xml  file, we use ...