Android Apps

Get Recent Callers Android Phonegap Plugin

June 20, 2014 by Sarath DR in Android Apps, Featured with 0 Comments

This one is a simple Phonegap plugin to fetch recent callers from phone. You can just follow the below steps to configure the plugin on your project.

Step 1: Download the plugin file from below.

Download Plugin

Step 2: Create new package “com.plugins.recentCallers” and add RecentCallers.java under the package.

Step 3: Add the below line in res/xml/config.xml file

    <feature name="RecentCallers">
        <param name="android-package" value="com.plugins.recentCallers.RecentCallers" />
    </feature>

Step 4: Now you can call the plugin from your jave script file as below.

 window.getRecentCallers = function(  limit, callback) {
        					cordova.exec(callback, function(err) {}, "RecentCallers", "getRecentCallers" , [limit]);
        				};
 
        window.getRecentCallers(10, function(data) {
        				data.forEach(function(contact){
        					alert( contact.name);
        				});
        			});

Share this to

Leave a reply

Your email address will not be published. Required fields are marked *

*

About
View Sarath D R's profile on LinkedIn

I am a technology consultant and an entrepreneur focused on the following technologies Java,Spring, Android, Angular, Asterisk, Symfony, Cake , Code-Igniter, Jquery , XAMPP, XHTML, AJAX, MySql, Seo, Web Design, Wordpress, iPhone development.

Today’s Tips
  • Generate Codova.jar file from Phonegap project using ant
  • Google map javascript client  to find the geographic co-ordinates  from  Address or post code
  • Update Android main UI from Webview – Phonegap Plugin
  • Jplayer is not working  with HTC One Android 4.3 version browser
  • Regular expression to validate mobile phone numbers starting with + ( plus ) – php
  • Simple pagination script for PHP
  • Useful adb ( Android Debug Bridge ) commands
  • Change the javascript files url to absolute url – Symfony 1.4
  • Set Http authentication header from Client – PHP / CURL

This site uses cookies from Google to deliver its services, to personalise ads and to analyse traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.This site also uses cookies from Google to deliver its services, to personalise ads and to analyse traffic. Information about your use of this site is shared with Google. By using this site, you agree to its use of cookies.

Close