Friday, November 2, 2012

Cartoon Wars 2 v1.0.0 [Offline] | APK Download

Cartoon Wars 2

Developer: Gamevil Inc.
Version: 1.0.0
Requires Android: 2.2 and up
Category: Arcade & Action
Size: 47 MB
Price: Free
Average Rating: 4.6 / 5.0

Most complete defense and real-time strategy game of the Cartoon Wars series! Cartoon Wars 2: Heroes.

The most complete defense and real-time strategy game of the Cartoon Wars series!

The best defense game is back!

After generations of war in the Cartoon Kingdom, King K and his army were expelled with the prominence of Captain J. The people praised Captain J and crowned him as their new King. The exiled tribe swore vengeance as they embarked on their journey to find the King of the Monsters. The second chronicle begins as the battle to defend the kingdom continues!

FEATURES
  • Newly Added Heroes - Develop a super hero from 6 upgradable characters and undertake various missions in Hero Mode.
  • Intense Stat Distribution And Skill Development - Upgrade your Hero and units as you learn new skills as you level up.
  • Additional Customization - 80 types of units with dozens of skill sets for units, castle, bow, and productivity items.
  • Upgradable Castle System - 10-20 levels of defensive Castle upgrades.
  • Three Different Modes of Gameplay - Enjoy three seamless modes of gameplay in Quick, Hell or Special Mode.
Screenshots:


For more info, Cartoon Wars 2 on Google Play.

Password: axa

Thursday, November 1, 2012

Baseball Superstars 2012 v1.1.0 Apk Android


Ultimate Smart Baseball Experience! Step up to the plate for the best baseball experience on Android Market, now looking better than ever before in crisp HD! The sky's the limit with level restrictions unlocked, upgraded batting and pitching moves, endless customization, new super players and more play modes. Whether managing a team to the championship or training a rookie to the Hall of Fame, you're in control of it all.


Join the series that's been downloaded over 30 million times by players worldwide with Baseball Superstars® 2012!
"Baseball Superstars 2012 is engaging in all the right ways. The core gameplay mechanics are incredibly easy to learn, but not so easy to master." - (4/5 Stars) Toucharcade.com

"There is literally something here for everyone in Baseball Superstars 2012." - (4/4 Stars) Slidetoplay.com

"It’s a very nicely executed freemium title that offers a ton of gameplay without having to purchase in-app upgrades. Baseball fans will love it." (4/5 Stars) -148apps.com

Click Here To Download
Direct Download Link


List MediaStore.Images.Thumbnails in GridView, with custom SimpleCursorAdapter.

Last exercise list MediaStore.Images.Thumbnails in ListView, with custom SimpleCursorAdapter. It's easy to be modified to display in GridView.

List MediaStore.Images.Thumbnails in GridView, with custom SimpleCursorAdapter.


Modify /res/layout/row.xml to have a ImageView only in each grid.
<?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="wrap_content"
android:orientation="horizontal">

<ImageView
android:id="@+id/thumb"
android:layout_width="100dp"
android:layout_height="100dp"/>

</LinearLayout>


Modify layout to have a GridView.
<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">

<GridView
android:id="@+id/gridview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:columnWidth="100dp"
android:numColumns="auto_fit"
android:verticalSpacing="10dp"
android:horizontalSpacing="10dp"
android:stretchMode="columnWidth"
android:gravity="center"/>

</LinearLayout>


Modify the code extends Activity with GridView, instead of ListActivity.
package com.example.androidlistimages;

import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.v4.content.CursorLoader;
import android.support.v4.widget.CursorAdapter;
import android.support.v4.widget.SimpleCursorAdapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.Toast;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class MainActivity extends Activity {

//define source of MediaStore.Images.Media, internal or external storage
final Uri sourceUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
final Uri thumbUri = MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI;
final String thumb_DATA = MediaStore.Images.Thumbnails.DATA;
final String thumb_IMAGE_ID = MediaStore.Images.Thumbnails.IMAGE_ID;

//SimpleCursorAdapter mySimpleCursorAdapter;
MyAdapter mySimpleCursorAdapter;

GridView myGridView;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

myGridView = (GridView)findViewById(R.id.gridview);

String[] from = {MediaStore.MediaColumns.TITLE};
int[] to = {android.R.id.text1};

CursorLoader cursorLoader = new CursorLoader(
this,
sourceUri,
null,
null,
null,
MediaStore.Audio.Media.TITLE);

Cursor cursor = cursorLoader.loadInBackground();

mySimpleCursorAdapter = new MyAdapter(
this,
android.R.layout.simple_list_item_1,
cursor,
from,
to,
CursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER);

myGridView.setAdapter(mySimpleCursorAdapter);
myGridView.setOnItemClickListener(myOnItemClickListener);
}

