Pages

Ads 468x60px

Sunday, July 31, 2011

Eternal Legacy HD for HVGA Devices like Samsung Galaxy Ace/Mini


 Features:
Mysterious world Algoada
• A fascinating story, full of adventure and responsibility: you - Astrian, your duty - to save Algoad from destruction and restore the relationship between man and nature.
• Mix of fantasy and science fiction: fight with swords and guns, meet the robots and magicians and fly on our own boat!
• provides enormous space in 3D, with 360 degrees.

Smooth system of combat
• Dynamic combat: pre ask your attacks that will follow one after another, until it fills the scale of action.
• Epic battles carefully traced in 3D, many animations.
• Up to 3 characters will fight together: assemble a team and define the behavior of their teammates.

Survive your adventure
• Choose your own path, interacting with the environment, objects, people and enemies, or unraveling puzzles to overcome obstacles.
• People who meet on your way, can join you, to open some secret, give any job - voiced dialogues will help you talk to them.
• You may want to perform subtasks, which will help prolong your life and gain experience.
• Customize your character and weapons: you - the master of his fate.

Attention : For the first time be sure to activate the Internet. In the future the game can run without internet turned on ..
All Phone : (have different serial from acer , htc version)
http://www.filesonic.com/file/730480361
http://www.duckload.com/dl/Of4e2
http://ul.to/l6qr856a
Acer :
http://www.filesonic.com/file/730480371
http://www.duckload.com/dl/Af4e2
http://ul.to/b8otxwe5
HTC :
http://www.filesonic.com/file/730480381
http://www.duckload.com/dl/Cf4e2
http://ul.to/7ghgvp5h


SD Data location: sdcard\gameloft\games\
Galaxy S SD Data Should Work With Other PowerVR:
http://ul.to/gjeszcwq
http://www.filesonic.com/file/688791391
http://www.duckload.com/dl/SKEe2

HTC Desire SD Data Should Work With Other Snapdragon :
http://ul.to/4f11lfoi
http://www.filesonic.com/file/689919191

Motorola Milestone SD Data:
http://ul.to/8lygmf3v
http://www.duckload.com/dl/ly4e2
http://www.megaupload.com/?d=6VUHEUNG

SD Data For Tegra :
http://www.filesonic.com/file/730840951

X10 SD Data :
http://www.filesonic.com/file/730843981

Samsung Galaxy Tab SD Data:
http://www.filesonic.com/file/848526121




Brothers In Arms 2 : Global Front HD HVGA for Samsung Galaxy ace/mini and Other HVGA Devices

















Install Instructions: Here
SD Data location: sdcard/gameloft/games/bia2


v3.0.8 APK+SD Content
- Samsung Galaxy S Showcase
- Samsung GT-i9000 Galaxy S
- Samsung GT-i9000B Galaxy
- Samsung GT-i9000T
- Samsung SCH-i400 Atlas
- Samsung SPH-D700 Epic 4G
- Samsung SGH-T959 Vibrant
- Motorola A955 Droid 2
- Motorola Droid X
- Motorola Milestone
http://www.4shared.com/file/CAPMbR-P/v308_APKSD_Content.html
v3.1.6 APK+SD Content
- HTC Desire HD
- HTC Desire Z
- HTC My Touch 4G
- HTC Scorpion
http://www.4shared.com/file/pg_JC8Ta/v316_APKSD_Content.html


SD Card Data for Samsung Galaxy S
sdcard/gameloft/games/
Part 1
http://depositfiles.com/files/dm0u28gbk
Part 2
http://depositfiles.com/files/mpawmv80e
Mirror:
Part 1
http://turbobit.net/6taax3xna9d8.html
Part 2
http://turbobit.net/t5imw351s3ar.html

SD Card Data for HTC
sdcard/gameloft/games/
Part 1 http://depositfiles.com/files/i75wh3taq
Part 2 http://depositfiles.com/files/ap56jmua3
Part 3 http://depositfiles.com/files/nft8lxb8f
Mirror:
Part 1 http://turbobit.net/lrc340zfc6up.html
Part 2 http://turbobit.net/7xph5zhpiphy.html
Part 3 http://turbobit.net/54ei0phkp22w.html




Assasin's Creed Altair's Chronicles HD HVGA for Samsung Galaxy ace/mini and Other HVGA Devices

Assasin's creed for HVGA Devices
Turn off the internet when playing 

Download:

           APK :
                HVGA (320x480) : Click Here to Download
                 Password : ajie1987  
          
           DATA:
                HVGA/QVGA : Click Here to Download

Copy Data to sdcard\gameloft\games


For non-multitouch devices, you can use the camera/search/volume button to jump




Modern Combat: Sandstorm HD for HVGA (for Galaxy ace/mini and Other HVGA Devices)



A 3D First-Person Shooter with nice graphic from Gameloft. This game has been optimized for HVGA devices.
This game also features a multiplayer game, so yo ucan play with your friends
Works perfectly on my LG GT540 with full screen, try it yourself if you don't believe

if you experience an error after the jumping tutorial, just aim the gun down immediately after the third jump.
please comment if this game worked on your device, thanks

