Translate

Saturday, July 26, 2014

The first Step of Android Programming !!

The Primary Concept of Android Programming 

The intent function:

The intent function is used to transform into several pages. To deploy this intent function,the user have to be well thorough in the "Button" concept and operations. Meanwhile, an intent function can be employed only with he help of buttons. 
                                   

To be more precise, 'intent function can be used only when you have placed the button in a xml file. In the above picture, when the log in button is clicked,
1) The compiler will check for the matching of username and password.
2) If they are matched together, then the log in button will perform the function of intent .

The function gets executed in fraction of seconds(excluding online pages) .Thus it supports transformation of pages in an application.

The Code for this intent function is as follows;

StartActivity(i);

To access internet by using the button, the code will be;

Intent i=new Intent(android.content.intent.Action_View,Uri.Parse("http://www.google.com");
StartActivity(i);

For internet activities, you need to add 'User Permissions'. And that can be done as;

           res->AndroidManifest.xml->Permission-> User Permission-> Add

I hope this will help you. For further clarifications plz comment below.

No comments:

Post a Comment