Monday, December 3, 2012

New Google Maps Android API now part of Google Play services

Posted by Reto Meier, Evan Rapoport, and Andrew Foster



Google Play services is our new platform that offers you better integration with Google products, and which provides greater agility for quickly rolling out new capabilities for you to use within your apps. Today we’re launching Google Play services v2.0, which includes two new APIs, including perhaps our most frequently requested upgrade: Maps.



Google Maps Android API



The new version of the API allows developers to bring many of the recent features of Google Maps for Android to your Android apps. We’re excited to make this API available as part of Google Play services supporting devices from Froyo onwards (API level 8+).



The new API uses vector-based maps that support 2D and 3D views, and allow users to tilt and rotate the map with simple gestures. Along with the layers you’ve come to know from Google Maps such as satellite, hybrid, terrain and traffic, the new API lets you include indoor maps for many major airports and shopping centers in your app.



One of most common feature requests we’ve heard on Android is support for Map Fragments. With this new API, adding a map to your Activity is as simple as:



<fragment
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.google.android.gms.maps.MapFragment" />


Check out this image from updated Trulia Android app (which goes live tomorrow), that users can use to search for a place to buy or rent in 3D.





The new API is simpler to use, so that creating markers and info windows is easy. Polylines, Polygons, Ground Overlays and Tile Overlays can all now be added to the map with just a few lines of code.



To get started follow the getting started instructions to obtain an API Key. Then download and configure the Google Play services SDK using the SDK Manager. Check the Google Maps for Android API documentation for more details. If you haven't got it already, you'll need to download the Android SDK first.



More than 800,000 sites around the world already use our mapping APIs to create amazing and useful apps. We hope you enjoy using this new addition to the Google Maps API family, and building mapping experiences that were never before possible on a mobile device.



Photo Sphere



In Android 4.2, we introduced Photo Sphere mode in the Camera, which you can use to create amazing, immersive panoramas just like you see in Street View on Google Maps. Today we’re excited to announce new APIs and documentation that empower developers, businesses, and photographers to explore new uses of Photo Sphere for work and for play.



We’ve made Photo Sphere an open format so anyone can create and view them on the web or on mobile devices.



A Photo sphere is simply an image file (like a JPG) that has in it text-based metadata, an open format created by Adobe called XMP. The metadata describes the Photo Sphere’s dimensions and how it should be rendered within the interactive Photo Sphere viewer you see in Android, Google+, and Google Maps.



If you’d like to programmatically or manually add the XMP metadata into panoramic images not created by the Photo Sphere camera in Android, stay tuned today for more details on the metadata and how to apply it to your photos programmatically later.



In the new Google Play services, we’ve added APIs to give you the ability to check whether an image is a Photo Sphere and then open it up in the Photo Sphere viewer.



// This listener will be called with information about the given panorama.
OnPanoramaInfoLoadedListener infoLoadedListener =
new OnPanoramaInfoLoadedListener() {
@Override
public void onPanoramaInfoLoaded(ConnectionResult result,
Intent viewerIntent) {
if (result.isSuccess()) {
// If the intent is not null, the image can be shown as a
// panorama.
if (viewerIntent != null) {
// Use the given intent to start the panorama viewer.
startActivity(viewerIntent);
}
}

// If viewerIntent is null, the image is not a viewable panorama.
}
};

// Create client instance and connect to it.
PanoramaClient client = ...
...

// Once connected to the client, initiate the asynchronous check on whether
// the image is a viewable panorama.
client.loadPanoramaInfo(infoLoadedListener, panoramaUri);

To learn more about Google Play services and the APIs available to you through it, visit the new Google Services area of the Android Developers site.

Handle Item Click on Query Contacts database ListView

Up to last exercise of our Query Contacts database series, the contacts were displayed in a ListView with Display Name only.

It's modified in this exercise to handle item click for the ListView, such that we can retrieve more info of the clicked record. (Please notice that up to now, we haven't retrieve the details of the contacts such as phone number.)

Handle Item Click on Query Contacts database ListView


Modify the Java code of the main activity from last exercise, Query Contacts database, display in ListView. The layout have no change.
package com.example.androidquerycontacts;

import android.net.Uri;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.provider.ContactsContract.Contacts;
import android.support.v4.content.CursorLoader;
import android.support.v4.widget.CursorAdapter;
import android.support.v4.widget.SimpleCursorAdapter;
import android.app.Activity;
import android.database.Cursor;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.Toast;

