Installing jdk 1.6.x systemwide for Android development on Ubuntu 11.10 Oneiric 32/64 bits

February 13, 2012 in Tutorials

Download the bin for your platform 32 or 64 binary

Open Terminal

cd ~/Downloads

Uncompress it
If you are using the 32 bit version

sh jdk-6u30-linux-i586.bin

or on 64 bit version

sh jdk-6u30-linux-x64.bin

Move the decompressed files in /usr/lib/jvm

sudo mv jdk1.6.0_30 /usr/lib/jvm/

Run

sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.6.0_30/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.6.0_30/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jdk1.6.0_30/bin/javaws" 1

Run

sudo update-alternatives --config java

Choose the option

/usr/lib/jvm/jdk1.6.0_30/bin/java

Check the java version with

java -version
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode

Start eclipse or android sdk tools :)

Android Development liked this post

Make sure glue isn’t stripped

February 12, 2012 in JNI, NDK, OpenGL, Tutorials

If you ever get this cryptic error when loading an Android native app:


This may mean that Java couldn’t find the ANativeActivity_onCreate

function in your code, because it was stripped by the compiler.

If you use the native_app_glue NDK module, you may have noticed this strange code:

    // Make sure glue isn't stripped.
    app_dummy();

Let’s experiment what happens with and without this line

Sencha ran the Chrome for Android mobile browser through HTML5 Developer Scorecard

February 11, 2012 in News, WebGL

We ran the Chrome for Android mobile browser through our HTML5 Developer Scorecard. The gist? Get this browser now

“If you own an Android 4, there is no question you should download and use Chrome Mobile beta as your primary browser.”

Android Development liked this post

Mobile Developers More information about what you need to know about Chrome for Android

February 7, 2012 in Uncategorized

Under the hood, Chrome for Android includes key support for HTML5 and other open web technologies, which means you can share code across the desktop and mobile platforms. In addition, you can take advantage of the complete set of Chrome’s powerful Developer Tools through an easy hookup with a desktop system.

Because it’s Chrome, this new browser for Android provides the first-class browsing experience you’ve come to expect from Chrome on the desktop. Here are the Highlights of this top-notch user experience

Introducing Chrome for Android for Icecream Sandwitch only

February 7, 2012 in C++, News

My hope was for 90% of users (2.2,2.3) but only 4.0 gets the Cream of the speed 

Chrome is now available in Beta from Android Market, in select countries and languages for phones and tablets with Android 4.0, Ice Cream Sandwich. We’re eager to hear your feedback. Finally, we look forward to working closely with the developer community to create a better web on a platform that defines mobile.

 

 

90% of Android devices now running 2.2 and later

February 4, 2012 in News

According to the latest monthly figures released by Google, for the first time, over 90% of Android devices are running Android version 2.2 or later. Of the total, just under 60% are running the latest smartphone version, 2.3.x Gingerbread, a number that is only growing slowly – up 3 percentage points in the last month – suggesting that updates are not happening quickly; also, many devices are still being sold with Android 2.2, Froyo. The speed with which that share – currently 28% – is coming down has slowed recently, having fallen only by about 3 percentage points a month since November. Versions prior to 2.2 are now running on only 9.2% of devices. Android 4, Ice Cream Sandwich, takes the smallest share at just 1%.

 

The figures are published on the Platform Versions device dashboard on the Android Developer portal. The figures are released in order to help Android application developers understand the distribution and trends in the devices currently in use. The numbers also include the API level associated with the various Android versions. Gingerbread, for example, has two API levels associated with it, 9 and 10; the vast majority of devices are running the latter. The current figures are based on data collected during a two-week period up to 1 February 2012.

 

News via the h-open

Android and Security update

February 2, 2012 in News

Quoting the Google Mobile Blog:

The last year has been a phenomenal one for the Android ecosystem. Device activations grew 250% year-on-year, and the total number of app downloads from Android Market topped 11 billion. As the platform continues to grow, we’re focused on bringing you the best new features and innovations – including in security.

Adding a new layer to Android security
Today we’re revealing a service we’ve developed, codenamed Bouncer, which provides automated scanning of Android Market for potentially malicious software without disrupting the user experience of Android Market or requiring developers to go through an application approval process.