OnItemClickListener myOnItemClickListener
= new OnItemClickListener(){

@Override
public void onItemClick(AdapterView<?> parent, View view, int position,
long id) {
Cursor cursor = mySimpleCursorAdapter.getCursor();
cursor.moveToPosition(position);

int int_ID = cursor.getInt(cursor.getColumnIndex(MediaStore.Images.Media._ID));
getThumbnail(int_ID);
}};

private Bitmap getThumbnail(int id){

String[] thumbColumns = {thumb_DATA, thumb_IMAGE_ID};

CursorLoader thumbCursorLoader = new CursorLoader(
this,
thumbUri,
thumbColumns,
thumb_IMAGE_ID + "=" + id,
null,
null);

Cursor thumbCursor = thumbCursorLoader.loadInBackground();

Bitmap thumbBitmap = null;
if(thumbCursor.moveToFirst()){
int thCulumnIndex = thumbCursor.getColumnIndex(thumb_DATA);

String thumbPath = thumbCursor.getString(thCulumnIndex);

Toast.makeText(getApplicationContext(),
thumbPath,
Toast.LENGTH_LONG).show();

thumbBitmap = BitmapFactory.decodeFile(thumbPath);

//Create a Dialog to display the thumbnail
AlertDialog.Builder thumbDialog = new AlertDialog.Builder(MainActivity.this);
ImageView thumbView = new ImageView(MainActivity.this);
thumbView.setImageBitmap(thumbBitmap);
LinearLayout layout = new LinearLayout(MainActivity.this);
layout.setOrientation(LinearLayout.VERTICAL);
layout.addView(thumbView);
thumbDialog.setView(layout);
thumbDialog.show();

}else{
Toast.makeText(getApplicationContext(),
"NO Thumbnail!",
Toast.LENGTH_LONG).show();
}

return thumbBitmap;
}

public class MyAdapter extends SimpleCursorAdapter{

Cursor myCursor;
Context myContext;

public MyAdapter(Context context, int layout, Cursor c, String[] from,
int[] to, int flags) {
super(context, layout, c, from, to, flags);

myCursor = c;
myContext = context;
}

@Override
public View getView(int position, View convertView, ViewGroup parent) {
View row = convertView;
if(row==null){
LayoutInflater inflater=getLayoutInflater();
row=inflater.inflate(R.layout.row, parent, false);
}

ImageView thumbV = (ImageView)row.findViewById(R.id.thumb);

myCursor.moveToPosition(position);

int myID = myCursor.getInt(myCursor.getColumnIndex(MediaStore.Images.Media._ID));

String[] thumbColumns = {thumb_DATA, thumb_IMAGE_ID};
CursorLoader thumbCursorLoader = new CursorLoader(
myContext,
thumbUri,
thumbColumns,
thumb_IMAGE_ID + "=" + myID,
null,
null);
Cursor thumbCursor = thumbCursorLoader.loadInBackground();

Bitmap myBitmap = null;
if(thumbCursor.moveToFirst()){
int thCulumnIndex = thumbCursor.getColumnIndex(thumb_DATA);
String thumbPath = thumbCursor.getString(thCulumnIndex);
myBitmap = BitmapFactory.decodeFile(thumbPath);
thumbV.setImageBitmap(myBitmap);
}

return row;
}

}
}


download filesDownload the files.


Wednesday, October 31, 2012

Nun Attack v1.0.0 | APK + SD Data Download

Nun Attack

Developer: Frima Studio Inc.
Version: 1.0.0
Requires Android: 2.2 and up
Category: Arcade & Action
Size: 170 MB
Price: US$1.00
Average Rating: 4.4 / 5.0

In a world where prayers are no longer answered, Evil is about to get canonized. Days have gone by uncounted since the power-thirsty Fallen Nun has taken over the mortal world, spawning evil all over. In a world where Evil is taking over and prayers are no longer answered, there is only one type of divine intervention left, and it’s armed to death.

Join the battle of light against darkness. Lead your squad to defeat the Fallen Nun and restore balance to the World in this epic tactical action game!

Nun Attack delivers hours of hellish entertainment through exciting gameplay mechanics, intuitive touch screen controls and tongue-in-cheek character dialogues! Explore multiple worlds, equip your nuns with the most badass arsenal, level them up and fend off waves of enemies and bosses, beating some holy into hundreds of demons.

