Starting with the Android source code - android

I'd like to start looking into the Android source code. I'd like to start with the easiest place. Which is the easiest place to start with - any application / framework? Please suggest.

A simple google search would provide you appropriate results
Information on Android Open source website
http://source.android.com
Android Source code
https://android.googlesource.com

In the Resources section of the Android SDK site there are some tutorials that will walk you through some source code. Here is a link to the tutorial on creating a notepad application

I think it is better to start with any application first because that way you will know how it is applied.

Start at the Android | Developer Website: http://developer.android.com/.
Under the "Resources Tab", you'll find useful example applications.
Make sure you installed Eclipse and the Eclipse Android Plugin. Than you ca create a new android project (File > New... > Other... > Android Project) in Eclipse and check "Create Project from exisiting Example". The Api Demo Application is great.
You should watch some Videos of Romain Guy, too, he's a coding genius.

Related

How to open android documentation and samples of code in android studio

I have downloaded all documentation with SDK manager help. But how can I open this documentation and the samples of code in Android Studio after downloading?
According to Android Studio Tips and Tricks, you can press Ctrl+Q to show docs for selected API under Windows or F1 under Mac.
For the samples , you can use eclipse to export to Android Studio.
First you need to make sure the documentation is added to Android Studio.
Go to File -> Project Structure. Under the Platform Settings heading, add or select an Android Platform. Go to the Documentation Paths tab and make sure the path to your SDK's documenation folder is added there - it should be [SDK]\docs\reference, where [SDK] is the full path to your SDK installation. If it is not there add it manually.
Once this is done, use Ctrl+F1 while your cursor is on the item you want to display help for.
The samples have not been ported to Android Studio yet, but I'm sure google will get around to it at some point. For now follow the instructions in the comments by androidika (you will need a copy of Eclipse installed).
In Android Studio you need to download javadoc dependency which is part of sdk.
If you enable documentation to appear while writing code in android studio by navigating to
File-> Settings-> Editor-> General-> Other
and
selecting(check box) Show Quick documentation on mouse move, you would get irritating after some time because it will come out automatically you when you would be writing code.
So, I think we should go to alternative ways by using Ctrl + Q(on Ubuntu at least I am not sure of other environments). This way when you would feel help you can simply use the simple command.
I was trying to find this setting in the latest build of android studio, and after wasting a lot of time I finally found out that now the ide automatically finds the documentation, which can be opened with shift+f1 on a method.
Now a days once you Import project in Android studio, it will automatically shows docs. But on mouse hover you want to expand it.
Docs hover page was simply resized very short like the above, it looks like docs is not avail. But when I Carefully moving the mouse down to the bottom of the hover page allowed me to resize it.

Infragistics controls for eclipse

I want to use Infragistics controls in my android application which i am creating in Eclipse IDE. But i cannot find a way to integrate these controls with eclipse. I have downloaded the file named NetAdvantage from
http://www.infragistics.com/products/android/
But I cannot find a way to use it in my project. When I try to install it, it installs it for Visual Studio. Can anybody please tell me some way as my application is in java not in C# or VB.NET
I assume that you are referring to the IGUANA UI toolset? In this case I suggest choosing the "Iguana UI 2012 Complete Bundle" download option on the IG Website.
IGUANA UI actually does not require installation - the toolset as well as the documentation and product samples (including sample source code) are all available in the downloaded zip.
Please let me know if this helps.

How does android source code work?

I have download a set of android source code, which has folders such as "bionic, bootable, build, dalvik, development, frameworks, hadware, packages, prebuilt" and so on. When I browse the whole code, wonder how "import android.preference.PreferenceActivity;" works in Settings.java(D:\android-srce\Google-source\packages\apps\Settings\src\com\android\settings\Settings.java). I guess there is a android.jar file somewhere after compilation. But how does Settings.java import PreferenceActivity correctly?? I'm a beginner in Android, please help me.
Sounds like you have downloaded the source code to the Android OS. If you want to build your own ROMS then you need to study about building the OS for a particular hardware platform. This is not trivial.
If you want to build an Android app that runs on an Android device then you want to download the SDK instead - start at Android SDK and follow your nose, buy a book, read the sample code.
There is not a lot of information how to change parts of Android. However, you can read information that is connected with the aosp tag. The first cite is source.android.com After the installation of android build system you can see video from marakana group. You'll find a lot of valuable information there.

How to run Sencha Touch Application in Eclipse

i am new to sencha touch & phone gap.i want to run simple hello word app in eclipse.but i dont know how to do it.if any one knows it than let me know fast
Thanks in advance
Aamirkhan I.
UPDATE:
Well there is a plugin availble for eclipse in which we can easily create any sencha,jquery mobile,phonegap project's,just need to follow some steps to integrate that plugin..see MY POST for that plugin guide,i updated my answer just to help other's who don't know how to write sample application in phonegap eclipse.
Thanks
follow this folder structure.
---your application name
-------src
--------------your activity class
-------gen
--------------generated files
-------android2.2
--------------generated files
-------Referenced Library
--------------Phone gap referenct which is placed in the libs folder
-------assets
--------------create folder www
---------------------place your html files & create sub folders for sencha files(
-------bin
--------------auto generated files
-------libs
--------------phonegap-1.3.0.jar
-------res
--------------some auto generated files
--------------create xml folder in that place phonegap.xml and plugins.xml files
-------Android Manifest
-------proguard.cfg
-------project.properties
Start by doing the Getting Started tutorial of PhoneGap on whatever OS you want to work.
http://phonegap.com/start
You should get your Hello World pretty easily
And if you want to go further you can do that great Sencha Touch tutorial :
http://www.sencha.com/learn/a-sencha-touch-mvc-application-with-phonegap/
Hope it helps
I would suggest you to use Apatna studio for the Sencha client development. It helps to build web applications quickly and easily and it is one of the Eclipse based powerful web development engine.
http://aptana.com/
Find Aptana Studio 3 Release Updates site: http://download.aptana.com/studio3-rcp/plugin/update/
Another alternative is Spket plugin for eclipse for Javascript. Spket Update site: http://www.spket.com/update/
Once your are done with the client development, you can follow the below link to build the different version of mobile application builds using phone-gap. Visit here for Phonegap developers reference link

How do I see the core Android classes?

I am trying to look inside a couple of Android core classes to see about overriding some methods. I have looked into getting the Android source code, but the process described on the Android dev site is all about installing and setting up some kind of development environment. This is not necessary to me. I just want to open a class or two in a text editor and look at its contents. Does anyone know if this is possible without going through the multitude of steps described on the Android dev forums?
The easiest way is to use Google Code Search. You just have to try a search like Activity.java android and you can see the source code of that class. It even has an outline inspector:
You can download the entire source with git our just look it up as a reference on the git site. Here is a link to the sdk code:
https://android.googlesource.com/platform/frameworks/base
Another option is to use http://grepcode.com/ and perform a search such as "android ViewGroup". I've really enjoyed the style of using grepcode.

Categories

Resources