Message from discussion
how to display contact photo url
Received: by 10.224.102.10 with SMTP id e10mr5113927qao.8.1338250947660;
Mon, 28 May 2012 17:22:27 -0700 (PDT)
X-BeenThere: phonegap@googlegroups.com
Received: by 10.229.106.205 with SMTP id y13ls2703370qco.1.gmail; Mon, 28 May
2012 17:22:04 -0700 (PDT)
Received: by 10.224.186.17 with SMTP id cq17mr5082221qab.6.1338250924303;
Mon, 28 May 2012 17:22:04 -0700 (PDT)
Received: by 10.224.101.138 with SMTP id c10msqao;
Mon, 28 May 2012 16:31:32 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.70.97 with SMTP id l1mr419478vdu.15.1338247892577; Mon, 28
May 2012 16:31:32 -0700 (PDT)
Authentication-Results: ls.google.com; spf=pass (google.com: domain of
marek.kwase...@beyond-the-horizon.org designates internal as permitted sender)
smtp.mail=marek.kwase...@beyond-the-horizon.org; dkim=pass
header...@beyond-the-horizon.org
Received: by ec4g2000vbb.googlegroups.com with HTTP; Mon, 28 May 2012 16:31:32
-0700 (PDT)
Date: Mon, 28 May 2012 16:31:32 -0700 (PDT)
In-Reply-To: <CAM1AYQAN=yuv-=OWDP_rC1gHHmAALEzK9wvwrCardbFkjey1ug@mail.gmail.com>
References: <5728803.1359.1335642058198.JavaMail.geo-discussion-forums@ynbv36>
<30646075.773.1336127769298.JavaMail.geo-discussion-forums@vbxz8>
<CAM1AYQAziVpLL-=CtDtV+y9kEEOeX+LJ_RubJjOJ4BmPybOyvw@mail.gmail.com>
<19625414.142.1336376900915.JavaMail.geo-discussion-forums@vbbfr18> <CAM1AYQAN=yuv-=OWDP_rC1gHHmAALEzK9wvwrCardbFkjey1ug@mail.gmail.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.5 (KHTML,
like Gecko) Chrome/19.0.1084.46 Safari/536.5,gzip(gfe)
Message-ID: <6ebce504-537c-4df4-86ed-b0c91fb62d11@ec4g2000vbb.googlegroups.com>
Subject: Re: how to display contact photo url
From: Marek Kwasecki <marek.kwase...@beyond-the-horizon.org>
To: phonegap <phonegap@googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Oh,
I have the same problem.
Smaller log though:
I/Web Console( 327): Error: Status=3D2 Message=3DClass not found at
file:///android_asset/www/lib/cordova-1.7.0.js:958
I/Web Console( 327): Error initializing Network Connection: Class not
found at file:///android_asset/www/lib/cordova-1.7.0.js:4642
I/Web Console( 327): photos.length: 1 at file:///android_asset/www/app/app=
-all-debug.js:100
I/Web Console( 327): photos[0].value: content://com.android.contacts/conta=
cts/1/photo
at file:///android_asset/www/app/app-all-debug.js:101
E/DatabaseUtils( 166): Writing exception to parcel
E/DatabaseUtils( 166): java.lang.IllegalArgumentException: Invalid
column _data
E/DatabaseUtils( 166): at
android.database.sqlite.SQLiteQueryBuilder.computeProjection(SQLiteQueryBui=
lder.java:
523)
E/DatabaseUtils( 166): at
android.database.sqlite.SQLiteQueryBuilder.buildQuery(SQLiteQueryBuilder.ja=
va:
370)
E/DatabaseUtils( 166): at
android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:
323)
E/DatabaseUtils( 166): at
com.android.providers.contacts.ContactsProvider2.query(ContactsProvider2.ja=
va:
4737)
E/DatabaseUtils( 166): at
com.android.providers.contacts.ContactsProvider2.query(ContactsProvider2.ja=
va:
4722)
E/DatabaseUtils( 166): at android.content.ContentProvider
$Transport.bulkQuery(ContentProvider.java:174)
E/DatabaseUtils( 166): at
android.content.ContentProviderNative.onTransact(ContentProviderNative.java=
:
111)
E/DatabaseUtils( 166): at android.os.Binder.execTransact(Binder.java:
320)
E/DatabaseUtils( 166): at dalvik.system.NativeStart.run(Native
Method)
I/Web Console( 327): fail at file:///android_asset/www/app/app-all-debug.j=
s:146
D/dalvikvm( 166): GC_EXPLICIT freed 47K, 52% free 2779K/5703K,
external 1625K/2137K, paused 53ms
D/SntpClient( 61): request time failed: java.net.SocketException:
Address family not supported by protocol
D/dalvikvm( 327): GC_CONCURRENT freed 1500K, 58% free 2991K/7111K,
external 4066K/5190K, paused 5ms+7ms
D/SntpClient( 61): request time failed: java.net.SocketException:
Address family not supported by protocol
Nothing special about the contact. This is from the Android simulator
set up for API level 8 (Android 2.2)
Please advise.
regards,
Marek
On 16 Maj, 01:59, Simon MacDonald <simon.macdon...@gmail.com> wrote:
> Wow, that is crazy. The query into the media DB is failing with a "
> java.lang.IllegalArgumentException: Invalid column _data". Which means th=
e
> one column I'm searching on is failing while trying to build the sql
> statement. I can only tell you that this makes no sense.
>
> Is there anything special about this contact or device?
>
> Simon Mac Donaldhttp://hi.im/simonmacdonald
>
> On Mon, May 7, 2012 at 3:48 AM, Pedro Guardiola <pguardi...@gmail.com>wro=
te:
>
>
>
>
>
>
>
> > Hi Simon, here is the log, found 2 problems, DatabaseUtils and BitmapUt=
il
>
> > I'm testing with android API Level 8 (2.2.2) . Model Motorola Defy MB52=
5,
> > If you need more info please, tell me which one you need
>
> > Thanks in advance again
>
> > Pedro
>
> > Log capture:
>
> > =C2=A009:37:57.420 1448 #1448 ERROR DatabaseUtils Writing exception to =
parcel
> > 09:37:57.420 1448 #1448 ERROR DatabaseUtils java.lang.IllegalArgumentEx=
ception:
> > Invalid column _data =C2=A009:37:57.420 1448 #1448 ERROR DatabaseUtils =
at
> > android.database.sqlite.SQLiteQueryBuilder.computeProjection(SQLiteQuer=
yBui lder.java:523)
> > 09:37:57.420 1448 #1448 ERROR DatabaseUtils at
> > android.database.sqlite.SQLiteQueryBuilder.buildQuery(SQLiteQueryBuilde=
r.ja va:370)
> > 09:37:57.420 1448 #1448 ERROR DatabaseUtils at
> > android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.jav=
a:32 3)
> > 09:37:57.420 1448 #1448 ERROR DatabaseUtils at
> > com.android.providers.contacts.ContactsProvider2.query(ContactsProvider=
2.ja va:4903)
> > 09:37:57.420 1448 #1448 ERROR DatabaseUtils at
> > com.android.providers.contacts.ContactsProvider2.query(ContactsProvider=
2.ja va:4888)
> > 09:37:57.420 1448 #1448 ERROR DatabaseUtils at
> > android.content.ContentProvider$Transport.bulkQuery(ContentProvider.jav=
a:15 0)
> > 09:37:57.420 1448 #1448 ERROR DatabaseUtils at
> > android.content.ContentProviderNative.onTransact(ContentProviderNative.=
java :133)
> > 09:37:57.420 1448 #1448 ERROR DatabaseUtils at
> > android.os.Binder.execTransact(Binder.java:304) =C2=A009:37:57.420 1448=
#1448
> > ERROR DatabaseUtils at dalvik.system.NativeStart.run(Native Method)
> > 09:37:57.647 4667 com.peoplecall.canibal.android DEBUG CordovaLog Inval=
id
> > column _data =C2=A009:37:57.647 4667 com.peoplecall.canibal.android DEB=
UG
> > CordovaLog file:///android_asset/www/contacts.js: Line 108 : Invalid
> > column _data =C2=A009:37:57.647 4667 com.peoplecall.canibal.android INF=
O Web
> > Console Invalid column _data at file:///android_asset/www/contacts.js:1=
08
> > 09:37:57.702 4667 com.peoplecall.canibal.android DEBUG dalvikvm GC_FOR_=
MALLOC
> > freed 2203 objects / 814152 bytes in 47ms =C2=A009:37:57.772 4672 #4672=
DEBUG
> > dalvikvm GC_FOR_MALLOC freed 4454 objects / 389680 bytes in 41ms
> > 09:37:57.866 4672 #4672 DEBUG Finsky [1] 5.onFinished: Installation sta=
te
> > replication succeeded. =C2=A009:37:58.217 1554 #1554 DEBUG dalvikvm GC_=
EXPLICIT
> > freed 374 objects / 17800 bytes in 73ms =C2=A009:38:00.022 1392 #1392 D=
EBUG
> > KeyguardUpdateMonitor received broadcast android.intent.action.TIME_TIC=
K
> > 09:38:00.022 1392 #1392 DEBUG KeyguardUpdateMonitor handleTimeUpdate
> > 09:38:03.928 4787 #4787 VERBOSE SourceCache Queue source cache refresh
> > request, delayed (ms): 0 =C2=A009:38:03.952 4787 #4787 VERBOSE GroupCac=
he Queue
> > group cache refresh request, delayed (ms): 0 =C2=A009:38:03.960 4787 #4=
787
> > DEBUG CacheService CacheService source and group info cached =C2=A009:3=
8:03.967
> > 1392 #1392 INFO ActivityManager Start proc
> > com.motorola.blur.contacts.data for broadcast
> > com.motorola.blur.contacts.data/.BlurPhotoDownloadActionReceiver: pid=
=3D4796
> > uid=3D10008 gids=3D{3003, 2001, 1015} =C2=A009:38:04.030 4796 #4796 VER=
BOSE BlurApp com.motorola.blur.contacts.data
> > onCreate called, initilizing ContextUtil ... =C2=A009:38:04.030 4796 #4=
796
> > DEBUG BlrPhotoDwnldReceiver Received a request to explicitly schedule t=
he
> > photo download to start at a later time =C2=A009:38:04.038 4796 #4796 D=
EBUG
> > BlrPhotoDwnldReceiver Download service scheduled =C2=A009:38:04.045 479=
6 #4796
> > DEBUG BlrPhotoDwnSchedService AlarmManager configured to schedule a sta=
rt
> > photo download service in 0 hours 0 mins 0 secs. =C2=A009:38:04.053 478=
7 #4787
> > DEBUG SourceCache Found that the following provider ids have the
> > capability, 9: [8, 9, 121, 7] =C2=A009:38:04.077 4796 #4796 DEBUG
> > PollingManagerClient PollingManagerClient() =C2=A009:38:04.077 4796 #47=
96 DEBUG
> > PollingManagerClient registerApp():
> > BlrPhotoDwnldService:ACTION_START_DOWNLOAD_IMMEDIATLEY:0 =C2=A009:38:04=
.085
> > 4796 #4796 INFO BlrPhotoDwnSchedService Photo schedule service has been
> > destroyed =C2=A009:38:04.085 1478 #1478 DEBUG PollingManager registerAp=
p():
> > BlrPhotoDwnldService =C2=A009:38:04.092 1478 #1478 DEBUG PollingManager=
wake
> > lock acquired =C2=A009:38:04.100 1478 #1478 DEBUG PollingManager decide=
WhoNeedsPolling():
> > polling BlrPhotoDwnldService =C2=A009:38:04.116 4796 #4796 DEBUG
> > BlrPhotoDwnldService Successfully registered with the polling manager
> > 09:38:04.249 1392 #1392 DEBUG dalvikvm GC_FOR_MALLOC freed 42850 object=
s
> > / 2173704 bytes in 142ms =C2=A009:38:04.249 1448 #1448 DEBUG DEBUG Sele=
ction
> > used is -null =C2=A009:38:04.249 4796 #4796 DEBUG BlrPhotoDwnldService =
Notified
> > by polling manager that it is okay to start network connections
> > 09:38:04.249 4796 #4796 DEBUG PollingManagerClient unregisterApp():
> > BlrPhotoDwnldService =C2=A009:38:04.249 1478 #1478 DEBUG PollingManager=
unregisterApp():
> > BlrPhotoDwnldService =C2=A0...
>
> > 04.319 4787 #4787 VERBOSE GroupCache Queue group cache refresh request,
> > delayed (ms): 3000 =C2=A009:38:04.335 1448 #1448 DEBUG DEBUG Selection =
used is
> > -null =C2=A009:38:04.342 4787 #4787 DEBUG GroupCache Getting user-defin=
ed
> > groups =C2=A009:38:04.350 4787 #4787 DEBUG GroupCache Encountered group=
title,
> > Family =C2=A009:38:04.366 1478 #1478 INFO PollingManager calculateShort=
estInterval():
> > shortest interval is 1330666 =C2=A009:38:04.366 4796 #4796 INFO
> > PollingManagerClient close() =C2=A009:38:04.366 4796 #4796 DEBUG
> > BlrPhotoDwnldService Starting the photo service. Checking to see if any
> > photos need to be downloaded =C2=A009:38:04.366 4796 #4796 DEBUG
> > BlrPhotoDwnldService Looking for photos that need to be downloaded
> > 09:38:04.381 1478 #1478 DEBUG PollingManager wake lock released
> > 09:38:04.389 4787 #4787 DEBUG GroupCache Encountered group title, Frien=
ds
> > 09:38:04.397 4787 #4787 DEBUG GroupCache Encountered group title, Googl=
e
> > 09:38:04.405 4787 #4787 DEBUG GroupCache Encountered group title, Work
> > 09:38:04.420 4787 #4787 DEBUG GroupCache Encountered source name, null
> > 09:38:04.420 4787 #4787 DEBUG GroupCache Encountered source name, blur
> > 09:38:04.428 4787 #4787 DEBUG GroupCache Encountered source name, faceb=
ook
> > 09:38:04.436 4787 #4787 DEBUG SourceCache Returning stroed ICON
> > FOR-com.motorola.blur.service.bsutils.MOTHER_USER_CREDS_TYPE:3547170416=
6546 52189741952205081...@random.svcmot.com:
> > facebook =C2=A009:38:04.436 4787 #4787 DEBUG GroupCache Encountered sou=
rce
> > name, twitter =C2=A009:38:04.436 4787 #4787 DEBUG SourceCache Returning=
stroed
> > ICON
> > FOR-com.motorola.blur.service.bsutils.MOTHER_USER_CREDS_TYPE:3547170416=
6546 52189741952205081...@random.svcmot.com:
> > twitter =C2=A009:38:04.444 4787 #4787 DEBUG GroupCache Notify group cac=
he
> > observers of state change =C2=A009:38:04.514 1475 #1475 DEBUG DSCP Disq=
ualified
> > null for content://com.motorola.blur.setupprovider/providers/0
> > 09:38:04.530 4787 #4787 ERROR BitmapUtil Unable to decode bitmap
> > 09:38:04.530 4787 #4787 ERROR BitmapUtil java.io.FileNotFoundException:
> > No icons fit this description =C2=A009:38:04.530 4787 #4787 ERROR Bitma=
pUtil at
> > android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFr=
omPa rcel(DatabaseUtils.java:143)
> > 09:38:04.530 4787 #4787 ERROR BitmapUtil at
> > android.content.ContentProviderProxy.openAssetFile(ContentProviderNativ=
e.ja va:608)
> > 09:38:04.530 4787 #4787 ERROR BitmapUtil at
> > android.content.ContentResolver.openAssetFileDescriptor(ContentResolver=
.jav a:471)
> > 09:38:04.530 4787 #4787 ERROR BitmapUtil at
> > android.content.ContentResolver.openInputStream(ContentResolver.java:30=
6)
> > 09:38:04.530 4787 #4787 ERROR BitmapUtil at
> > com.motorola.blur.util.ui.BitmapUtil.fetchBitmapWithAdjustedDimensions(=
Bitm apUtil.java:50)
> > 09:38:04.530 4787 #4787 ERROR BitmapUtil at
> > com.motorola.blur.contacts.cache.SourceCache.getSourceIcon(SourceCache.=
java :852)
> > 09:38:04.530 4787 #4787 ERROR BitmapUtil at
> > com.motorola.blur.contacts.cache.SourceCache.access$000(SourceCache.jav=
a:41 )
> > 09:38:04.530 4787 #4787 ERROR BitmapUtil at
> > com.motorola.blur.contacts.cache.SourceCache$2.run(SourceCache.java:800=
)
> > 09:38:04.530 4787 #4787 ERROR BitmapUtil at
> > android.os.Handler.handleCallback(Handler.java:587) =C2=A009:38:04.530 =
4787
> > #4787 ERROR BitmapUtil at
> > android.os.Handler.dispatchMessage(Handler.java:92) =C2=A009:38:04.530 =
4787
> > #4787 ERROR BitmapUtil at android.os.Looper.loop(Looper.java:143)
> > 09:38:04.530 4787 #4787 ERROR BitmapUtil at
> > android.os.HandlerThread.run(HandlerThread.java:60) =C2=A009:38:04.530 =
4787
> > #4787 WARN SourceCache Unable to obtain an icon for the provider,
> > Contactos =C2=A009:38:04.545 4796 #4796 DEBUG BlrPhotoDwnldService Did =
not
> > find any photos that need to be downloaded =C2=A009:38:04.561 4796 #479=
6 INFO
> > PollingManagerClient close() =C2=A009:38:04.561 4796 #4796 DEBUG
> > BlrPhotoDwnldService Photo download service has been destroyed
> > 09:38:04.569 1392 #1392 INFO ActivityManager No longer want
> > com.motorola.togglewidgets (pid 4496): hidden #21 =C2=A009:38:04.616 47=
87 #4787
> > DEBUG dalvikvm GC_FOR_MALLOC freed 3043 objects / 326880 bytes in 58ms
> > 09:38:04.655 4787 #4787 DEBUG dalvikvm GC_EXTERNAL_ALLOC freed 426
> > objects / 27280 bytes in 31ms =C2=A009:38:04.663 4787 #4787 VERBOSE Bit=
mapUtil got
> > bitmap android.graphics.Bitmap@45a68910 with sampleSize 2 =C2=A009:38:0=
4.663
> > 4787 #4787 DEBUG SourceCache Adding
> > ICON-com.motorola.blur.service.bsutils.MOTHER_USER_CREDS_TYPE:354717041=
6654 652189741952205081...@random.svcmot.com:facebook
> > ICON-android.graphics.Bitmap@45a68910 =C2=A009:38:04.663 4787 #4787 DEB=
UG
> > GroupCache Accounts database table SourceCache
>
> ...
>