KomliMobile Android SDK

Similar documents
Advertiser Campaign SDK Your How-to Guide

Mocean Android SDK Developer Guide

ECE 455/555 Embedded System Design. Android Programming. Wei Gao. Fall

AdFalcon Android SDK Developer's Guide. AdFalcon Mobile Ad Network Product of Noqoush Mobile Media Group

Overview. About Interstitial Ads: About Banner Ads: About Offer-Wall Ads: ADAttract Account & ID

Understanding class paths in Java EE projects with Rational Application Developer Version 8.0

Developing In Eclipse, with ADT

Tutorial on Basic Android Setup

Setting up Sudoku example on Android Studio

PubMatic Android SDK. Developer Guide. For Android SDK Version 4.3.5

ID TECH UniMag Android SDK User Manual

OpenCV on Android Platforms

Self Testing with MoPub SDK

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3 SP02

Basic Android Setup Windows Version

Jordan Jozwiak November 13, 2011

Tutorial on Basic Android Setup

Islamic University of Gaza. Faculty of Engineering. Computer Engineering Department. Mobile Computing ECOM Eng. Wafaa Audah.

l What is Android? l Getting Started l The Emulator l Hello World l ADB l Text to Speech l Other APIs (camera, bitmap, etc)

Tutorial on OpenCV for Android Setup

Android Application Development

How To Develop An Android App On An Android Device

ANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL I)

Introduction to NaviGenie SDK Client API for Android

Programming with Android: SDK install and initial setup. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna

Mobile Application Development Android

A Practical Guide to creating, compiling and signing an Android Application using Processing for Android.

IOIO for Android Beginners Guide Introduction

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3

Eclipse installation, configuration and operation

Programming with Android: SDK install and initial setup. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna

Tutorial: Android Object API Application Development. Sybase Unwired Platform 2.2 SP02

Installing the Android SDK

SDK Quick Start Guide

Android Tutorial. Larry Walters OOSE Fall 2011

GETTING STARTED WITH ANDROID DEVELOPMENT FOR EMBEDDED SYSTEMS

ADITION Android Ad SDK Integration Guide for App Developers

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

Homework 9 Android App for Weather Forecast

Android ( ) Frank Ducrest

Frameworks & Android. Programmeertechnieken, Tim Cocx

Introduction to Android Programming (CS5248 Fall 2015)

The "Eclipse Classic" version is recommended. Otherwise, a Java or RCP version of Eclipse is recommended.

Android Setup Phase 2

Introduction to Android SDK Jordi Linares

Login with Amazon Getting Started Guide for Android. Version 2.0

How to Set Up Your PC for Android Application Development

Creating a Java application using Perfect Developer and the Java Develo...

Android Java Live and In Action

Android Development. 吳 俊 興 國 立 高 雄 大 學 資 訊 工 程 學 系

With a single download, the ADT Bundle includes everything you need to begin developing apps:

Informatics for Integrating Biology & the Bedside. i2b2 Workbench Developer s Guide. Document Version: 1.0 i2b2 Software Release: 1.3.

Pedometer Project 1 Mr. Michaud /

directory to "d:\myproject\android". Hereafter, I shall denote the android installed directory as

Android Programming. Høgskolen i Telemark Telemark University College. Cuong Nguyen,

Android Development Setup [Revision Date: 02/16/11]

T320 E-business technologies: foundations and practice

How to develop your own app

Module 11 Setting up Customization Environment

Android Development Tutorial. Nikhil Yadav CSE40816/ Pervasive Health Fall 2011

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

Android Mobile App Building Tutorial

06 Team Project: Android Development Crash Course; Project Introduction

Xuan (The STACK Box) Application Development. Xuan (The STACK Box) Application Development

Drobo How-To Guide. Drobo Apps - Configuring Plex Media Server. Topics. What You Will Need. Prerequisites

Android Environment SDK

Board also Supports MicroBridge

Universal Mobile Ads is a plugin for Unreal Engine 4 that enables the MoPub ad mediation system for ios & Android.

Application Development Setup Guide

Getting Started Android + Linux. February 27 th, 2014

Mobile Application Development

Spring Design ScreenShare Service SDK Instructions

Ad Specifications and Guidelines

ANDROID TRAINING COURSE MODULES. Module-I: Introduction to Android. Introducing Android. Installing Development Tools. Using the Emulator.

creating a text-based editor for eclipse

Workshop on Android and Applications Development

App Development for Smart Devices. Lec #2: Android Tools, Building Applications, and Activities

TRANSFORM YOUR MEDE8ER TV WALL FROM THIS: TO THIS: LIBRARY VIEW SHOW VIEW SEASON VIEW FULL SYNOPSIS AND INFO

Android Environment SDK

Creating a 2D Game Engine for Android OS. Introduction

Introduction to Android

How To Develop Android On Your Computer Or Tablet Or Phone

MyMedia With the Desktop genie App User Manual

Crystal Reports for Eclipse

Egnyte for Salesforce v2.1 Administrator s Guide

Advantages. manage port forwarding, set breakpoints, and view thread and process information directly

Getting Started with Android Programming (5 days) with Android 4.3 Jelly Bean

Fahim Uddin 1. Java SDK

ITG Software Engineering

Mobile Applications Grzegorz Budzyń Lecture. 2: Android Applications

How to Install Eclipse. Windows