I have tested this game and it works perfectly


Download:

           APK :
                HVGA (320x480) : Click Here to Download
          
           DATA:
                HVGA/QVGA : Click Here to Download




Thursday, July 28, 2011

Custom Class Loading in Dalvik

[This post is by Fred Chung, who’s an Android Developer Advocate — Tim Bray]

The Dalvik VM provides facilities for developers to perform custom class loading. Instead of loading Dalvik executable (“dex”) files from the default location, an application can load them from alternative locations such as internal storage or over the network.

This technique is not for every application; In fact, most do just fine without it. However, there are situations where custom class loading can come in handy. Here are a couple of scenarios:

  • Big apps can contain more than 64K method references, which is the maximum number of supported in a dex file. To get around this limitation, developers can partition part of the program into multiple secondary dex files, and load them at runtime.

  • Frameworks can be designed to make their execution logic extensible by dynamic code loading at runtime.

We have created a sample app to demonstrate the partitioning of dex files and runtime class loading. (Note that for reasons discussed below, the app cannot be built with the ADT Eclipse plug-in. Instead, use the included Ant build script. See Readme.txt for detail.)

The app has a simple Activity that invokes a library component to display a Toast. The Activity and its resources are kept in the default dex, whereas the library code is stored in a secondary dex bundled in the APK. This requires a modified build process, which is shown below in detail.

Before the library method can be invoked, the app has to first explicitly load the secondary dex file. Let’s take a look at the relevant moving parts.

Code Organization

The application consists of 3 classes.

  • com.example.dex.MainActivity: UI component from which the library is invoked

  • com.example.dex.LibraryInterface: Interface definition for the library

  • com.example.dex.lib.LibraryProvider: Implementation of the library

The library is packaged in a secondary dex, while the rest of the classes are included in the default (primary) dex file. The “Build process” section below illustrates how to accomplish this. Of course, the packaging decision is dependent on the particular scenario a developer is dealing with.

Class loading and method invocation

The secondary dex file, containing LibraryProvider, is stored as an application asset. First, it has to be copied to a storage location whose path can be supplied to the class loader. The sample app uses the app’s private internal storage area for this purpose. (Technically, external storage would also work, but one has to consider the security implications of keeping application binaries there.)

Below is a snippet from MainActivity where standard file I/O is used to accomplish the copying.

  // Before the secondary dex file can be processed by the DexClassLoader,
// it has to be first copied from asset resource to a storage location.
File dexInternalStoragePath = new File(getDir("dex", Context.MODE_PRIVATE),
SECONDARY_DEX_NAME);
...
BufferedInputStream bis = null;
OutputStream dexWriter = null;

static final int BUF_SIZE = 8 * 1024;
try {
bis = new BufferedInputStream(getAssets().open(SECONDARY_DEX_NAME));
dexWriter = new BufferedOutputStream(
new FileOutputStream(dexInternalStoragePath));
byte[] buf = new byte[BUF_SIZE];
int len;
while((len = bis.read(buf, 0, BUF_SIZE)) > 0) {
dexWriter.write(buf, 0, len);
}
dexWriter.close();
bis.close();

} catch (. . .) {...}

Next, a DexClassLoader is instantiated to load the library from the extracted secondary dex file. There are a couple of ways to invoke methods on classes loaded in this manner. In this sample, the class instance is cast to an interface through which the method is called directly.

Another approach is to invoke methods using the reflection API. The advantage of using reflection is that it doesn’t require the secondary dex file to implement any particular interfaces. However, one should be aware that reflection is verbose and slow.

  // Internal storage where the DexClassLoader writes the optimized dex file to
final File optimizedDexOutputPath = getDir("outdex", Context.MODE_PRIVATE);

DexClassLoader cl = new DexClassLoader(dexInternalStoragePath.getAbsolutePath(),
optimizedDexOutputPath.getAbsolutePath(),
null,
getClassLoader());
Class libProviderClazz = null;
try {
// Load the library.
libProviderClazz =
cl.loadClass("com.example.dex.lib.LibraryProvider");
// Cast the return object to the library interface so that the
// caller can directly invoke methods in the interface.
// Alternatively, the caller can invoke methods through reflection,
// which is more verbose.
LibraryInterface lib = (LibraryInterface) libProviderClazz.newInstance();
lib.showAwesomeToast(this, "hello");
} catch (Exception e) { ... }

Build Process

In order to churn out two separate dex files, we need to tweak the standard build process. To do the trick, we simply modify the “-dex” target in the project’s Ant build.xml.

