Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Friday, May 17, 2013

My Android Reboot Class: 101


Class: 101

First class and hands on details, how I try to make my first real application. 

What I learn, I will share, each bits and bytes with you all, so that a collective learning can be attained in this first session or in upcoming future sessions. 

This lesson is for the first timers, so if you are advance Android experts you can further skip this lesson or future lessons.

So, this how I started my first Android learning curve.................... 

Prerequisite for this session: 

1.) Windows(XP/7/8) Or Ubuntu (10-12.04 LTS) machines. 
2.) Eclipse IDE 
     (http://www.eclipse.org/downloads/packages/eclipse-classic-422/junosr2)
3.) Android SDK (http://developer.android.com/sdk/index.html#download)
4.) ADT-Plugin for Eclipse to integrate Android feature in IDE.   
    (http://developer.android.com/tools/sdk/eclipse-adt.html)
5.) Latest SDK tools and platforms using Android SDK.

Note: 
Don't worry, if you don't know, how to install and configure the above prerequisite. I will share each details with you in upcoming classes :) 





Monday, December 10, 2012

Android SDK on Eclipse (Ubuntu-Linux)


Android SDK Tools > Rev. 20
Android SDK Platform-tools > Rev. 12

SDK Plaform > API 16

Monday, August 13, 2012

Android on Linux (Ubuntu)


First download this package a .tgz. Unpack it to a safe location on your Ubuntu machine.

Package Name: Linux (i386) >> android-sdk_r20.0.1-linux.tgz

By default, the SDK files are unpacked into a directory named android-sdk-linux_x86.

Make a note of the name and location of the SDK directory on your system—you will need to refer to the SDK directory later, when setting up the ADT plugin and when using the SDK tools from the command line.

Troubleshooting Ubuntu• If you need help installing and configuring Java on your development machine, you might find these resources helpful:o https://help.ubuntu.com/community/Javao https://help.ubuntu.com/community/JavaInstallation


  • Here are the steps to install Java and Eclipse, prior to installing the Android SDK and ADT Plugin.


1. If you are running a 64-bit distribution on your development machine, you need to install the   
    ia32-libs package using apt-get::apt-get install ia32-libs
2. Next, install Java: apt-get install sun-java6-jdk
3. The Ubuntu package manager does not currently offer an Eclipse 3.6 version for download,  
     so we recommend that you download  Eclipse from eclipse.org (http://www.eclipse.org/ 
     downloads/). A Java or RCP version of Eclipse is recommended.
4. Follow the steps given in previous sections to install the SDK and the ADT plugin.

• The Android SDK separates tools, platforms, and other components into packages you can download using the Android SDK Manager. The original SDK package you've downloaded includes only the SDK Tools. To develop an Android app, you also need to download at least one Android platform and the latest SDK Platform-tools. You can update and install SDK packages at any time using the Android SDK Manager. If you've used the Windows installer to install the SDK tools, you should already have the Android SDK Manager open. Otherwise, you can launch the Android SDK Manager in one of the following way.


  • On Mac or Linux, open a terminal and navigate to the tools/ directory in the Android SDK, then execute android sdk.


When you open the Android SDK Manager, it automatically selects a set of recommended packages. Simply click Install to install the recommended packages. The Android SDK Manager installs the selected packages into your Android SDK environment. 

The following sections describe some of the available SDK packages and more about which ones we recommend you install.Once you have installed your packages, continue to the next page.























Figure Alpha. The Android SDK Manager shows the SDK packages that are available, already installed, or for which an update is available.

Source: http://developer.android.com/sdk/installing/index.html

Thursday, May 31, 2012

New Session Track 1 (Android Basics)



How to install Android SDK on Ubuntu 11:


1.) Download this SDK for Linux (Ubuntu) http://dl.google.com/android/android-sdk_r18-linux.tgz
2.) Un-zip or extract in a folder ADK or any name.
3.) In this folder (e.g android-sdk-linux) go to "tools" and than look for " android " script.
4.) Double click on that and select "Run in Terminal"
5.) this leads to a android software downloader kind of tool UI
6.) Select SDK tools, Goolge API as main and rest on your own selection if you have some idea.
7.) That's it update the selection by selecting "Install", so here we are with updated Android SDK on Ubuntu 11 (Linux) OS. 


Soon add screen-shots for better understanding, till than happy Android hunting :)     

Tuesday, April 26, 2011

Are the processors 64-bit on Ubuntu?

A 64-bit processor will have lm ("long mode") in the flags section of cpuinfo. A 32-bit processor will not.

e.g.,

flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm stc

--------------------------------------------------

Are the processors dual-core (or multi-core)?

$ grep 'cpu cores' /proc/cpuinfo
cpu cores       : 2
cpu cores       : 2
cpu cores       : 2
cpu cores       : 2

"2" indicates the two physical processors are dual-core, resulting in 4 virtual processors.

If "1" was returned, the two physical processors are single-core. If the processors are single-core, and the number of virtual processors is greater than the number of physical processors, the CPUs are using hyper-threading. Hyper-threading is supported if ht is present in the CPU flags and you are using an SMP kernel.

----------------------------------------------

CPU Information: 

cat /proc/cpuinfo

-----------------------------------------------

Installing Eclipse and the Android SDK (Ubuntu 8.04/8.10):

http://androidforums.com/developer-101/2321-installing-eclipse-android-sdk-ubuntu-8-04-8-10-a.html