tryad1tk

Friday, 19 February 2016

Navigation Drawer Activity with Fragments

Go to Android Studio,start new project and enter the desired name for your app.Then, in the next step Select the Navigation Drawer Activity and click Next.  As shown below



Click next and then press finish.
Now your app will be build, wait and then Continue Your project will look like this-



layout named as content_main.xml is the layout which will be shown first when you open your app

You can either edit this layout or create a new layout and call that layout using savedinstance ==null as the first layout.

Firstly edit your content_main.xml by removing tools:showIn="@layout/app_bar_main" this line and edit the app_bar_main.xml as follows-

we have added Framelayout So that each fragment would be replaced by other

Here what we want to do is open new fragment everytime the user selects an option from navigation drawer.

we have added Framelayout So that each fragment would be replaced by other

create a new layout named as lay1.xml as follows-


Now we will create a new class that will extend Frgaments and will use this new lay1.xml as its View

Create new class named as Frag1.Java-


Similarly create other layout like,lay1.xml and also create seperate Fragment Class like Frag1.Java

Now call this fragment using getSupportFragementManager() Method in MainActivity or any other desired place-


Friday, 12 February 2016

Working With Google Maps For Android App

Get marker to current location and also get the latitude and longitude values

location.getLatitude() and location.getLongitude() are the methods that return the double values of longitude and latitude addmarker() is a method that marks the point at a given latitude and longitude value
Before you run your application, you need a Google Maps API key.

To get one, follow this link, follow the directions and press "Create" at the end:
https://console.developers.google.com/flows/enableapi?apiid=maps_android_backend&keyType=CLIENT_SIDE_ANDROID&r=AB:E1:EF:45:3A:73:CD:37:F7:A5:67:6E:C3:F3:0F:D6:9B:07:AE:DE%3Bpbstudies.com.map
You can also add your credentials to an existing key, using this line:AB:E1:EF:45:3A:73:CD:37:F7:A5:67:6E:C3:F3:0F:D6:9B:07:AE:DE;yourpackagename

Alternatively, follow the directions here:https://developers.google.com/maps/documentation/android/start#get-key
Once you have your key (it starts with "AIza"), replace the "google_maps_key"string in this file.

in the values folder under resource create a xml file google_maps_api.xml



Follow ,Share and comment for more codes 

Check these apps-
App1

App2

App3


Monday, 28 December 2015

Basic-1

                                                        TextView & EditText



Welcome to our first chapter that teaches about textview and edittext.

  • Textview are the components that are used to show normal strings i.e. texts whereas EditText allows user to input a value.
  • When you see anything written in the app interface it is called Textview and where you'r asked to enter your password or anything it is called EditText


We can use edittext or textview directly from the XML file edittor or we can also do that from java class. like this

From design tab of .xml file-

1-goto resource--->layout----->.xml file i.e. the xml file where you want to add the edittext or                   textview.
2-In palette tab you will see textview and edittext ,just select and drag them on the preview screen           align it accordingly.
3-dimensions of the textview and edittext box can be adjusted either by dragging the corners or by         manually entering the value of width and height in dp/sp in the box given on the right side of the             screen under properties tab(below components tree tab)
4-the text (value to be shown) can be entered under the option in properties tab and similarly other         properties can also be changed according to the users need.
5-similarly size,background,text style ,text color can be changed.

this is the easiest way of using edittext and textview and you may get confused  so we will not be discussing the other method .


Don't forget to follow and share for more tutorials.
Check out these cool app .

Monday, 6 July 2015

Basics of android app

                                                        Welcome Back Developer's


Basics components of android app-

To become an Android developer or to take up Android development as your profession one should have some experience with programming language like -  C, C++ or Java.

Android app basically comprises of two parts -
1- layout.xml part , that is the designing of app or in other words ,the user interface(UI) of the app.
2- MainActivity.java part, which is the main part of the app and where all the logic of the app is set          up in java Part.We'll be using Android studio.
3-Manifest.xml part where new activities are added and other important statements are included.
4-string.xml this is where all the strings are stored.

Before downloading android studio,first download java jdk and java jre from this link,choose appropriate version.
Download Android studio from this link.
Install the Android studio on to your computer and run it.


now goto android sdk manager and all the packages ,so that you can design your apps for all android versions and with all features.

In the next part we will be starting from our first lesson.
Don't forget to follow and share for more tutorials.
Check out these cool app .

Tuesday, 30 June 2015

What Is Android?

Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google. With a user interfacebased on direct manipulation, Android is designed primarily for touchscreen mobile devices such as smartphones and tablet computers, with specialized user interfaces for televisions (Android TV), cars (Android Auto), and wrist watches (Android Wear).
The OS uses touch inputs that loosely correspond to real-world actions, like swiping, tapping, pinching, and reverse pinching to manipulate on-screen objects, and a virtual keyboard. Despite being primarily designed for touchscreen input, it has also been used ingame consoles, digital cameras, regular PCs, and other electronics. As of 2015, Android has the largest installed base of all operating systems.


As of July 2013, the Google Play store has had over one million Android applications ("apps") published, and over 50 billion applications downloaded.


 An April–May 2013 survey of mobile application developers found that 71% of them create applications for Android; another 2015 survey found that 40% of full-time professional developers see Android as the "priority" target platform, which is more than iOS (37%) or other platforms.At Google I/O 2014, the company revealed that there were over one billion active monthly Android users, up from 538 million in June 2013.


Android's source code is released by Google under open source licenses, although most Android devices ultimately ship with a combination of open source and proprietary software, including proprietary software developed and licensed by Google.Initially developed by Android, Inc., which Google bought in 2005,Android was unveiled in 2007, along with the founding of the Open Handset Alliance – a consortium of hardware, software, and telecommunication companies devoted to advancing open standards for mobile devices.


Android is popular with technology companies which require a ready-made, low-cost and customizable operating system forhigh-tech devices.Android's open nature has encouraged a large community of developers and enthusiasts to use the open-source code as a foundation for community-driven projects, which add new features for advanced users or bring Android to devices which were officially released running other operating systems. The operating system's success has made it a target for patent litigation as part of the so-called "smartphone wars" between technology companies.


For more information refer wikipedia-


Before starting the tutorial ,you must understand WHAT IS ANDROID?.
Basically this blog has a a little extra information than required.


Will be starting the tutorial for Android development soon.
Join Me On Google+ For more information.
Follow on Google+


Check Out this app that i have made which will help you know  what you are surely going to learn and a lot more than that.

Calculator 24