The modified “-dex” target performs the following operations:

  1. Create two staging directories to store .class files to be converted to the default dex and the secondary dex.

  2. Selectively copy .class files from PROJECT_ROOT/bin/classes to the two staging directories.

          <!-- Primary dex to include everything but the concrete library
    implementation. -->
    <copy todir="${out.classes.absolute.dir}.1" >
    <fileset dir="${out.classes.absolute.dir}" >
    <exclude name="com/example/dex/lib/**" />
    </fileset>
    </copy>
    <!-- Secondary dex to include the concrete library implementation. -->
    <copy todir="${out.classes.absolute.dir}.2" >
    <fileset dir="${out.classes.absolute.dir}" >
    <include name="com/example/dex/lib/**" />
    </fileset>
    </copy>
  3. Convert .class files from the two staging directories into two separate dex files.

  4. Add the secondary dex file to a jar file, which is the expected input format for the DexClassLoader. Lastly, store the jar file in the “assets” directory of the project.

        <!-- Package the output in the assets directory of the apk. -->
    <jar destfile="${asset.absolute.dir}/secondary_dex.jar"
    basedir="${out.absolute.dir}/secondary_dex_dir"
    includes="classes.dex" />

To kick-off the build, you execute ant debug (or release) from the project root directory.

That’s it! In the right situations, dynamic class loading can be quite useful.

Wednesday, July 27, 2011

New Tools For Managing Screen Sizes

[This post is by Dianne Hackborn and a supporting cast of thousands; Dianne’s fingerprints can be found all over the Android Application Framework — Tim Bray]



Android 3.2 includes new tools for supporting devices with a wide range of screen sizes. One important result is better support for a new size of screen; what is typically called a “7-inch” tablet. This release also offers several new APIs to simplify developers’ work in adjusting to different screen sizes.

This a long post. We start by discussing the why and how of Android “dp” arithmetic, and the finer points of the screen-size buckets. If you know all that stuff, you can skip down to “Introducing Numeric Selectors” to read about what’s new. We also provide our recommendations for how you can do layout selection in apps targeted at Android 3.2 and higher in a way that should allow you to support the maximum number of device geometries with the minimum amount of effort.

Of course, the official write-up on Supporting Multiple Screens is also required reading for people working in this space.

Understanding Screen Densities and the “dp”

Resolution is the actual number of pixels available in the display, density is how many pixels appear within a constant area of the display, and size is the amount of physical space available for displaying your interface. These are interrelated: increase the resolution and density together, and size stays about the same. This is why the 320x480 screen on a G1 and 480x800 screen on a Droid are both the same screen size: the 480x800 screen has more pixels, but it is also higher density.

To remove the size/density calculations from the picture, the Android framework works wherever possible in terms of "dp" units, which are corrected for density. In medium-density ("mdpi") screens, which correspond to the original Android phones, physical pixels are identical to dp's; the devices’ dimensions are 320x480 in either scale. A more recent phone might have physical-pixel dimensions of 480x800 but be a high-density device. The conversion factor from hdpi to mdpi in this case is 1.5, so for a developer's purposes, the device is 320x533 in dp's.

Screen-size Buckets

Android has included support for three screen-size “buckets” since 1.6, based on these “dp” units: “normal” is currently the most popular device format (originally 320x480, more recently higher-density 480x800); “small” is for smaller screens, and “large” is for “substantially larger” screens. Devices that fall in the “large” bucket include the Dell Streak and original 7” Samsung Galaxy Tab. Android 2.3 introduced a new bucket size “xlarge”, in preparation for the approximately-10” tablets (such as the Motorola Xoom) that Android 3.0 was designed to support.

The definitions are:

  • xlarge screens are at least 960dp x 720dp.


  • large screens are at least 640dp x 480dp.


  • normal screens are at least 470dp x 320dp.


  • small screens are at least 426dp x 320dp. (Android does not currently support screens smaller than this.)


Here are some more examples of how this works with real screens:

  • A QVGA screen is 320x240 ldpi. Converting to mdpi (a 4/3 scaling factor) gives us 426dp x 320dp; this matches the minimum size above for the small screen bucket.


  • The Xoom is a typical 10” tablet with a 1280x800 mdpi screen. This places it into the xlarge screen bucket.


  • The Dell Streak is a 800x480 mdpi screen. This places it into the bottom of the large size bucket.


  • A typical 7” tablet has a 1024x600 mdpi screen. This also counts as a large screen.


  • The original Samsung Galaxy Tab is an interesting case. Physically it is a 1024x600 7” screen and thus classified as “large”. However the device configures its screen as hdpi, which means after applying the appropriate ⅔ scaling factor the actual space on the screen is 682dp x 400dp. This actually moves it out of the “large” bucket and into a “normal” screen size. The Tab actually reports that it is “large”; this was a mistake in the framework’s computation of the size for that device that we made. Today no devices should ship like this.


Issues With Buckets

Based on developers’ experience so far, we’re not convinced that this limited set of screen-size buckets gives developers everything they need in adapting to the increasing variety of Android-device shapes and sizes. The primary problem is that the borders between the buckets may not always correspond to either devices available to consumers or to the particular needs of apps.

The “normal” and “xlarge” screen sizes should be fairly straightforward as a target: “normal” screens generally require single panes of information that the user moves between, while “xlarge” screens can comfortably hold multi-pane UIs (even in portrait orientation, with some tightening of the space).

The “small” screen size is really an artifact of the original Android devices having 320x480 screens. 240x320 screens have a shorter aspect ratio, and applications that don’t take this into account can break on them. These days it is good practice to test user interfaces on a small screen to ensure there are no serious problems.