Not only do you get to play with bunch of nuns with guns, you also get:
  • 4 characters to mess with, each with a unique personality and super power
  • 40 missions including multiple levels where you can experience more than 150 battles, 3 epic boss fights and a final, climatic face-off with the Fallen Nun
  • Over 80 different guns with various effects (Poison, Shock, Freeze, Burn, Stun, Slow, DOT, AoE, Knockback, Fear, and Charm)
  • 7 different evil-stomping miracles to cast while playing
  • A full shop to get things rocking!
NOTE: There is a purchase hack mod embedded in the game, which may or may not work on your Android device.

Screenshots:


For more info, visit Nun Attack on Google Play.

Password: axa

APK File
SD Data (Path: /sdcard/Android/obb)

List Images with thumbnails, implementing custom SimpleCursorAdapter.

Last exercise demonstrate how to get Thumbnails. Now we can implement our custom SimpleCursorAdapter to list the Images in MediaStore.Images.Media with associated Thumbnail if exist.

List Images with thumbnails, implementing custom SimpleCursorAdapter.


Create a file, /res/layout/row.xml, to define the layout of the rows in the ListView.
<?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="wrap_content"
android:orientation="horizontal">

<ImageView
android:id="@+id/thumb"
android:layout_width="100dp"
android:layout_height="100dp"/>
<TextView
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</LinearLayout>


Modify the code to implement MyAdapter class extends SimpleCursorAdapter.
package com.example.androidlistimages;

import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.v4.content.CursorLoader;
import android.support.v4.widget.CursorAdapter;
import android.support.v4.widget.SimpleCursorAdapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
import android.app.AlertDialog;
import android.app.ListActivity;
import android.content.Context;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class MainActivity extends ListActivity {

//define source of MediaStore.Images.Media, internal or external storage
final Uri sourceUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
final Uri thumbUri = MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI;
final String thumb_DATA = MediaStore.Images.Thumbnails.DATA;
final String thumb_IMAGE_ID = MediaStore.Images.Thumbnails.IMAGE_ID;

//SimpleCursorAdapter mySimpleCursorAdapter;
MyAdapter mySimpleCursorAdapter;

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.activity_main);

String[] from = {MediaStore.MediaColumns.TITLE};
int[] to = {android.R.id.text1};

CursorLoader cursorLoader = new CursorLoader(
this,
sourceUri,
null,
null,
null,
MediaStore.Audio.Media.TITLE);

Cursor cursor = cursorLoader.loadInBackground();

mySimpleCursorAdapter = new MyAdapter(
this,
android.R.layout.simple_list_item_1,
cursor,
from,
to,
CursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER);

setListAdapter(mySimpleCursorAdapter);

getListView().setOnItemClickListener(myOnItemClickListener);
}

OnItemClickListener myOnItemClickListener
= new OnItemClickListener(){

@Override
public void onItemClick(AdapterView<?> parent, View view, int position,
long id) {
Cursor cursor = mySimpleCursorAdapter.getCursor();
cursor.moveToPosition(position);

int int_ID = cursor.getInt(cursor.getColumnIndex(MediaStore.Images.Media._ID));
getThumbnail(int_ID);
}};

private Bitmap getThumbnail(int id){

String[] thumbColumns = {thumb_DATA, thumb_IMAGE_ID};

CursorLoader thumbCursorLoader = new CursorLoader(
this,
thumbUri,
thumbColumns,
thumb_IMAGE_ID + "=" + id,
null,
null);

Cursor thumbCursor = thumbCursorLoader.loadInBackground();

Bitmap thumbBitmap = null;
if(thumbCursor.moveToFirst()){
int thCulumnIndex = thumbCursor.getColumnIndex(thumb_DATA);

String thumbPath = thumbCursor.getString(thCulumnIndex);

Toast.makeText(getApplicationContext(),
thumbPath,
Toast.LENGTH_LONG).show();

thumbBitmap = BitmapFactory.decodeFile(thumbPath);

//Create a Dialog to display the thumbnail
AlertDialog.Builder thumbDialog = new AlertDialog.Builder(MainActivity.this);
ImageView thumbView = new ImageView(MainActivity.this);
thumbView.setImageBitmap(thumbBitmap);
LinearLayout layout = new LinearLayout(MainActivity.this);
layout.setOrientation(LinearLayout.VERTICAL);
layout.addView(thumbView);
thumbDialog.setView(layout);
thumbDialog.show();

}else{
Toast.makeText(getApplicationContext(),
"NO Thumbnail!",
Toast.LENGTH_LONG).show();
}

return thumbBitmap;
}

