City Application Template Android

* * * (3 ratings)
City Application Template | App Code for Sale | Hero

Screenshots

Overview

City Application Template is a native Android application that provides you an easy way to create a presentation application of a particular city. It doesn't require programming knowledge, all you have to do is to edit a couple of configuration files.

Structure

The application has 3 main parts:

  • General Info screen
    • presents general info about the user defined city
  • Pictures screen
    • presents user defined pictures of the city
  • Hotels screen
    • presents user defined hotels of the city in a list form

The Pictures and Hotels screens have additional details screens for every picture and hotel defined by the user.

Importing the project

In order to import the project all you have to do is :

  • File -> Import -> Android existing code -> select eclipse project (CityApp1)

  • Right click on project -> Properties -> Android -> Project Build Target: check Google Apis - api level 14

Configuration Files

The application is easy to configure in order to populate it with desired data.

GeneralInfo.xml

This .xml file contains general information about the city. The fields that the user must edit are:

  • Name

  • Population

  • Area

  • Mayor

Hotels.xml

In this .xml file the user can define for the current city. Every tag must contain the following information:

  • Name

  • Description

  • Address

  • Telephone

  • Email

  • Website

  • Latitude

  • Longitude

  • Average Price

  • Rating

PicturesMap.java

This .java file contains a map of key-value properties representing the name of the picture - key and its caption-value. !Attention: The name of the picture provided in the map must exactly match the name of the actual picture defined into the /drawable-hdpi folder.

Additional configurations

If you want to configure the 3 launcher icons from the main activity you must override the following files with your own version:

  • launcher_info.png: for the info launcher icon

  • launcher_picture.png: for the picture launcher icon

  • launcher_hotel.png : for the hotel launcher icon

In order to edit the background pictures of each screen you must override the following files with your own version:

  • main_bg: for the launcher screen background

  • general_info_bg: for the general info screen background

  • pictures_bg: for the pictures screen background

  • hotels_bg: for the hotels screen background

Map Key Configuration

Into the /res/layout/activityhoteldetails.xml you have the following map component:

<com.google.android.maps.MapView
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/mapview"
        android:layout_width="fill_parent"
        android:layout_height="180dp"
        android:layout_alignParentLeft="true"
        android:layout_alignParentRight="true"
        android:layout_below="@+id/hotel_details_title"
        android:layout_marginLeft="10dp"
        android:layout_marginRight="10dp"
        android:layout_marginTop="20dp"
        android:apiKey="0lhSNOa5yyfxoY5VXPhPG0slP4HqIdNQoF2AxnA"
        android:clickable="true" />

You must replace the android:apiKey field with your own key. See details here.

After these configurations the app is ready to run. An example of configuration is provided in the source code.

19 Comments Leave a comment

19 Comments

Please login in order to leave a comment.

Newest first
  • boy 2014-01-03 17:42:35 Thread #9166

    Hi,

    Is it possible to integrate admob to this app?

  • ramesh.devaiya.9 2013-04-20 13:30:39 Thread #1989

    Hi, i have questions.. Are you providing your android application with source code or just with an APK.. Is it full application with source code. Please reply me fast as i want to buy your application.

  • vegdirectory 2013-03-21 23:28:45 Thread #1645

    I have some questions.

    1. Is the hotels data easily uploaded/updated using SQL?
    2. Is it possible ot have multiple criteria, eg hotels, restaurants and bank?
    3. Is there a map view option that shows all the hotels etc. near the user

    Thanks

    peter@earthsave.ca

  • xindgi 2012-12-01 11:37:51 Thread #768

    Can you write me back?? I have some plan to discuss. My email is xindgi@gmail.com

  • benidorm.webdesign 2012-09-26 12:40:34 Thread #481

    I have some questions about this appp? email is benidormwebdesign@gmail.com

  • Electryc Author 2012-07-24 05:52:29 Thread #294

    Hi wolfgangs! I'm glad it works now. We can get in contact if you let me an e-mail address here. Could you kindly review your initial rating of the application ?

    Thank you, Andrei

  • wolfgangs Buyer 2012-07-24 00:22:29 Thread #293

    thanks, it works now. How could I get in contact with the developer of the app?

  • dj,charon 2012-07-23 17:18:00 Thread #292

    Bv.

  • Chupa Team 2012-07-20 09:52:41 Thread #279

    Problem Fixed, download the file again pls.

  • wolfgangs Buyer 2012-07-18 03:04:57 Thread #277

    When downloading the file, the page is blank and no file/update can be downloaded.