The “large” screen size has been challenging for developers — you will notice that it encompases everything from the Dell Streak to the original Galaxy Tab to 7" tablets in general. Different applications may also reasonably want to take different approaches to these two devices; it is also quite reasonable to want to have different behavior for landscape vs. portrait large devices because landscape has plenty of space for a multi-pane UI, while portrait may not.

Introducing Numeric Selectors

Android 3.2 introduces a new approach to screen sizes, with the goal of making developers' lives easier. We have defined a set of numbers describing device screen sizes, which you can use to select resources or otherwise adjust your UI. We believe that using these will not only reduce developers’ workloads, but future-proof their apps significantly.

The numbers describing the screen size are all in “dp” units (remember that your layout dimensions should also be in dp units so that the system can adjust for screen density). They are:

  • width dp: the current width available for application layout in “dp” units; changes when the screen switches orientation between landscape and portrait.


  • height dp: the current height available for application layout in “dp” units; also changes when the screen switches orientation.


  • smallest width dp: the smallest width available for application layout in “dp” units; this is the smallest width dp that you will ever encounter in any rotation of the display.


Of these, smallest width dp is the most important. It replaces the old screen-size buckets with a continuous range of numbers giving the effective size. This number is based on width because that is fairly universally the driving factor in designing a layout. A UI will often scroll vertically, but have fairly hard constraints on the minimum space it needs horizontally; the available width is also the key factor in determining whether to use a phone-style one-pane layout or tablet-style multi-pane layout.

Typical numbers for screen width dp are:

  • 320: a phone screen (240x320 ldpi, 320x480 mdpi, 480x800 hdpi, etc).


  • 480: a tweener tablet like the Streak (480x800 mdpi).


  • 600: a 7” tablet (600x1024).


  • 720: a 10” tablet (720x1280, 800x1280, etc).


Using the New Selectors

When you are designing your UI, the main thing you probably care about is where you switch between a phone-style UI and a tablet-style multi-pane UI. The exact point of this switch will depend on your particular design — maybe you need a full 720dp width for your tablet layout, maybe 600dp is enough, or 480dp, or even some other number between those. Either pick a width and design to it; or after doing your design, find the smallest width it supports.

Now you can select your layout resources for phones vs. tablets using the number you want. For example, if 600dp is the smallest width for your tablet UI, you can do this:

res/layout/main_activity.xml           # For phones
res/layout-sw600dp/main_activity.xml # For tablets

For the rare case where you want to further customize your UI, for example for 7” vs. 10” tablets, you can define additional smallest widths:

res/layout/main_activity.xml           # For phones
res/layout-sw600dp/main_activity.xml # For 7” tablets
res/layout-sw720dp/main_activity.xml # For 10” tablets

Android will pick the resource that is closest to the device’s “smallest width,” without being larger; so for a hypothetical 700dp x 1200dp tablet, it would pick layout-sw600dp.

If you want to get fancier, you can make a layout that can change when the user switches orientation to the one that best fits in the current available width. This can be of particular use for 7” tablets, where a multi-pane layout is a very tight fit in portrait::

res/layout/main_activity.xml          # Single-pane
res/layout-w600dp/main_activity.xml # Multi-pane when enough width

Or the previous three-layout example could use this to switch to the full UI whenever there is enough width:

res/layout/main_activity.xml                 # For phones
res/layout-sw600dp/main_activity.xml # Tablets
res/layout-sw600dp-w720dp/main_activity.xml # Large width

In the setup above, we will always use the phone layout for devices whose smallest width is less than 600dp; for devices whose smallest width is at least 600dp, we will switch between the tablet and large width layouts depending on the current available width.

You can also mix in other resource qualifiers:

res/layout/main_activity.xml                 # For phones
res/layout-sw600dp/main_activity.xml # Tablets
res/layout-sw600dp-port/main_activity.xml # Tablets when portrait

Selector Precedence

While it is safest to specify multiple configurations like this to avoid potential ambiguity, you can also take advantage of some subtleties of resource matching. For example, the order that resource qualifiers must be specified in the directory name (documented in Providing Resources) is also the order of their “importance.” Earlier ones are more important than later ones. You can take advantage of this to, for example, easily have a landscape orientation specialization for your default layout:

res/layout/main_activity.xml                 # For phones
res/layout-land/main_activity.xml # For phones when landscape
res/layout-sw600dp/main_activity.xml # Tablets

In this case when running on a tablet that is using landscape orientation, the last layout will be used because the “swNNNdp” qualifier is a better match than “port”.

Combinations and Versions

One final thing we need to address is specifying layouts that work on both Android 3.2 and up as well as previous versions of the platform.

Previous versions of the platform will ignore any resources using the new resource qualifiers. This, then, is one approach that will work:

res/layout/main_activity.xml           # For phones
res/layout-xlarge/main_activity.xml # For pre-3.2 tablets
res/layout-sw600dp/main_activity.xml # For 3.2 and up tablets

This does require, however, that you have two copies of your tablet layout. One way to avoid this is by defining the tablet layout once as a distinct resource, and then making new versions of the original layout resource that point to it. So the layout resources we would have are:

res/layout/main_activity.xml           # For phones
res/layout/main_activity_tablet.xml # For tablets