public class MyAdapter extends SimpleCursorAdapter{

Cursor myCursor;
Context myContext;

public MyAdapter(Context context, int layout, Cursor c, String[] from,
int[] to, int flags) {
super(context, layout, c, from, to, flags);

myCursor = c;
myContext = context;
}

@Override
public View getView(int position, View convertView, ViewGroup parent) {
View row = convertView;
if(row==null){
LayoutInflater inflater=getLayoutInflater();
row=inflater.inflate(R.layout.row, parent, false);
}

ImageView thumbV = (ImageView)row.findViewById(R.id.thumb);
TextView textV = (TextView)row.findViewById(R.id.text);

myCursor.moveToPosition(position);

int myID = myCursor.getInt(myCursor.getColumnIndex(MediaStore.Images.Media._ID));
String myData = myCursor.getString(myCursor.getColumnIndex(MediaStore.Images.Media.DATA));
textV.setText(myData);

String[] thumbColumns = {thumb_DATA, thumb_IMAGE_ID};
CursorLoader thumbCursorLoader = new CursorLoader(
myContext,
thumbUri,
thumbColumns,
thumb_IMAGE_ID + "=" + myID,
null,
null);
Cursor thumbCursor = thumbCursorLoader.loadInBackground();

Bitmap myBitmap = null;
if(thumbCursor.moveToFirst()){
int thCulumnIndex = thumbCursor.getColumnIndex(thumb_DATA);
String thumbPath = thumbCursor.getString(thCulumnIndex);
myBitmap = BitmapFactory.decodeFile(thumbPath);
thumbV.setImageBitmap(myBitmap);
}

return row;
}

}
}


download filesDownload the files.

Related:
- List MediaStore.Images.Thumbnails in GridView, with custom SimpleCursorAdapter.


Nyanko Ninja v1.07 | APK Download

Nyanko Ninja

Developer: Mountain Lion
Version: 1.07
Requires Android: 2.1 and up
Category: Arcade & Action
Size: 20 MB
Price: Free
Average Rating: 4.3 / 5.0

Nyanko Ninja will challenge your limit!

Bored with killing mindless enemies, or getting angry with bad game controls and stupid levels? Nyanko Ninja brings you great fresh feelings! The best game control you’ve ever experienced on Parkour Games. Nyanko Ninja will challenge your limit!

FEATURES
  • Extraordinary Game Control - Flexible jump and hit, freewheeling control experience. Try the dreaming dance steps you’ve expected for long, try the excitements that Nyanko Ninja will bring you!
  • Creative Levels - Three scenes, 24 missions, more than 20 kinds of monsters, traps, barricades, treasures. Ninja’s world’s filled with incredible things.
  • Boss Challenges - Three bosses are howling, doing endless attack to innocents. You have to defeat the Tailed monsters with the brave ninja to save the whole world! Will you succeed? Maybe very little chance.
  • Ninjutsu Skills - Fire Fury, Illusion, and Whirlwind. How to choose your Ninjutsu? It’s a question.
  • Fancy Equipments - Three categories, 15 appearances, from normal wearing to legendary outfit, along with raises of your capacities. You are the legend!
  • Global Rank - In Ninja’s world, your scores will be ranked globally. Are you the best ninja in the world? Or someone else has predominance? Enter the Global Board, find your target and keep fighting!
Screenshots:


For more info, visit Nyanko Ninja on Google Play.

Bad Piggies [HD & Non HD] v1.1.0 APK Android


Get ready to see pigs fly! From the creators of Angry Birds: an all new game from the PIGS’ point of view!
Create the ultimate flying/crawling/rolling/spinning/crashing device and pilot the pigs safely to the eggs!

The Bad Piggies are after the eggs again -- but as usual, nothing is going according to plan! Can you create the ultimate flying machine and steer them safely to their destination? Those tricky pigs have a few objects they can use, but they need your help to turn these into the perfect transportation!


With more than 60 levels, and free updates coming up, you have hours and hours of pig-crashing, exploding, and flying fun! Get three stars on every level to unlock 30 more puzzles! HINT: Sometimes you need to play the level several times to achieve all the objectives -- try building a new device or steering in a different way to earn all the stars!


Features
● 60 levels crammed with flying/driving/crashing fun!
● 30 additional puzzles unlocked by three-starring levels!
● Free updates!
● 4 sandbox levels to stretch your creativity!
● Ultra-special, ultra-secret, ultra-difficult sandbox level to unlock by collecting all the skulls!
● 33 objects to create the ultimate machine: motors, wings, fans, bottle rockets, umbrellas, balloons, and much more!

Mechanic Pig
● Need help? This little piggy will build it for you!
● Mechanic pig pre-assembles transport for you!
● All you have to do is pilot it!
● Tweak his design to get all three stars!

Click Here To Download
Direct Download Link [HD Version]
Direct Download Link [Non HD Version]