Nov 5, 2015
Google Play services 8.3
Google Play services 8.3 is now out enabling you to build better apps with new functionality for: Sign In, Fused Location Provider, App Invites, and the Wearable Data Layer APIs.
Android and Android Studio: Getting Started
Learn how to get started with Android and Android Studio in this short tutorial. It demontrates how to install Android Studio (Google’s official Android IDE) and create your first Android app. You’ll learn how to download the Java SDK, download and install Android Studio, create a new “Hello World” project, and run your app on an emulator and real Android device.
You’ll also learn a series of Protips from an Android app startup as they go through the process of developing their app in a highly stressful environment. With over 1 billion Android devices already activated, Android represents an incredible opportunity for developers. Installing Android Studio is your first step!
Download the Java Development Kit: http://goo.gl/zXjC
Download Android Studio: http://goo.gl/2qpr
Android USB Drivers for Windows: http://goo.gl/91Y8C
Once you’ve installed Android Studio, learn more about developing Android Apps using these resources:
Android Developer Documentation: http://goo.gl/km7ab
Developing Android Apps Udacity Online Training: https://goo.gl/u1pxZv
Android Design for Developers Udacity Online Training: https://goo.gl/7W2S28
Check out more music from the composer: www.terramonk.com
Oct 15, 2015
Interactive flip ImageView using ObjectAnimator
User touch on buttons to flip the ImageView forward/backward alternatively, around X-axis and Y-axis.
package com.example.androidflipview; import android.animation.ObjectAnimator; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.ImageView; public class MainActivity extends AppCompatActivity { Button buttonFlipX, buttonFlipY; ImageView imageView; boolean dirX = true; boolean dirY = true; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); imageView = (ImageView)findViewById(R.id.image); buttonFlipX = (Button)findViewById(R.id.buttonflipX); buttonFlipY = (Button)findViewById(R.id.buttonflipY); buttonFlipX.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v) { if(dirX){ dirX = false; buttonFlipX.setText("Flip X Backward"); ObjectAnimator flip = ObjectAnimator.ofFloat(imageView, "rotationX", 0f, 180f); flip.setDuration(500); flip.start(); }else{ dirX = true; buttonFlipX.setText("Flip X Forward"); ObjectAnimator flip = ObjectAnimator.ofFloat(imageView, "rotationX", 180f, 0f); flip.setDuration(1000); flip.start(); } } }); buttonFlipY.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v) { if(dirY){ dirY = false; buttonFlipY.setText("Flip Y Backward"); ObjectAnimator flip = ObjectAnimator.ofFloat(imageView, "rotationY", 0f, 180f); flip.setDuration(2000); flip.start(); }else{ dirY = true; buttonFlipY.setText("Flip Y Forward"); ObjectAnimator flip = ObjectAnimator.ofFloat(imageView, "rotationY", 180f, 0f); flip.setDuration(3000); flip.start(); } } }); } }
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity"> a <TextView android:id="@+id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="android-coding.blogspot.com" android:textSize="28dp" android:textStyle="bold" /> <Button android:id="@+id/buttonflipX" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Flip X Forward" /> <Button android:id="@+id/buttonflipY" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Flip Y Forward" /> <ImageView android:id="@+id/image" android:layout_width="match_parent" android:layout_height="match_parent" android:src="@mipmap/ic_launcher" /> </LinearLayout>
Sep 14, 2015
Get Started AdMob for Android in Android Studio
AdMob uses the Google Mobile Ads SDK. This guide will show you how to integrate the Google Mobile Ads SDK into a brand new app and use it to display a simple banner ad. It should take about thirty minutes to complete and will give you a good sense of how the SDK functions within an app. If you're new to Google Mobile Ads, this is a great place to start before moving on to more advanced examples.
https://developers.google.com/admob/android/quick-start
https://developers.google.com/admob/android/quick-start
Sep 9, 2015
Android Asset Studio
Android Asset Studio is a set of web-based tools for generating graphics and other assets that would eventually be in an Android application's res/ directory.
See the source on GitHub.
See the source on GitHub.
Subscribe to:
Posts (Atom)