To have the original layout point to the tablet version, you put <item> specifications in the appropriate values directories. That is these two files:

res/values-xlarge/layout.xml
res/values-sw600dp/layout.xml

Both would contain the following XML defining the desired resource:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<item type="layout" name="main_activty">
@layout/main_activity_tablet
</item>
</resources>

Of course, you can always simply select the resource to use in code. That is, define two or more resources like “layout/main_activity” and “layout/main_activity_tablet,” and select the one to use in your code based on information in the Configuration object or elsewhere. For example:

public class MyActivity extends Activity {
@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate();

Configuration config = getResources().getConfiguration();
if (config.smallestScreenWidthDp >= 600) {
setContentView(R.layout.main_activity_tablet);
} else {
setContentView(R.layout.main_activity);
}
}
}

Conclusion

We strongly recommend that developers start using the new layout selectors for apps targeted at Android release 3.2 or higher, as we will be doing for Google apps. We think they will make your layout choices easier to express and manage.

Furthermore, we can see a remarkably wide variety of Android-device form factors coming down the pipe. This is a good thing, and will expand the market for your work. These new layout selectors are specifically designed to make it straightforward for you to make your apps run well in a future hardware ecosystem which is full of variety (and surprises).

Thursday, July 21, 2011

Multiple APK Support in Android Market

[This post is by Eric Chu, Android Developer Ecosystem. —Dirk Dougherty]

At Google I/O we announced our plans to add several new capabilities to help developers manage their products more effectively in Android Market. We’re pleased to let you know that the latest of those, multiple APK support, is now available. Multiple APK support is a new publishing option in Android Market for those developers who want extra control over distribution.

Until now, each product listing on Android Market has included a single APK file, a universal payload that is deliverable to all eligible devices — across all platform versions, screen sizes, and chipsets. Broad distribution of a single APK works very well for almost all applications and has the advantage of simplified product maintenance.

With multiple APK support, you can now upload multiple versions of an APK for a single product listing, with each one addressing a different subset of your customers. These APKs are complete, independent APKs that share the same package name, but contain code and resources to target different Android platform versions, screen sizes, or GL texture-compression formats. When users download or purchase your app, Android Market chooses the right APK to deliver based on the characteristics of the device.

When you upload multiple APK files, Android Market handles them as part of a single product listing that aggregates the app details, ratings, and comments across the APKs. All users who browse your app’s details page see the same product with the same description, branding assets, screenshots, video, ratings, and comments. Android Market also aggregates the app’s download statistics, reviews, and billing data across all of the APKs.

Multiple APK support gives you a variety of ways to control app distribution. For example, you could use it to create separate APKs for phones and tablets under the same product listing. You could also use it to take advantage of new APIs or new hardware capabilities without impacting your existing customer base.

To support this new capability, we’ve updated the Developer Console to include controls for uploading and managing APKs in a product listing — we encourage you to take a look. If you’d like to learn more about how multiple APK support works, please read the developer documentation. As always, please feel free to give us feedback on the feature through the Market Help Center.

Tuesday, July 19, 2011

Debugging Android JNI with CheckJNI

[This post is by Elliott Hughes, a Software Engineer on the Dalvik team — Tim Bray]

Although most Android apps run entirely on top of Dalvik, some use the Android NDK to include native code using JNI. Native code is harder to get right than Dalvik code, and when you have a bug, it’s often a lot harder to find and fix it. Using JNI is inherently tricky (there’s precious little help from the type system, for example), and JNI functions provide almost no run-time checking. Bear in mind also that the developer console’s crash reporting doesn’t include native crashes, so you don’t even necessarily know how often your native code is crashing.

What CheckJNI can do

To help, there’s CheckJNI. It can catch a number of common errors, and the list is continually increasing. In Gingerbread, for example, CheckJNI can catch all of the following kinds of error:

  • Arrays: attempting to allocate a negative-sized array.

  • Bad pointers: passing a bad jarray/jclass/jobject/jstring to a JNI call, or passing a NULL pointer to a JNI call with a non-nullable argument.

  • Class names: passing anything but the “java/lang/String” style of class name to a JNI call.

  • Critical calls: making a JNI call between a GetCritical and the corresponding ReleaseCritical.

  • Direct ByteBuffers: passing bad arguments to NewDirectByteBuffer.

  • Exceptions: making a JNI call while there’s an exception pending.

  • JNIEnv*s: using a JNIEnv* from the wrong thread.

  • jfieldIDs: using a NULL jfieldID, or using a jfieldID to set a field to a value of the wrong type (trying to assign a StringBuilder to a String field, say), or using a jfieldID for a static field to set an instance field or vice versa, or using a jfieldID from one class with instances of another class.

  • jmethodIDs: using the wrong kind of jmethodID when making a Call*Method JNI call: incorrect return type, static/non-static mismatch, wrong type for ‘this’ (for non-static calls) or wrong class (for static calls).

  • References: using DeleteGlobalRef/DeleteLocalRef on the wrong kind of reference.

  • Release modes: passing a bad release mode to a release call (something other than 0, JNI_ABORT, or JNI_COMMIT).

  • Type safety: returning an incompatible type from your native method (returning a StringBuilder from a method declared to return a String, say).

  • UTF-8: passing an invalid Modified UTF-8 byte sequence to a JNI call.

