Navegar com GPS Offline no Android

_____Comente_____Favorite______Inscreva-se Neste tutorial explico como usar o navegador GPS do android Off line você carrega a area do mapa e pode usar ela off line, ativando uma opção no google labs. — Google Plus plus.google.com Twitter twitter.com Facebook www.facebook.com Site Oficial www.davidfesilva.com Meu Canal http Orkut www.orkut.com.br FormSpring www.formspring.me Página Facebook www.facebook.com Contato davidfesilva@gmail.com — Filmadora Samsung Q10 Filmadora Samsung h300 — “Navegador GPS” “GPS do Android” “GPS Offline” “Android Brasil ” “android market” “app android” “apps android” “android download” “gprs” “tablet android” “tablets android” “android 2.1″ “android pc” “android games” “android 2″


Tween animation: rotate

Implement tween animation of rotating

Rotate around center
Rotate around corner

Create /res/anim/rotate_center.xml for animation of rotating around center

<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android"    android:interpolator="@android:anim/linear_interpolator">    <rotate        android:fromDegrees="0"        android:toDegrees="360"        android:pivotX="50%"        android:pivotY="50%"        android:duration="2000"        android:startOffset="0"/></set>

Create /res/anim/rotate_corner.xml for animation of rotating around the upper-left corner

<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android"    android:interpolator="@android:anim/linear_interpolator">    <rotate        android:fromDegrees="0"        android:toDegrees="360"        android:pivotX="0%"        android:pivotY="0%"        android:duration="2000"        android:startOffset="0"/></set>


<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="fill_parent"    android:layout_height="fill_parent"    android:orientation="vertical" >

    <TextView        android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:text="@string/hello" />    <Button        android:id="@+id/rotatecenter"        android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:text="Rotate around center"/>    <Button        android:id="@+id/rotatecorner"        android:layout_width="fill_parent"        android:layout_height="wrap_content"        android:text="Rotate around corner"/> <LinearLayout     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation="vertical"      android:gravity="center">

     <ImageView         android:id="@+id/floatingimage"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:src="@drawable/ic_launcher" />



main activity

package com.exercise.AndroidAnimTranslate;

import android.app.Activity;import android.os.Bundle;import android.view.View;import android.view.animation.Animation;import android.view.animation.AnimationUtils;import android.widget.Button;import android.widget.ImageView;

public class AndroidAnimTranslateActivity extends Activity {    /** Called when the activity is first created. */    @Override    public void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);        setContentView(R.layout.main);

        Button buttonRotateCenter = (Button)findViewById(R.id.rotatecenter);        Button buttonRotateCorner = (Button)findViewById(R.id.rotatecorner);        final ImageView floatingImage = (ImageView)findViewById(R.id.floatingimage);

        final Animation animationRotateCenter = AnimationUtils.loadAnimation(this, R.anim.rotate_center);        buttonRotateCenter.setOnClickListener(new Button.OnClickListener(){

   @Override   public void onClick(View arg0) {    // TODO Auto-generated method stub    floatingImage.startAnimation(animationRotateCenter);   }});

        final Animation animationRotateCorner = AnimationUtils.loadAnimation(this, R.anim.rotate_corner);        buttonRotateCorner.setOnClickListener(new Button.OnClickListener(){

   @Override   public void onClick(View arg0) {    // TODO Auto-generated method stub    floatingImage.startAnimation(animationRotateCorner);   }});    }}

Download the files.

Related article:
- Animate falling action using Animation of translate
- Animate Fade In/Fade Out by changing Alpha
- Animation of Scale

Written by admin in: android, sample code |

Practical Android 4 Games Development

Product Description

Practical Android 4 Games Development continues your journey to becoming a hands-on Android game apps developer. This title guides you through the process of designing and developing game apps that work on both smartphones and tablets, thanks to the new Android SDK 4.0 which merges the User Interface and Experience APIs and more.

The author, J.F. DiMarzio, has written eight books, including Android: A Programmer’s Guide—the first Android book approved by Google—recently updated and translated for sale in Japan. He has an easy-to-read, concise, and logical writing style that is well suited for teaching complex technologies like the Java-based Android.

From 2D-based casual games to 3D OpenGL-based first-person shooters, you find that learning how to create games on the fastest growing mobile platform has never been easier.

  • Create 2D and 3D games for Android 4.0 phones and tablets such and the Motorola Xoom
  • Build your own reusable “black box” for game development
  • Easy-to-follow examples make creating the sample games a hands-on experience

What you’ll learn

  • How to design and develop compelling 2D and 3D games
  • How to create rich environments and characters
  • How to do collision detection
  • How to add realism to your games with basic game physics
  • How to create a gaming “black box” that can be reused
  • How to play your games on Android phones and tablets

Who this book is for

This book is for aspiring Android game app developers who are ready to move beyond beginning level books or tutorials on Android game building.

Table of Contents

  1. Welcome to Andriod Gaming
  2. Star Fighter: A 2-D shooter
  3. Press Start: Making a Menu
  4. Drawing the Environment
  5. Creating Your Character
  6. Adding the Enemies
  7. Adding Basic Enemy Artifical Intelligence
  8. Defend yourself!
  9. Publishing Your Game
  10. BlobHunter: Creating 3-D Games
  11. Create an Immersive Environment
  12. Navigating the 3-D Environment

About the Author

J. F. DiMarzio is a seasoned Android developer and author. He began developing games in Basic on the TRS-80 Color Computer II in 1984. Since then, he has worked in the technology departments of companies such as the U.S. Department of Defense and the Walt Disney Company. He has been developing on the Android platform since the beta release of version .03, and he has published two professional applications and one game on the Android Marketplace. DiMarzio is also an accomplished author. Over the last 10 years, he has released eight books, including Android: A Programmer’s Guide. His books have been translated into four languages and published worldwide. DiMarzio’s writing style is very easy to read and understand, which makes the information in the topics that he presents more retainable.

Written by admin in: android, sample code |

AndGPS | Connect Android Phone To GPS Solutions