public class MainActivity extends Activity {

ListView listContacts;

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

listContacts = (ListView)findViewById(R.id.conactlist);

Uri queryUri = ContactsContract.Contacts.CONTENT_URI;

String[] projection = new String[] {
ContactsContract.Contacts._ID,
ContactsContract.Contacts.DISPLAY_NAME,
ContactsContract.Contacts.HAS_PHONE_NUMBER,
ContactsContract.Contacts.LOOKUP_KEY};

String selection = ContactsContract.Contacts.DISPLAY_NAME + " IS NOT NULL";

CursorLoader cursorLoader = new CursorLoader(
this,
queryUri,
projection,
selection,
null,
null);

Cursor cursor = cursorLoader.loadInBackground();

String[] from = {ContactsContract.Contacts.DISPLAY_NAME};
int[] to = {android.R.id.text1};

ListAdapter adapter = new SimpleCursorAdapter(
this,
android.R.layout.simple_list_item_1,
cursor,
from,
to,
CursorAdapter.FLAG_REGISTER_CONTENT_OBSERVER);
listContacts.setAdapter(adapter);

listContacts.setOnItemClickListener(myOnItemClickListener);
}

OnItemClickListener myOnItemClickListener
= new OnItemClickListener(){

@Override
public void onItemClick(AdapterView<?> parent, View view, int position,
long id) {
Cursor cursor = (Cursor)parent.getItemAtPosition(position);
int item_ID = cursor.getInt(cursor.getColumnIndex(ContactsContract.Contacts._ID));
String item_DisplayName = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
int item_HasPhoneNumber = cursor.getInt(cursor.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER));

String item_LookUp = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.LOOKUP_KEY));

String item_PhoneNumber = "";
if (item_HasPhoneNumber > 0){
item_PhoneNumber = "Has phone number.";

}else{
item_PhoneNumber = "No number.";
}

String item = String.valueOf(item_ID) + ": " + item_DisplayName
+ "\n" + item_PhoneNumber
+ "\nLOOKUP_KEY: " + item_LookUp;

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

}

};

}


download filesDownload the files.

Next:
- Access ContactsContract.CommonDataKinds.Phone via LOOKUP_KEY

Compare with: Query Contacts database using Loader, with search function.

Sunday, December 2, 2012

Galactic Core Live Wallpaper v2.31 | APK Download

Galactic Core Live Wallpaper

Developer: Kittehface Software
Version: 2.31
Requires Android: 2.1 and up
Category: Personalization
Size: 3 MB
Price: US$0.99
Average Rating: 4.6 / 5.0

Galactic Core: A beautiful live wallpaper featuring a rotating spiral galaxy!

A stunning live wallpaper featuring a spinning spiral galaxy, Galactic Core is a beautiful and serene backdrop for your home screen, with many layers of depth apparent when switching home screens. Rendered in OpenGL, this wallpaper fully supports both portrait and landscape modes, and is a fully functional Daydream on 4.2+ devices!

This full version has lots of settings available, including alternate visual themes, color tinting, rotation speed and direction, touch sensitivity, camera motion, framerate unlocking, and more!

To Use: Home > Long Press > Live Wallpapers > Select & Apply.

Screenshots:


For more info, visit Galactic Core Live Wallpaper on Google Play.

Password: axa

Audio Glow Live Wallpaper v1.2.0 | APK Download

Audio Glow Live Wallpaper

Developer: Cypher Cove
Version: 1.2.0
Requires Android: 2.3 and up
Category: Personalization
Size: 2 MB
Price: US$0.99
Average Rating: 4.5 / 5.0

Music visualization in style, as your wallpaper! This music visualizer brings your music to the screen in an explosion of bright colors.

FEATURES
  • Visualizes whatever music or sound is coming from any other app.
  • Dramatically displays artist name and track name for most popular music players.
  • Extensive color and shape options to tweak.
  • Save your settings as themes, and use the included Tasker/Locale plugin to load any of your saved themes in response to almost anything you can imagine.
  • Glistening particles keep the screen alive with motion even when music isn't playing (can be turned off).
  • Option to auto-animate as if there is always music playing.
Note To Galaxy S2/S3 And Galaxy Nexus Owners: I have received several reports of the visualizer showing a flatline with most music players. I have been looking for a solution, but it is beginning to look like a hardware issue. From looking at reviews of other music visualization apps, it seems to me to be a universal problem for these phones. If you have this problem, I apologize! Please email me and I can refund you.

Please send me an email about which audio player you use if you aren't seeing meta data. I need to manually implement each player. A player can only be supported if its developer has decided to broadcast meta data within Android and I am able to contact them.

The following are currently supported, and additionally, other players may work if they have a setting for scrobbling that you can turn on:
  • Google Music
  • The built-in HTC, Samsung, and Sony Ericsson music players
  • Amazon MP3
  • Rdio
  • Rhapsody
  • Apollo
  • WinAmp
  • Last.fm
  • MIUI player
  • Real Player
Screenshots:


For more info, visit Audio Glow Live Wallpaper on Google Play.