If you’ve written any amount of native code without CheckJNI, you’re probably already wishing you’d known about it. There’s a performance cost to using CheckJNI (which is why it isn’t on all the time for everybody), but it shouldn’t change the behavior in any other way.

Enabling CheckJNI

If you’re using the emulator, CheckJNI is on by default. If you’re working with an Android device, use the following adb command:

adb shell setprop debug.checkjni 1

This won’t affect already-running apps, but any app launched from that point on will have CheckJNI enabled. (Changing the property to any other value or simply rebooting will disable CheckJNI again.) In this case, you’ll see something like this in your logcat output the next time each app starts:

D Late-enabling CheckJNI

If you don’t see this, your app was probably already running; you just need to force stop it and start it again.

Example

Here’s the output you get if you return a byte array from a native method declared to return a String:

W JNI WARNING: method declared to return 'Ljava/lang/String;' returned '[B'
W failed in LJniTest;.exampleJniBug
I "main" prio=5 tid=1 RUNNABLE
I | group="main" sCount=0 dsCount=0 obj=0x40246f60 self=0x10538
I | sysTid=15295 nice=0 sched=0/0 cgrp=default handle=-2145061784
I | schedstat=( 398335000 1493000 253 ) utm=25 stm=14 core=0
I at JniTest.exampleJniBug(Native Method)
I at JniTest.main(JniTest.java:11)
I at dalvik.system.NativeStart.main(Native Method)
I
E VM aborting

Without CheckJNI, you’d just die via SIGSEGV, with none of this output to help you!

New JNI documentation

We’ve also recently added a page of JNI Tips that explains some of the finer points of JNI. If you write native methods, even if CheckJNI isn’t rejecting your code, you should still read that page. It covers everything from correct usage of the JavaVM and JNIEnv types, how to work with native threads, local and global references, dealing with Java exceptions in native code, and much more, including answers to frequently-asked JNI questions.

What CheckJNI can’t do

There are still classes of error that CheckJNI can’t find. Most important amongst these are misuses of local references. CheckJNI can spot if you stash a JNIEnv* somewhere and then reuse it on the wrong thread, but it can’t detect you stashing a local reference (rather than a global reference) and then reusing it in a later native method call. Doing so is invalid, but currently mostly works (at the cost of making life hard for the GC), and we’re still working on getting CheckJNI to spot these mistakes.

We’re hoping to have more checking, including for local reference misuse, in a future release of Android. Start using CheckJNI now, though, and you’ll be able to take advantage of our new checks as they’re added.

DroidCon hits the UK -Android Developers Invited in London


LONDON -If you are passing by London at the start of October, make sure you don't miss out on DroidCon 2011, taking place at the Islington Design Centre on the 6th and 7th of October.

This is the UK's largest Android-only development event taking place this year and will include some big names in the Android world. The first day features a Bar Camp and Developer Camp. The second day will be a conference day with presentations from Android experts worldwide.These include Richard Hyndman and Nick Butcher from Google and Mark Murphy from CommonsWare.

The Super Early Bird tickets are now sold out, but you can still grab some Early Bird discounted tickets at 150 GBP.

There were will be plenty of goodies and related discounts for attendees, including a special delegate discount on my book, "Location Aware Applications" published by Manning (US). Check back here soon for the discount code and more updates on the event!

Monday, July 18, 2011

WindowsTab 8 Concept Device (by Adrian Mignogna)

I know this is not Android, but...take a look at it:

Click on the Picture for Fullsize view


How do you like it? Leave a Comment below.


peace

Adrian

Friday, July 15, 2011

Android 3.2 Platform and Updated SDK tools

Today we are announcing the Android 3.2 platform, an incremental release that adds several new capabilities for users and developers. The new platform includes API changes and the API level is 13.

Here are some of the highlights of Android 3.2:

Optimizations for a wider range of tablets. A variety of refinements across the system ensure a great user experience on a wider range of tablet devices.

Compatibility zoom for fixed-sized apps. A new compatibility display mode gives users a new way to view these apps on larger devices. The mode provides a pixel-scaled alternative to the standard UI stretching, for apps that are not designed to run on larger screen sizes.

Media sync from SD card. On devices that support a removable SD card, users can now load media files directly from the SD card to apps that use them.

Extended screen support API. For developers who want more precise control over their UI across the range of Android-powered devices, the platform’s screen support API is extended with new resource qualifiers and manifest attributes, to also allow targeting screens by their dimensions.

For a complete overview of what’s new in the platform, see the Android 3.2 Version Notes.

We would also like to remind developers that we recently released new version of the SDK Tools (r12) and of the Eclipse plug-in (ADT 12). We have also updated the NDK to r6.

Visit the Android Developers site for more information about Android 3.2 and other platform versions. To get started developing or testing on the new platform, you can download it into your SDK using the Android SDK Manager.

Wednesday, July 13, 2011