The service performs a set of analyses on new applications, applications already in Android Market, and developer accounts. Here’s how it works: once an application is uploaded, the service immediately starts analyzing it for known malware, spyware and trojans. It also looks for behaviors that indicate an application might be misbehaving, and compares it against previously analyzed apps to detect possible red flags. We actually run every application on Google’s cloud infrastructure and simulate how it will run on an Android device to look for hidden, malicious behavior. We also analyze new developer accounts to help prevent malicious and repeat-offending developers from coming back.


Android malware downloads are decreasing
The service has been looking for malicious apps in Market for a while now, and between the first and second halves of 2011, we saw a 40% decrease in the number of potentially-malicious downloads from Android Market. This drop occurred at the same time that companies who market and sell anti-malware and security software have been reporting that malicious applications are on the rise. While it’s not possible to prevent bad people from building malware, the most important measurement is whether those bad applications are being installed from Android Market – and we know the rate is declining significantly.

Android makes malware less potent
In addition to using new services to help prevent malware, we designed Android from the beginning to make mobile malware less disruptive. In the PC model, malware has more potential to misuse your information. We learned from this approach, designing Android for Internet-connected devices. Some of Android’s core security features are: 

  • Sandboxing: The Android platform uses a technique called “sandboxing” to put virtual walls between applications and other software on the device. So, if you download a malicious application, it can’t access data on other parts of your phone and its potential harm is drastically limited.
  • Permissions: Android provides a permission system to help you understand the capabilities of the apps you install, and manage your own preferences. That way, if you see a game unnecessarily requests permission to send SMS, for example, you don’t need to install it.
  • Malware removal: Android is designed to prevent malware from modifying the platform or hiding from you, so it can be easily removed if your device is affected. Android Market also has the capability of remotely removing malware from your phone or tablet, if required.
No security approach is foolproof, and added scrutiny can often lead to important improvements. Our systems are getting better at detecting and eliminating malware every day, and we continue to invite the community to work with us to keep Android safe.
By Hiroshi Lockheimer, VP of Engineering, Android
 Source here.

Acer Iconia Tab A200 hands-on (video) – Looks Sexy at $330

February 2, 2012 in Uncategorized

Here at CES, you’d expect little ‘ol Tegra 2 to get lost in the mix amid the Medfield prototypes, and quad-core Tegra 3 devices.

Not necessarily — not if the price is right, anyway. The Acer Iconia Tab A200 packs NVIDIA’s last-gen SoC, and no, it’s not the slimmest or lightest tablet on the block, but for $330 you get a 10-inch slate on the brink of an ICS update. That counts for something, right? We’d say so, especially if Ice Cream Sandwich does indeed correct some of the sluggishness that’s plagued Honeycomb tablets (even Tegra 3-powered ones).

Here is the full review on engadget

Howto : Cross-compile FreeType and use it for Android (ARM) native projects

January 29, 2012 in C++, Java, JNI, NDK, OpenGL, Tutorials, Tutorials

If you want to use FreeType in your native C/C++ Android app, you’ll need to cross-compile it. The Android system uses FreeType internally but it doesn’t expose it to native apps.

Here is the full tutorial on howto use it in your project.

[Latest version of these instructions can be found at the OpenGL Wikibook]

Rooting the Samsung Galaxy Tab 10.1

January 29, 2012 in Applications, Firmware

Well i got the job to root the samsung Galaxy Tab 10.1 (gsm model sold at orange) , In Romania is sold as GT-P7500 

Sweet device , it looks like what i want for my next Xmas or sooner :)

The rooting works as described , without many hiccups (If you can call the windows experience a pleasure):
 

Warning to recognize the device as storage at step Completing the Root you need to install Samsung Kies or the usb driver for samsung (and reboot)

Update: seems that with all my will the windows/ubuntu couldn’t recognize the device as storage so i have shared root file zip Samsung_Galaxy_Tab_10.1_root.zip on my one account and then  have downloaded to the sdcard as in the tutorial the http://ur1.ca/7xnj3

ps:Finally i can type to the screen without misspelling the word , I love the screen size and the speed (dual core)

Only the browser is a little bit lagging compared with my Lubuntu desktop experience , I wait for a real chrome on android devices to speed up the browsing experience