Password: axa

Defense Command v1.0.20 [Mod/Unlocked] | APK Download

Defense Command

Developer: ESC Mobile
Version: 1.0.20
Requires Android: 2.2 and up
Category: Arcade & Action
Size: 12 MB
Price: Free
Average Rating: 4.1 / 5.0

A Real Real-Time Strategy game for Android!

The Planet has been invaded! The World’s Military enslaved by an Alien Mind Control Device! Only one Battle Squad remains.

Shielded in their underground bunkers, our heroes emerge into a Fight for Survival. The Invaders must be stopped at all costs!

Command Armies of
  • Tanks
  • Infantry
  • Helicopters
  • Trikes
  • Deploy Turrets
  • Explosive Barrels
  • Landmines
  • And many more to defeat the enemy!
Using the unique strengths of each unit, combine battlefield tactics and decisive action to outsmart and conquer the invaders!

Lightweight fast units for carrying out lightning raids, slow powerful siege tanks for bombarding enemy positions, battle tanks and infantry squads for intense warfare: choose the right units for the job and command them in battle.

There’s a huge variety of missions in the first Defense Command mission pack and with many more mission packs in development, the replay value of this game is going to be massive!

Each mission is designed to bring you the best gameplay experience from playing Defense Command and will challenge you to combine strategy and action in different ways.

Play a fast 2 minute mission or take on the entire might of the enemy onslaught and take back the Planet!

MOD
↘ CREDIT GOES TO TWINGO
  • Unlocked Campaign: Defense Command Battlefield Troopers Mission Pack 1.
  • Unlocked Skirmish.
Screenshots:


For more info, visit Defense Command on Google Play.

Password: axa

Burger v1.0.5 | APK Download

Burger

Developer: Magma Mobile
Version: 1.0.5
Requires Android: 1.5 and up
Category: Casual
Size: 7 MB
Price: Free
Average Rating: 4.5 / 5.0

Want to be a master-chief?

A burger-serving game is coming now for your best enjoyment in a free version with the Magma Mobile’s touch!

You are hired in a chain restaurant to serve clients as fast as possible to earn money and even tips for yourself. Take orders from your customers and make a recipe among sandwiches, garnishes, desserts and sodas. The more you will play, the more ingredients will appear in the fast-food!

Take up the challenge and try the Career Mode to cope with a higher difficulty each day of the year! Work from Monday to Saturday and reach your goal to get more money and new ingredients for the service. Then if you are a great employee, you will even unlock a lot of achievements!

Time is money! Try also to do your best in the Time Attack Mode to collect a maximum of coins within the time limit!

This time management game will definitely entertain and challenge you and your family!

FEATURES
  • Ingredients’ list: bread, meat, lettuce, tomato, cheese, onion, cucumber, mayonnaise, tomato ketchup, bacon, fish, muffins, ice creams, french fries, potatoes and sodas
  • More than 300 levels and 40 achievements for burger’s maniac
So come play Burger and become the master king of burgers!

Screenshots:


For more info, visit Burger on Google Play.

Silent Submarine Career v1.1.0 Apk Android


Down Periscope! Surfacing! We're going to attack the enemy convoy!
Silent Submarine: Convoy hunter is a naval arcade game where you need to control a submarine and sink enemy ships of the convoy. Your boat is the last defender of the coast. Perform assigned tasks and earn experience points. Your glorious career will be rewarded with new ranks and general respect.


Features:

1. Single missions
2. Career game mode
3. 12 naval ranks in career mode
4. Highscores for a single missions
5. 10 different types of warships
6. 4 types of wrecks (obstacles while torpedo shooting)
7. 3 types of weather
8. Quick tips in the game
9. Ability to enable or disable the animation and music in the game (for weak devices)
10. Intelligent performance monitoring system (under the heavy CPU usage the device will automatically turn off some animation)

Tips:

1. For a limited time you need to get the required number of points!
2. To launch torpedoes you need to be on the surface and click on the screen wherever you want direct it.
3. The larger the ship, the more you need to spend a torpedo to its destruction.
4. Damaged warships begin to shoot. click on the submarine to dive and you will be saved.
5. Monitor the boat health-level otherwise you can die prematurely.
6. Keep the number of torpedoes. reloading torpedoes takes some time.
7. The larger the ship, the more points you get for destroying it.
8. Once you earn the required points in the mission,nthe remaining bonus points are multiplied by two!

Good luck to you in battle!

Advantages of the paid version:
- no adverising
- enabled career mode, you can earn experience points and gets the marine ranks from recruit to admiral!

Tags: submarine, sea battle, battleship, sea fight, navy wars, submarine attack, minefield, naval, ship, marine, boat,

Click Here To Download
Direct Download Link