Skip to main content

سلسلة تعلم برمجة تطبيقات الاندرويد - إعداد بيئة العمل - الحلقة رقم 1

في هذه الحلقة سنقوم بتجهيز بيئة العمل، وإعداد كافة الأدوات والبيئة اللازمة للبدء في برمجة تطبيقات الاندرويد، لنتمكن في الحلقات القادمة من العمل والتطوير باستخدام الأدوات التي سنقوم بإعدادها في هذه الحلقة.
1. للبدء في تطوير أي برنامج على الاندرويد لا بد من توفر حزمة التطوير الأساسية وهي
Android SDK.
هذه الحزمة هي حجر الأساس لعمل أي تطبيق على الاندرويد حيث تحتوي على مجموعة كبيرة من الوظائف الاساسية والبرامج التي تمكننا من التحدث مع نظام التشغيل الاندرويد، وطلب تنفيذ العمليات والحسابات إلى غيره من الوظائف بحسب طبيعة كل تطبيق ووظائفه. وتمكننا أيضا من إنشاء أجهزة افتراضية Virtual Machines تساعدنا على تجربة التطبيقات حتى بدون وجود جهاز اندرويد
 2. حزمة الجافا JDK
والتي تقوم بترجمة النص البرمجي لحزمة الاندرويد وكذلك النص البرمجي للتطبيق وتحويله إلى نسخة تنفيذية قابلة للعمل على أي جهاز اندرويد
3. بيئة العمل IDE
وفي هذه السلسلة سنقوم باستخدام Netbeans
وذلك لسهولة استخدامه وسهولة التطبيق عليه.
كما يمكن أيضا استخدام بيئة العمل Eclipse.
ولغايات تبسيط هذه الحلقة وجعلها مخصصة فقط للاندرويد، سأقوم فقط بشرح طريقة ربط
Netbeans مع ال Android SDK
وسأكتفي بالإشارة إلى روابط تحميل وتنصيب كافة الأدوات والحزم التي تلزمنا في هذه الحلقة، ويمكن الرجوع إلى دليل الاستخدام في كل رابط للمزيد من التفاصيل. أو من خلال وضع المشكلة أو أي استفسار في التعليقات أسفل الموضوع. وسأحاول قدر الإمكان الإجابة على استفسارتكم أو من خلال طرحها في حلقة مفصلة.
الروابط:
1. حزمة ANDROID SDK:
http://developer.android.com/sdk/index.html
2. حزمة Java JDK:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
3. بيئة العمل Netbeans:
http://netbeans.org/downloads/
بعد تنزيل وتنصيب كافة المستلزمات السابقة للبدء في عملية تطوير تطبيقات الاندرويد، سننتقل الان لخطوة ربط بيئة العمل
Netbeans مع حزمة Java JDK
ومن ثم ننتقل لخطوة الربط مع حزمة Android SDK.
1. قم بتشغيل Netbeans من خلال ال Terminal
 بعد الانتقال إلى مكان تنصيب ال Netbeans:
وذلك من خلال كتابة الأمر
./netbeans --jdkhome /usr/java/jdk1.7.0_05/
قم باستبدال /usr/java/jdk1.7.0_05/
بالمسار الذي قمت بتنصيب حزمة JDK فيه.
اذهب الآن إلى Tools > Plugins > واضغط على Settings.
اضغط على زر Add وأدخل التالي:
Name: Android
Url: http://kenai.com/projects/nbandroid/downloads/download/updatecenter/updates.xml
شاهد الصورة
netbeans-android-setings
اضغط على Ok
وانتقل بعدها إلى قسم Available Plugins
من نفس النافذة واختر Android
وقم بالضغط على زر install.
بعد تنصيب Android Plugin
انتقل الان إلى قائمة  Tools
واختر Options
ومنها اختر Miscellaneous
ومنها اختر قسم Android .
بعدها اضغط على زر Browse
وانتقل بالمتصفح إلى المسار الذي قمت بتنصيب Android SDK
فيه كما في الصورة التالية.
netbeans-configure-android-sdk
قم بعد ذلك بتحديث حزمة Android SDK
من خلال الضغط على  Tools
ومنها اختر Android SDK and AVD Manager
كما في الصورة التالية:
netbeans-install-android-sdk-updates
وهكذا نكون قد أتممنا كافة المستلزمات والأدوات التي نحتاجها للبدء في تطوير برمجيات الاندرويد، أتمنى أن يكون الشرح وافيا ومبسطا، حتى نتمكن من الانتقال للحلقة الثانية والتي ستكون عن هيكلية ومكونات تطبيق الاندرويد.
بانتظار ردودكم واستفساراتكم وأية مقترحات تخص هذه الحلقة بشكل خاص أو السلسلة بشكل عام من خلال التعليقات في الأسفل.
...
أنس الجاغوب
Twitter: @anasjaghoub
Facebook: www.facebook.com/anasjaghoub

Comments

Popular posts from this blog

PHP Tutorial–Guest Book–System Definition and Requirements

In this lesson I’m going to illustrate the system definition and requirements for the Guest Book application. It is an important step in developing any application, since this step gives us an orientation about the system and its functionality, what is expected from the system to do. actually the system definition comes from keywords from customers and end users, usually try to make it clear for what they need in the application, and what they expect the system to do.  As developers it is our role to define the requirements for the system to be developed. In our example the system definition for the Guest Book is: A system that allows visitors of the site to post their comments and feedbacks about the site, with the possibility for managing comments and maintain it easily and user friendly. On the other hand, the system requirements are: a web server, since it is clear that the developed system is going to run on the Internet, so it is a web-based application not windows-based.

تعلم تطوير تطبيقات للموبايل باستخدام الأندرويد

مرحبا أصدقائي يسعدني أن أبدأ معكم سلسلة حلقات في تعلم تطوير تطبيقات للموبايل باستخدام الأندرويد ، وسأسعى جاهدا معكم في أن تكون هذه السلسلة من أوائل السلسلات في اللغة العربية لتعليم برمجة تطبيقات الأندرويد من البداية وحتى الاحتراف. وسأحاول قدر المستطاع الشرح بلغة عربية بسيطة ومفهومة. حيث ستكون غدا إن شاء الله الحلقة الأولى من تعلم تطوير تطبيقات الموبايل باستخدام الأندرويد. أنس الجاغوب Twitter: @anasjaghoub Facebook: anasjaghoub

Web Development Best Practices (PHP Best Practices)

Websites development is one of the most challenging projects ever to develop, according to the large number of components you deal with, integrate, and manage in your application. For example, most web projects Deal with databases as their data source, and I ntegrate with external services called web services and APIs. As well the application M anages its own objects and components from views to models to controllers to plugins and so on. A skilled web developer should have a great/deep knowledge in most of components used in his system, and as well should ha ve intensive focus on how each component work and how can be used, what can be done, and what cannot. On the other hand, the huge amount of requirements, components to manage, and time frame given to you to accomplish your mission, and number of people in your team, all these factors together requires from you to organize your tasks, and priorities your requirements, do deep analysis and planning in order to have a hi