dya2 / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

contactsGet doesn't get any contact #690

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What device(s) are you experiencing the problem on?
LG NEXUS 4

What firmware version are you running on the device?

What steps will reproduce the problem?
/data/data/com.android.perl/files/perl/perl -e 'use Android; use Data::Dumper; 
my $droid = Android->new(); print Dumper  $droid->contactsGet();' 

What is the expected output? What do you see instead?
$VAR1 = {
          'error' => undef,
          'id' => 1,
          'result' => []
        };

What version of the product are you using? On what operating system?

Please provide any additional information below.

I'm using local phone storage for contacts.

/data/data/com.android.providers.contacts/databases/contacts2.db

Original issue reported on code.google.com by gabor.ma...@gmail.com on 6 Jul 2013 at 5:27

GoogleCodeExporter commented 9 years ago
#!/data/data/com.android.perl/files/perl/perl

use strict;
use warnings;

use Android;
use Data::Dumper;

my $droid = Android->new();

print Dumper $droid->contactsGetCount();

/data/data/com.android.perl/files/perl/perl c.pl
c.pl: client: error: {"error":"com.googlecode.android_scripting.rpc.RpcError: 
Unknown RPC."}
$VAR1 = {
          'error' => undef,
          'id' => 1,
          'result' => 0
        };

Original comment by gabor.ma...@gmail.com on 6 Jul 2013 at 6:12