Archive | ANDROID

RSS feed for this section

Android Lesson 3 part 2: work with ImageView

Example with ImageView.setImageResource File conntent_main.xml: File MainActivity.java After: public class MainActivity extends AppCompatActivity { add public ImageView imgview; And in method onCreate add We will get the result: Example with ImageView.setScaleType File content_main.xml File MainActivity.java And in method onCreate add The result we will get:

Read full story Comments { 0 }

Some errors most view when use Android Studio 1.5

Error 1: Step 1: Click icon SDK manager in the toolbar, we will the the default settings dialog Step 2: Click Launch standalone SDK manager We will see the android SDK manager dialog Step 3: tick SDK platform and click the button Delete 1 package Step 4: Reinstall SDK platform by tick SDK platform and […]

Read full story Comments { 1 }

Android Lesson 1 Part 4: configure Genymotion to run with Android Studio

In the previous tutorials we learn how to install Genymobile emulator Now we learn how to configure Genymotion to run with Android Studio Step 1: In Android Studio, go to File -> Settings You will see Settings dialog. Step 2: Select Plugins and click Browse Repositories Step 3: Select Genymotion then click Install plugin Step […]

Read full story Comments { 0 }

Android Lesson 1 part 3: Install Genymotion emulator

Genymotion is the fastest Android emulator for app testing and presentation. System requirements: Microsoft Windows 7, 8/8.1, 10 (32/64 bit). 64 bit CPU, with VT-x or AMD-V capability, enabled in BIOS settings Recent and dedicaded GPU 400 MB disk space 2GB RAM To install and configure it, follow some steps: Step 1: Download here Step […]

Read full story Comments { 1 }

Android Lesson 1 part 2: Setup Eclipse

We can use Eclipse instead of Android Studio, this is the best way for weak performance machine. Step 1: Setup Android SDK 1.1 You can download the installer from the Android official website: http://developer.android.com/sdk/index.html Now, the lasted version is 24.4.1 Platform Package Size SHA-1 Checksum Windows installer_r24.4.1-windows.exe (Recommended) 151659917 bytes f9b59d72413649d31e633207e31f456443e7ea0b android-sdk_r24.4.1-windows.zip 199701062 bytes 66b6a6433053c152b22bf8cab19c0f3fef4eba49 […]

Read full story Comments { 0 }

Android Lesson 3: work with ImageView

After creating a new project, we see the directories of resources: Step 1: To use ImageView, we create a new image resource, copy an image in your computer like: and paste it in res/drawable/ Note: a resource name must begin with a character Step 2: open file res/layout/contain_main.xml. Now we can put some codes in […]

Read full story Comments { 0 }

Android Lesson 2: Change background Application

In the previous lession, we learn how to setting up Android Environment Now we start to create the first Application: Change background Step 1: create new project Configure new project Target android devices Add an activity to mobile Customize the activity Click Finish. Step 2: Create new Android Virtual Device You can user AVD manager […]

Read full story Comments { 0 }

Android Lesson 1: Environment Setup

Android requirement: Microsoft Windows XP or later version. Mac OS X 10.5.8 or later version with Intel chip. Linux including GNU C Library 2.7 or later. And you must install some application before you start your Android application programming. Java JDK5 or later version Android SDK Java Runtime Environment (JRE) 6 Step 1: install Java […]

Read full story Comments { 1 }

How to fix error “HAXM is not working and emulator runs in emulation mode” for Android Emulator

If when you see the error when run an application in Android Studio: It means you have a problem with HAXM, you must folow theses steps: Step 1: Go to the folder C:\Users\Administrator\AppData\Local\Android\sdk\extras Step 1.1: If you don’t see the folder intel, plz create that folder and download https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager and unzip it in that folder […]

Read full story Comments { 1 }