Table of Contents. Overview Supported Platforms Note Demos/Downloads Known Issues Use Case... 4

Hacking your Droid ADITYA GUPTA

CS 528 Mobile and Ubiquitous Computing Lecture 2: Android Introduction and Setup. Emmanuel Agu

Mobile Application Development 2014

Creating Dashboards. Intellicus Enterprise Reporting and BI Platform. Intellicus Technologies

Tutorial: BlackBerry Object API Application Development. Sybase Unwired Platform 2.2 SP04

Transcription:

KomliMobile Android SDK Overview Komlimobile Ad banner use a small portion of the screen to entice users to "click through" to a richer, full-screen experience such as a website or app store page. To display banners in your Android app, simply incorporate the SDK into your Eclipse project and add a com.komlibile.sdk.komlimobileview to your UI. Requirements 1. Make sure you have the latest copy of the Android SDK and that you're compiling against at least Android v3.2 (set target in default.properties to android-13). 2. The KomliMobile SDK for android requires a run-time of Android 1.5 or later (set android:minsdkversion to at least 3 in your AndroidManifest.xml). This means you can develop with the latest version of the Android SDK and your app will still run on an earlier Android version (1.5 minimum). Incorporating the SDK Incorporating KomliMobile Ads into your app is a three step process: 1. Add the SDK JAR to your Eclipse project. 2. Declare com. komlimobile.sdk. KomliMobileActivity in AndroidManifest.xml. 3. Set up required network permissions in the manifest.

Adding the SDK JAR 1. Right click on your app project in Eclipse and choose Properties. 2. Select Java Build Path and the Libraries tab. Then click Add External JARs... to add the Komlimobile Ads JAR.

com.komlimobile.sdk.komlimobileactivity The Komlimobile Ads SDK requires that com.komlimobile.sdk.komlimobileactivity be declared in your app's AndroidManifest.xml: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.company" android:versioncode="1" android:versionname="1.0"> <application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true"> <activity android:label="@string/app_name" android:name=".komlimobileandroidsdksample"> <intent-filter> <action android:name="android.intent.action.main"/> <category android:name="android.intent.category.launcher"/> </intent-filter> </activity> <activity android:name="com.komlimobile.sdk.komlimobileactivity" android:configchanges="keyboard keyboardhidden orientation screenlayout uimode scre ensize smallestscreensize"/> <meta-data android:name="client_id" android:value="my_ad_unit_id" /> </application> </manifest> You must replace MY_AD_UNIT_ID with your Komlimobile site id. Permissions Making ad requests requires the networking permissions INTERNET and ACCESS_NETWORK_STATE, ACCESS_WIFI_STATE, READ_PHONE_STATE, CALL_PHONE, so these must also be declared in the manifest: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.company" android:versioncode="1" android:versionname="1.0"> <uses-permission android:name="android.permission.internet"/> <uses-permission android:name="android.permission.access_network_state"/> <uses-permission android:name="android.permission.access_wifi_state"/> <uses-permission android:name="android.permission.read_phone_state"/> <uses-permission android:name="android.permission.call_phone"/> </manifest>

Defining a com.komlimobile.sdk.komlimobileview The easiest way to incorporate an ad is to simply define your KomliMobileView as you would any other part of your res/layout/main.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/container" android:background="#ffffff" android:textcolor="#000000" android:layout_height="fill_parent" android:orientation="vertical" android:layout_width="fill_parent"> <com.komlimobile.sdk.komlimobileview xmlns:komlimobile="http://schemas.android.com/apk/res/ com.company" android:layout_width="fill_parent" android:layout_height="52dip" android:layout_gravity="bottom" komlimobile:textcolor="#000000" komlimobile:mode="live" komlimobile:textsize="8" komlimobile:adrefresh="20" komlimobile:adtype="text+picture" komlimobile:adsize="a" komlimobile:rmasupport="a"/> </LinearLayout> textcolor, the color your text ad s text should have. Eg: #FFFFFF. mode, the mode in which your SDK will run, set it to test while developing your app. Ensure that you set the mode to live when distributing the app to your user. textsize, the size of your text ads s test. adrefresh, the time after which a new ad will be loaded. The default auto refresh interval is 10 seconds. adtype, the type of ad (text/ picture / text+picture) adsize, request for specific banner / creative sizes. (A / T / S / M / L / XL / XXL). A ALL (default), T text only, S small ( 120 x 20 ), M medium ( 168 x 28 ), L large ( 216 x 36 ), XL ( 300 x 50 ), XXL (320 x 48 / 320 x 52 ). rmasupport, specify the support for Rich Media Ad. (A / NA). A available, NA not available. Default is NA Setting the Test Mode When developing your app, set the Mode to test. In test mode you will receive all kinds of test ad. komlimobile:mode="test" Note: Ensure that you set the Mode to live when distributing the app to users. By default, Mode is set to live

The attrs.xml in the res/values folder. Add a resource file attrs.xml to the res/values folder of your android project and copy the following code: <resources> <declare-styleable name = "com.komlimobile.sdk.komlimobileview"> <attr name="mode" format="string" /> <attr name="textsize" format="integer" /> <attr name="textcolor" format="color" /> <attr name="adrefresh" format="integer" /> <attr name="adtype" format="string" /> <attr name="adsize" format="string" /> <attr name="rmasupport" format="string" /> </declare-styleable> </resources> For any questions /clarifications contact support@komlimobile.com