Posts

Showing posts from August, 2016

Asynchronous Android Programming, 2nd Edition

Image
Asynchronous Android Programming About This Book Construct scalable and performant applications to take advantage of multi-thread asynchronous techniques Explore the high-level Android asynchronous constructs available on the Android SDK Choose the most appropriate asynchronous technique to implement your next outstanding feature Who This Book Is For This book is for Android developers who want to learn how to build multithreaded and reliable Android applications using high-level and advanced asynchronous techniques and concepts. What You Will Learn Get familiar with the Android process model and low-level concurrent and multithread constructs available on the Android SDK Use AsyncTask to load data in the background, delivering progress results in the meantime Enhance UI performance and responsiveness by sending work to a service running in the background Defer, schedule, and batch work on the Android system without compromising the battery life and user experience Use the JNI interfac

Auto scrolling (horizontal running) TextView

Image
It's follow-up post about my old post of " Implement auto-running TextView ", to make a TextView horizontal scrolling automatically. This video show how it tested on Android emulator running Android 7.0 Nougat API 24, in Multi-Window Mode also. xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="16dp" android:orientation="vertical" tools:context="com.blogspot.android_er.androidautotextview.MainActivity"> android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_margin="20dp" android:layout_gravity="center_horizontal" android:autoLink="web" android:text="http://android-er.blogspot.com/" android:textStyle="bold"/> android:id="@+

TextView, auto scroll down to display bottom of text

Image
This example show how to make a TextView auto scroll down to display bottom of text. In the demonstration, the upper TextView is normal, user cannot see the bottom of text if it is full. The lower one, the TextView will auto scroll down, such that user can see the new added text. xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:padding="16dp" android:orientation="vertical" tools:context="com.blogspot.android_er.androidautotextview.MainActivity"> android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margin="20dp" android:layout_gravity="center_horizontal" android:autoLink="web" android:text="http://android-er.blogspot.com/" android:textStyle="bold"/>

The Android Game Developer's Handbook

Image
The Android Game Developer's Handbook Key Features Practical tips and tricks to develop powerful Android games Learn to successfully implement microtransactions and monitor the performance of your game once it's out live. Integrate Google's DIY VR tool and Google Cardboard into your games to join in on the VR revolution Book Description Gaming in android is an already established market and growing each day. Previously games were made for specific platforms, but this is the time of cross platform gaming with social connectivity. It requires vision of polishing, design and must follow user behavior. This book would help developers to predict and create scopes of improvement according to user behavior. You will begin with the guidelines and rules of game development on the Android platform followed by a brief description about the current variants of Android devices available. Next you will walk through the various tools available to develop any Android games and learn how to

Pokémon GO updated to version 0.35.0 for Android and 1.5.0 for iOS

Image
Pokémon GO updated to version 0.35.0 for Android and 1.5.0 for iOS devices. Below are some release notes and comments from Pokémon GO development team. Implemented Pokémon Appraisal: Trainers will now be able to learn about a Pokémon’s attack and defense capabilities from their Team Leader (Candela, Blanche or Spark) to determine which of their Pokémon have the most potential for battle. Still working hard on several new and exciting features to come in the future of Pokémon GO. Minor bot fixes source:  http://pokemongo.nianticlabs.com/en/post/ver-update-082216/ But...how can I understand the Team Leader's meaning!? This video show how the Team Leader comment on my three Dragonites (with CP 1752, 1089 and 46). What is Pokemon GO Appraise? Not all Pokemon are created equal. Some are faster, some are bulkier, some are stronger attackers. Usually, these differences are expressed using IVs – Individual Values. Niantic has avoided introducing IVs on the Game UI, even though they are pre

Find the Best moveset of Pokémons

Image
It's a web site Pokémon GO Info , you can check the best moveset, weaknesses, max CP and also ranking of any Pokémon. This video show the best moveset of Drogonite, Vaporeon and Gyarados. Visit:  https://pokemon.gameinfo.io/ Select the Pokémon you want to check. It will show the best moveset of Quick move and Main move with highest dps (damage per second). Also show the weaknesses. Compare with the moveset of your Pokémon.

Finally caught 101 Magikarp evolve to a Gyarados

Image
Gotcha! Finally caught more than 101 Magikarp evolve to a Gyarados:)

Niantic will ban 'Pokemon GO' Cheaters

Niantic announced in their Pokémon GO > FAQ > Submit a ban appeal : Your account will be permanently terminated for violations of the Pokémon GO Terms of Service . This includes, but is not limited to: falsifying your location, using emulators, modified or unofficial software and/or accessing Pokémon GO clients or backends in an unauthorized manner including through the use of third party software . For the first three reasons, I think all you and me agree. But for the fourth reason (accessing Pokémon GO clients or backends), it seem including check iv using third party software/web service; so I already removed my intro videos about.

Pikachu Evolution: to Raichu

Image

Google Play is launching on Chromebooks

Image
At Google I/O 2016, Google announced that Google Play would be launching on Chromebooks. As an Android developer, your apps will soon be compatible with Chromebooks. Here’s how you can improve the Chromebook experience for your Android apps: Begin by reviewing the I/O session - “Bring your Android App to Chromebooks” Read this Android Developers Help Center article to learn how to optimize your Android apps for Chromebooks . Update the AndroidManifest.xml and set touchscreen as not required if you want to reach customers on non-touchscreen Chromebooks. Learn how to manage your app's compatible devices and more about Chrome OS Device Support for Apps . No action is required, but we recommend the steps above to best position your app for the millions of potential customers using Chromebooks.

Custom view to draw bitmap along path, calculate in background thread

Image
Last post show a example of " Custom view to draw bitmap along path ", with calculation run inside onDraw(). It's modified version to pre-calculate in back thread. (remark: in last post, canvas.drawPath() is called inside onDraw(). It seem run very slow, removed in this example.) Modify AnimationView.java package com.blogspot.android_er.androidmovingbitmapalongpath; import android.content.Context; import android.graphics.Canvas; import android.util.AttributeSet; import android.view.View; import java.util.ArrayList; import java.util.List; public class AnimationView extends View { List animationThingsList; public AnimationView(Context context) { super(context); initAnimationView(); } public AnimationView(Context context, AttributeSet attrs) { super(context, attrs); initAnimationView(); } public AnimationView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); i