Asphalt 5 HD for Samsung Galaxy Series (HVGA and QVGA)





Get in, start up and punch it in the fastest dream cars ever created by some of the most prestigious manufacturers in the world. Everything you've ever dreamed of doing behind the wheel is here! Stop dreaming and get in! THERE'S A DREAM CAR FOR YOU Take a ride in over 30 of the fastest, most prestigious cars you've ever dreamed of, from manufacturers like Ferrari, Lamborghini, Audi and Ducati. THE WORLD IS YOUR RACETRACK Highly polished HD graphics let you see every detail and animation of the track as you speed over snow, mud, dirt and more in 12 beautiful locations around the world including St. Tropez, Aspen and Las Vegas. Discover hidden shortcuts and jump off ramps! NEW WAYS TO PLAY Challenge yourself to 8 different racing events including Drift Contest, Cop Chase, Time Attack, Duel Mode, Last Man Standing and Escape.

Features

  • Get behind the wheel of over 30 vehicles from prestigious manufacturers (Ferrari, Lamborghini, Audi, Ducati)
  • Race in 12 unique locations, including St. Tropez, Aspen and Las Vegas, with varied track surfaces, short cuts and spectacular jumps.

Download :
  
           APK :
                HVGA (320x480) : Click Here to Download
                QVGA (240x320) : Click Here to Download
          
           DATA:
                HVGA/QVGA : Click Here to Download




Hero of Sparta HD for Samsung Galaxy Series (HVGA and QVGA)




You wake up alone on an unknown beach -- your boat and entire fleet missing... It's the beginning of an epic odyssey to find out just what game the gods are playing with you, King Argos. Your fate now lies in their hands. Battle like the fierce Spartan warrior you are to avoid a tragic death as you journey from the Oracle's Island to Atlantis and finally to the depths of the Underworld. You will fight the most phenomenal monsters from mythology, defy Cerberus and the Cyclops, and challenge the gods themselves! It's your chance to write your own legend... if you can survive this mythic adventure.
Features
  • A full 3D experience: move in 3 dimensions in superb and varied 3D environments.
  • Unleash the hero's special powers by performing touch screen move combos.
  • 8 different levels to explore: the mysterious Atlantis, the depths of the Underworld, and more.
  • Face legions of enemies and the most impressive mythical creatures such as the Cyclops or Cerberus.
  • Fabulous equipment and 5 mythic weapons to upgrade: draw your mythic swords, ax, and bow!
  • Fight, explore, solve puzzles... more than a basic hack and slash: a real odyssey.
GAME FIX

- Replace intro.mp4 in hos folder with this one
intro.mp4


  Download:

           APK :
                HVGA (320x480) : Click Here to Download
                QVGA (240x320) : Click Here to Download
          
           DATA:
                HVGA/QVGA : Click Here to Download




Real Football 2011 HD for Samsung galaxy series (HVGA and QVGA)

Experience the deapth of soccer in your android device through Real Football 2011 HD




We've brought the game to an all-new playing field for the most realistic soccer experience. Prepare for totally new graphics and motion-capture-based animations that will impress even fans of the series. This is your chance to be a Real Soccer champion, just like David Villa, in the most exciting sports simulation to date. Enjoy varied game modes plus Multiplayer to challenge your friends, then show the world your best replays by uploading them directly to YouTube.

Features

  • Every character & stadium was rebuilt and combined with motion capture animations to push the definition of “life-like”.
  • Jump into soccer's most exciting moments in History mode & alter the course of the game's most epic matches of all time.
  • The game is deeper than ever with a whopping 350 teams, 14 leagues and real player names thanks to the FIFPro license.
  • Manage and lead an entire team in Club Master, or step into the spotlight and control a single player's life in Enter the Legend.
  • Challenge your friends to epic matches in Multiplayer.
  • Dynamic camera angles, coach reactions, player celebrations & more make every minute of gameplay feel like a live broadcast!

Download :
  
           APK :
                HVGA (320x480) : Click Here to Download
                QVGA (240x320) : Click Here to Download
          
           DATA:
                HVGA/QVGA : Click Here to Download




Avatar HD for Samsung galaxy series (HVGA and QVGA)

The award winning movie Avatar was adapted for pc and playstation games some months ago.Now we, the android users are given the oppurtunity to explore the lands of pandora through the game Avatar.





Go deeper into the spectacular world of James Cameron's Avatar™ and embark on a journey of redemption and discovery two decades prior to the events in the film. As Cpt. Ryan Lorenz, you'll transmit your consciousness into the body of an experimental human-Na'vi hybrid, becoming the first avatar. Can you anticipate the powerful transformation about to unfold? Will you use your new powers to save the Na'vi, or will you work with the humans to destroy their world? Features
  • Uncover an original story that takes place two decades prior to the film and learn how the first avatar came to be.
  • Go on a journey of exploration, danger and adventure in an unimaginable world. Fight for survival in tense action sequences against ferocious beasts and carnivorous plants. When the battle reaches its height, take to the skies of Pandora on a banshee in epic shoot'em-up sequences.
  • Join the Na'vi in their native village. Help protect their world by accepting their mission: To fight against and conquer the human invaders.
  • Explore every aspect of Pandora, the world created by James Cameron. Discover 15 levels, from the human-built mines and military strongholds to beautiful waterfalls and lush jungles that come alive at night with bioluminescent plants.
  • Discover Na'vi fighting techniques. Train your precision as you master the bow, perform combos with your fighting staff, and deploy the humans' high-powered energy weapons.
  • The voice of Neytiri in the movie narrates the epic story.

