Download and install Java SE 7 from http://www.oracle.com/technetwork/java/javase/downloads/index.html
Download and install NetBeans IDE 7 from https://netbeans.org/downloads/7.4/
Download and unzip stand-alone Android SDK Tools (android-sdk_r23.0.2-windows.zip) for an existing IDE from http://developer.android.com/sdk/index.html to the C drive. The extracted folder name should be "android-sdk-windows"
Open the "SDK Manager.exe" at C:\android-sdk-windows\SDK Manager.exe
Tick the box beside the package name "Android 4.1.2 (API 16)"
Tick also "Intel x86 Emulator Accelerator (HAXM) installer" package under Extras node
HAXM = Android Hardware Accelerated eXecution Manager for Intel processor
Click on the "Install anInteger packages..." button
Wait until all the ticked packages are finished installing
Restart PC. Press F10 or delete key to enter BIOS to enable Virtualization Technology which is normally under System Configuration section
Double-click on
"C:\android-sdk-windows\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe" file to install Intel HAXM
HAXM speeds up the slow Android emulator on Intel machine
On the Android SDK Manager window:
- click on SDK Manager Menu > Tool > Manage AVDs...
- create a new Android Virtual Device Manager (AVD)
--- AVD Name: avdAndroid_4_1_2
--- Device: Nexus 4 (4.7", 768 x 1280: xhdpi)
--- Target: Android 4.1.2 – API Level 16
--- CPU/ABI: ARM (armeabi-v7a)
--- By default, let the box beside the "Hardware keyboard present" ticked
--- Skin: Skin with dynamic hardware controls
--- Click the OK button
--- At top right corner, click 'x' icon to close "Manage AVDs..." window
- At top right corner, click 'x' icon to close the Android SDK Manager window
Open NetBeans IDE
Click on Menu > Tools > Plugins > Settings tab
Click Add button to add new url to the Update Center
Type: Provider Name: nbandroid
Type: URL: http://nbandroid.org/updates/updates.xml
Click OK button
Select "Available Plugins" tab
Tick the "Android" box
Click on Install button to install this nbandroid plugin
After "Android" plugin installed, click Close button
NetBeans IDE Menu > Tools > Options > Miscellaneous toolbar icon > Android tab
SDK Location: C:\android-sdk-windows (use Browse button)
Click OK button
NetBeans IDE Menu > File > New Project > Android > Android Project
Click "Next >" button
Project Name: AndroidApplication1
Package Name: com.mycompanyname
Activity Name: MainActivity
Target Platform: select: Target Name: Android 4.1.2
Click Finish button
Clean and build the Android project
Run the Android project
Wait for some minutes until you get the "MainActivity" app icon on the emulator menu screen
Note that, you do not need to close the avdAndroid_4_1_2 Android Emulator window once it is opened
Edit the Android source code to meet your requirements
If you don't have any clue, try to edit the file text in the "AndroidApplication1\Resources\layout\main.xml"
Right-click on the AndroidApplication1 project name, select Run again to execute this app
Reading. Practice. Writing.
Please feel free to comment. Suggestions are also welcomed here. Write something "wholesome serving purpose" here.
Subscribe to:
Post Comments (Atom)
Measure execution time with Julia, example using sorting algorithms
# random integers between 1 and 100 inclusive, generate thousands of them x = rand ( 1 : 100 , 100000 ) @time sort (x; alg=InsertionSort, r...
-
Open LibreOffice Draw program. Select the rectangle shape from shape toolbar at the bottom of drawing page. Click a point and drag-and-re...
-
DiGi Super Long Life is a feature where you can extend your talktime validity to 1 year for just RM38. Indirectly, the subscription fee is ...
-
DiGi Super Long Life is a feature where you can extend your talktime validity to 1 year for just RM30. Indirectly, the subscription fee is...
No comments:
Post a Comment