Showing posts with label android. Show all posts
Showing posts with label android. Show all posts

Tuesday, 28 June 2016

HOW  TO MAKE    A  PHONE CALL USING ANDROID APP??

                                        
Android provides Built-in applications for phone calls, in some occasions we may need to make a phone call through our application. This could easily be done by using implicit Intent with appropriate actions. Also, we can use PhoneStateListener and TelephonyManager classes, in order to monitor the changes in some telephony states on the device.
This chapter lists down all the simple steps to create an application which can be used to make a Phone Call. You can use Android Intent to make phone call by calling built-in Phone Call functionality of the Android. Following section explains different parts of our Intent object required to make a call.

Intent Object - Action to make Phone Call

You will use ACTION_CALL action to trigger built-in phone call functionality available in Android device. Following is simple syntax to create an intent with ACTION_CALL action
Intent phoneIntent = new Intent(Intent.ACTION_CALL);
You can use ACTION_DIAL action instead of ACTION_CALL, in that case you will have option to modify hardcoded phone number before making a call instead of making a direct call.

Intent Object - Data/Type to make Phone Call

To make a phone call at a given number 91-000-000-0000, you need to specify tel: as URI using setData() method as follows −
phoneIntent.setData(Uri.parse("tel:91-000-000-0000"));
The interesting point is that, to make a phone call, you do not need to specify any extra data or data type.




Now see the following code :









NOW AFTER INSTALLATION OF APP & FILLING NECESSARY DETAILS ......
THE FOLLOWING OUTPUT IS RECIEVED.......



SO FOR MORE EASY & INTERESTING POSTS AHEAD IN LATEST TECHNOLOGIES ........STAY TUNED WITH techgenes.com......

Saturday, 27 June 2015

why is lolipop better than kitkat??

We all know lolipop is latest version 5.0 and 5.1,some devices with kitkat are recieving updates for lolipop,but is it worth getting lolipop update,if yes then why ??

the features in lolipop which make it way more better than kitkat are listed below

1. Inbuilt Flashlight
It would always be puzzling as to why Google did not pin a flashlight  in our notifications panel just like iOS has in its control center.  Lollipop brings out that change. Without installing any third-party  apps, users can simply use the flashlight by pulling down the  notification panel. Make sure your smartphone has an LED flash.

2. Battery changes

Battery seems to be given priority in Android Lollipop. No longer do  users have to lay bets on how long their battery would last for. The new  OS has two new and much needed features which were not available on  KitKat. It shows you how long it would take to charge your phone and a  small graph showcasing how much time is left before the battery runs  out. After you have plugged in your phone for charge, your home screen  will show you the time until full charge.

3. Guest user

We all have people around us who lay their hands on our phones.  Thankfully, Android Lollipop helps us with this issue. Just like  different Users in Windows, Lollipop gives you the liberty to add guest  users or even create a profile for a friend/relative. This way, you can  limit the amount of information that others can view. You can add a  guest by simply going to Settings – Users – Add Guest.

4. Flappy Bird easter egg

If Flappy Bird wasn’t frustrating, Lollipop offers you a modified  version of the game. Instead, here you have an Easter egg to unlock.  Users can go to Settings – About phone and click several times and you  will get the android robot in place of the bird.

5. Notification panel

Needless to say, the notification panel has been made too simple for  the user. It’s simplicity in design is the plus point. Unlike KitKat,  the most useful feature added here is the ability to view your detailed  notifications on your lock screen. Though this might be a problem around  work spaces if you leave your phone unattended, anyone can have a look  at your notifications even though your phone is locked. It can be  disabled by going to Settings – Sound and Notification – When device is  Locked – Don’t show notifications at all.

6. Trusted Places

Trusted Places is a smart feature which has been added in to  Lollipop. Though most of our phones have passwords, it would be a task  to disable it when we enter familiar premises such as our car or home.  Trusted Places is a feature where a user can declare certain locations  as safe and they wouldn’t need to unlock their phones once they enter  those spaces. You can set the location by heading to Settings – Security  – Smart Lock.

7. Soft key redesign

Soft key buttons receive a change in this update and it is a rather, a  surprising change. The icons are smaller and look compact. A very  simple yet pleasant design.

8. Multitasking 

Multitasking has completely changed in Android Lollipop. The feature  allows you to scroll through your notifications in a simpler manner. It  is easier and allows you to see more details even before you enter the  app.

9. Prioritize apps

It can be super annoying if your phone is filled with umpteen apps  and throughout the day, you are bombarded with notifications. Lollipop  gives you the liberty to prioritize your apps so that you can receive  notifications from the ones you want. It works out perfectly during  sleep hours as you can only receive notifications from important apps  and not games or check-in notifications.

10. Quick access to Chromecast   

No need to install any third-party apps once you have the updated  your phone to Lollipop. There is an official app now from Google to  solve our problems. For the people who love to stream media from  dongles, it is as simple as going to the notification panel and taping  on Cast Screen.

Thursday, 18 June 2015

google maps latest update tell whether the place you are heading is closed or open

It happens often you are late from office and then decide to go somewhere to grab a drink,for dinner or for shoppong and on reaching that place you find it closed. Thats really frustrating.But dont worry now google maps latest update brings you solution for that.The new google maps update will tell you time schedule for anystore bar or restaurant.If you searched to locate any place from google maps then it will not only tell you route and estimated time to reach but also flag it up if that place is already closed or will be closed till the time of arrival.

google always trying to find a solution to make life of their users comfortable.