Game Fix
- Download Chainfire3D.zip unpack it then install.
- Download Plug-ins file, unpack it in SD.
- Open chainfire3D then allow super user.
- Select the CF3D Driver, and then Install. Phone restarts.
- Start the Chainfire3D and select the item Install plugin.
- Wait till it found plug-ins .zip file
- Install libGLEMU_POWERVR.zip
- Fix market setting
-
After this, go to Default OpenGL settings -> Use plugin
- Choose POWERVR
- Minimize Chainfire3D
- Open Avatar
Download :
  
           APK :
                HVGA (320x480) : Click Here to Download
                QVGA (240x320) : Click Here to Download
          
           DATA:
                HVGA/QVGA : Click Here to Download




Tuesday, July 12, 2011

A New Android Market for Phones

[This post is by Eric Chu, Android Developer Ecosystem. —Dirk Dougherty]

Earlier this year, we launched several important features aimed at making it easier to find great applications on Android Market on the Web. Today, we're very excited to launch a completely redesigned Android Market client that brings these and other features to phones.

The new Market client is designed to better showcase top apps and games, engage users with an improved UI, and provide a quicker path to downloading or purchasing your products. For developers, the new Android Market client means more opportunities for your products to be merchandised and purchased.

In the home screen, we've created a new promotional page that highlights top content. This page is tiled with colorful graphics that provide instant access to featured apps and games. The page also lets users find their favorite books and movies, which will help drive even more return visits to Market.

To make it fun and easy for users to explore fresh content, we've added our app lists right to the Apps and Games home pages. Users can now quickly flip through these lists by swiping right or left, checking out what other people are downloading in the Top Paid, Top Free, Top Grossing, Top New Paid, Top New Free, and Trending lists. To keep the lists fresh and relevant, we've made them country-specific for many of the top countries.


To help you convert visitors to customers, we’ve made significant changes to the app details page. We've moved the app name and price into a compact action bar at the top of the page, so that users can quickly download or purchase your app. Directly below, users can flip through screen shots by swiping right or left, or scroll down to read your app's description, what's new, reviews, and more. To help you promote your product more effectively, the page now also includes a thumbnail link to your product video which is displayed at full screen when in landscape orientation.

For users who are ready to buy, we've streamlined the click-to-purchase flow so that users can complete a purchase in two clicks from the app details page. During the purchase, users can also see a list of your other apps, to help you cross-sell your other products.

With a great new UI, easy access to app discovery lists, a convenient purchase flow, and more types of content, we believe that the new Market client will become a favorite for users and developers alike.

Watch for the new Market client coming to your phone soon. We've already begun a phased roll-out to phones running Android 2.2 or higher — the update should reach all users worldwide in the coming weeks. We encourage you to try the update as soon as you receive it. Meanwhile, check out the video below for an early look.

Monday, July 11, 2011

Gangstar 2:Miami Vindication HD for galaxy series(HVGA and QVGA)

One of the best android HD games released by Gameloft. This game has been obtimised for HVGA and QVGA devices like samsung Galaxy Ace/Mini/Pop/Pro etc.








Enjoy the most immersive full-3D crime simulation ever on smartphone! Gangstar: Miami Vindication has a new, unique feel that delivers a deep storyline of revenge: plunge into Miami gang life and live a fast-paced adventure to liberate your little brother who has been kidnapped by the Armada gang for unknown reasons… Features
  • A long lifespan, far beyond the typical smartphone game, with more than 75 varied missions: infiltrate gangs, snipe enemies, escort witnesses, chase cars and survive the jungle of Miami.
  • An amazing reconstruction of an entire sprawling metropolis with a massive open-ended environment that recreates Miami, including Downtown, Miami Beach, The Harbor, Miami Bay, and The Swamps.
  • New amazing vehicles to drive, from regular cars & motorcycles to boats, jet skis and even a helicopter!
  • Defeat rival gang members by using a new arsenal of weapons including grenades, flame throwers and Molotov cocktails. See just how it feels to blow out Miami!
  • A deep storyline of revenge: the scenario was jointly written with a scriptwriter from the popular TV show, “The Wire” and is delivered by countless breathtaking, voice acted cutscenes.
  • A true feeling of freedom: complete missions at your own pace and do absolutely anything you want, by day or by night.
  • Radio stations broadcast popular songs from famous hip-hop, rock and electro artists, including artists from the famous Ninja Tunes label
Download :
  
           APK :
                HVGA (320x480) : Click Here to Download
                QVGA (240x320) : Click Here to Download
          
           DATA:
                HVGA/QVGA : Click Here to Download
NOTE:COPY DATA TO sdcard/gameloft/games




Related Posts Plugin for WordPress, Blogger...