You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Olivier Louvignes (Created) (JIRA)" <ji...@apache.org> on 2011/12/31 02:01:42 UTC

[jira] [Created] (CB-145) Android contact.save() crashes for native contacts.

Android contact.save() crashes for native contacts.
---------------------------------------------------

                 Key: CB-145
                 URL: https://issues.apache.org/jira/browse/CB-145
             Project: Apache Callback
          Issue Type: Bug
          Components: Android
    Affects Versions: 1.2.0, 1.1.0, 1.3.0
            Reporter: Olivier Louvignes


Crashes with Error 0 on a clean Android device.
Only works with Google accounts configured.

Check http://simonmacdonald.blogspot.com/2011/09/saving-contacts-with-phonegap-android.html

This should clearly be stated on phonegap api/docs. It's a major issue!
It's quite frustrating to discover (& after a major IOS&Phonegap commitment) that my beloved framework basic&documented api interactions does not work at all...

Would love to see this fix soon !!


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-145) Android contact.save() crashes for native contacts.

Posted by "Simon MacDonald (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187006#comment-13187006 ] 

Simon MacDonald commented on CB-145:
------------------------------------

Oh, you mean this comment line:

// Version 1.2.0

I should either take it out or have the build script update the line.
                
> Android contact.save() crashes for native contacts.
> ---------------------------------------------------
>
>                 Key: CB-145
>                 URL: https://issues.apache.org/jira/browse/CB-145
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0, 1.2.0, 1.3.0
>            Reporter: Olivier Louvignes
>              Labels: Contacts
>             Fix For: 1.4.0
>
>
> Crashes with Error 0 on a clean Android device.
> Only works with Google accounts configured.
> Check http://simonmacdonald.blogspot.com/2011/09/saving-contacts-with-phonegap-android.html
> This should clearly be stated on phonegap api/docs. It's a major issue!
> It's quite frustrating to discover (& after a major IOS&Phonegap commitment) that my beloved framework basic&documented api interactions does not work at all...
> Would love to see this fixed soon !!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-145) Android contact.save() crashes for native contacts.

Posted by "Simon MacDonald (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13186996#comment-13186996 ] 

Simon MacDonald commented on CB-145:
------------------------------------

Really? Check the VERSION file in the cordova-android directory. If it doesn't have 1.3.0 in it you may need to pull an updated version of the src.
                
> Android contact.save() crashes for native contacts.
> ---------------------------------------------------
>
>                 Key: CB-145
>                 URL: https://issues.apache.org/jira/browse/CB-145
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0, 1.2.0, 1.3.0
>            Reporter: Olivier Louvignes
>              Labels: Contacts
>             Fix For: 1.4.0
>
>
> Crashes with Error 0 on a clean Android device.
> Only works with Google accounts configured.
> Check http://simonmacdonald.blogspot.com/2011/09/saving-contacts-with-phonegap-android.html
> This should clearly be stated on phonegap api/docs. It's a major issue!
> It's quite frustrating to discover (& after a major IOS&Phonegap commitment) that my beloved framework basic&documented api interactions does not work at all...
> Would love to see this fixed soon !!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CB-145) Android contact.save() crashes for native contacts.

Posted by "Olivier Louvignes (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Louvignes updated CB-145:
---------------------------------

    Description: 
Crashes with Error 0 on a clean Android device.
Only works with Google accounts configured.

Check http://simonmacdonald.blogspot.com/2011/09/saving-contacts-with-phonegap-android.html

This should clearly be stated on phonegap api/docs. It's a major issue!
It's quite frustrating to discover (& after a major IOS&Phonegap commitment) that my beloved framework basic&documented api interactions does not work at all...

Would love to see this fixed soon !!


  was:
Crashes with Error 0 on a clean Android device.
Only works with Google accounts configured.

Check http://simonmacdonald.blogspot.com/2011/09/saving-contacts-with-phonegap-android.html

This should clearly be stated on phonegap api/docs. It's a major issue!
It's quite frustrating to discover (& after a major IOS&Phonegap commitment) that my beloved framework basic&documented api interactions does not work at all...

Would love to see this fix soon !!


    
> Android contact.save() crashes for native contacts.
> ---------------------------------------------------
>
>                 Key: CB-145
>                 URL: https://issues.apache.org/jira/browse/CB-145
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0, 1.2.0, 1.3.0
>            Reporter: Olivier Louvignes
>              Labels: Contacts
>
> Crashes with Error 0 on a clean Android device.
> Only works with Google accounts configured.
> Check http://simonmacdonald.blogspot.com/2011/09/saving-contacts-with-phonegap-android.html
> This should clearly be stated on phonegap api/docs. It's a major issue!
> It's quite frustrating to discover (& after a major IOS&Phonegap commitment) that my beloved framework basic&documented api interactions does not work at all...
> Would love to see this fixed soon !!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (CB-145) Android contact.save() crashes for native contacts.

Posted by "Olivier Louvignes (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13182782#comment-13182782 ] 

Olivier Louvignes edited comment on CB-145 at 1/9/12 8:43 PM:
--------------------------------------------------------------

Thanks a lot for the fix, can't wait to try the 1.4 release (btw is it easy to compile the .jar file from trunk if i do not want to wait a full release ?)

And if there is multiple account setup, will it use always the same (across functions read/create/update) ? How is it chosen ? (first ? random ? possibility to choose ?)

While i'm on it, is it normal that the javascript side of phonegap is not the same for ios and android (did not work when using one from ios new project) ? And is it normal that i get a 1.2.0 file in the android package ?

That's a lot of q's and probably not really the place, but you clearly seem to be the best person to ask ;) !

Thanks!
                
      was (Author: mgcrea):
    
Thanks a lot for the fix, can't wait 1.4 release (is it easy to compile the .jar file from trunk if i do not want to wait a full release ?)

And if there is multiple account setup, will it use always the same (across functions read/create/update) ? How is it chosen ? (first ? random ? possibility to choose ?)

While i'm on it, is it normal that the javascript side of phonegap is not the same for ios and android (did not work when using one from ios new project) ? And is it normal that i get a 1.2.0 file in the android package ?

That's a lot of q's and probably not really the place, but you clearly seem to be the best person to ask ;) !

Thanks!
                  
> Android contact.save() crashes for native contacts.
> ---------------------------------------------------
>
>                 Key: CB-145
>                 URL: https://issues.apache.org/jira/browse/CB-145
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0, 1.2.0, 1.3.0
>            Reporter: Olivier Louvignes
>              Labels: Contacts
>             Fix For: 1.4.0
>
>
> Crashes with Error 0 on a clean Android device.
> Only works with Google accounts configured.
> Check http://simonmacdonald.blogspot.com/2011/09/saving-contacts-with-phonegap-android.html
> This should clearly be stated on phonegap api/docs. It's a major issue!
> It's quite frustrating to discover (& after a major IOS&Phonegap commitment) that my beloved framework basic&documented api interactions does not work at all...
> Would love to see this fixed soon !!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-145) Android contact.save() crashes for native contacts.

Posted by "Olivier Louvignes (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13186774#comment-13186774 ] 

Olivier Louvignes commented on CB-145:
--------------------------------------

Thanks!

About the version, i do have the "1.2.0" string even when building from source : https://github.com/cordova/cordova-android/blob/master/framework/assets/js/phonegap.js.base
                
> Android contact.save() crashes for native contacts.
> ---------------------------------------------------
>
>                 Key: CB-145
>                 URL: https://issues.apache.org/jira/browse/CB-145
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0, 1.2.0, 1.3.0
>            Reporter: Olivier Louvignes
>              Labels: Contacts
>             Fix For: 1.4.0
>
>
> Crashes with Error 0 on a clean Android device.
> Only works with Google accounts configured.
> Check http://simonmacdonald.blogspot.com/2011/09/saving-contacts-with-phonegap-android.html
> This should clearly be stated on phonegap api/docs. It's a major issue!
> It's quite frustrating to discover (& after a major IOS&Phonegap commitment) that my beloved framework basic&documented api interactions does not work at all...
> Would love to see this fixed soon !!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-145) Android contact.save() crashes for native contacts.

Posted by "Simon MacDonald (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13185832#comment-13185832 ] 

Simon MacDonald commented on CB-145:
------------------------------------

Yes, it should be pretty easy to grab the code from github and do an "ant jar" to generate the jar/js files. The only thing you should need to do is create a local.properties file in the framework directory that points to your android sdk. For example:

sdk.dir=/path/to/android/sdk

Yes, it is normal for the .js files to be different for each platform. We are working on normalizing them across all platforms but it isn't quite ready yet.

Not sure what version of PhoneGap you downloaded. The most recent zip has 1.3.0.
                
> Android contact.save() crashes for native contacts.
> ---------------------------------------------------
>
>                 Key: CB-145
>                 URL: https://issues.apache.org/jira/browse/CB-145
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0, 1.2.0, 1.3.0
>            Reporter: Olivier Louvignes
>              Labels: Contacts
>             Fix For: 1.4.0
>
>
> Crashes with Error 0 on a clean Android device.
> Only works with Google accounts configured.
> Check http://simonmacdonald.blogspot.com/2011/09/saving-contacts-with-phonegap-android.html
> This should clearly be stated on phonegap api/docs. It's a major issue!
> It's quite frustrating to discover (& after a major IOS&Phonegap commitment) that my beloved framework basic&documented api interactions does not work at all...
> Would love to see this fixed soon !!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-145) Android contact.save() crashes for native contacts.

Posted by "Simon MacDonald (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon MacDonald resolved CB-145.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4.0

Now if there are no accounts setup on the phone the contact API defaults to using the phone's native contacts.
                
> Android contact.save() crashes for native contacts.
> ---------------------------------------------------
>
>                 Key: CB-145
>                 URL: https://issues.apache.org/jira/browse/CB-145
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0, 1.2.0, 1.3.0
>            Reporter: Olivier Louvignes
>              Labels: Contacts
>             Fix For: 1.4.0
>
>
> Crashes with Error 0 on a clean Android device.
> Only works with Google accounts configured.
> Check http://simonmacdonald.blogspot.com/2011/09/saving-contacts-with-phonegap-android.html
> This should clearly be stated on phonegap api/docs. It's a major issue!
> It's quite frustrating to discover (& after a major IOS&Phonegap commitment) that my beloved framework basic&documented api interactions does not work at all...
> Would love to see this fixed soon !!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-145) Android contact.save() crashes for native contacts.

Posted by "Olivier Louvignes (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13182782#comment-13182782 ] 

Olivier Louvignes commented on CB-145:
--------------------------------------


Thanks a lot for the fix, can't wait 1.4 release (is it easy to compile the .jar file from trunk if i do not want to wait a full release ?)

And if there is multiple account setup, will it use always the same (across functions read/create/update) ? How is it chosen ? (first ? random ? possibility to choose ?)

While i'm on it, is it normal that the javascript side of phonegap is not the same for ios and android (did not work when using one from ios new project) ? And is it normal that i get a 1.2.0 file in the android package ?

That's a lot of q's and probably not really the place, but you clearly seem to be the best person to ask ;) !

Thanks!
                
> Android contact.save() crashes for native contacts.
> ---------------------------------------------------
>
>                 Key: CB-145
>                 URL: https://issues.apache.org/jira/browse/CB-145
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0, 1.2.0, 1.3.0
>            Reporter: Olivier Louvignes
>              Labels: Contacts
>             Fix For: 1.4.0
>
>
> Crashes with Error 0 on a clean Android device.
> Only works with Google accounts configured.
> Check http://simonmacdonald.blogspot.com/2011/09/saving-contacts-with-phonegap-android.html
> This should clearly be stated on phonegap api/docs. It's a major issue!
> It's quite frustrating to discover (& after a major IOS&Phonegap commitment) that my beloved framework basic&documented api interactions does not work at all...
> Would love to see this fixed soon !!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CB-145) Android contact.save() crashes for native contacts.

Posted by "Olivier Louvignes (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13187000#comment-13187000 ] 

Olivier Louvignes commented on CB-145:
--------------------------------------

VERSION is indeed up to date, seems it is just a typo left in the trunk in this js file "phonegap.js.base".
                
> Android contact.save() crashes for native contacts.
> ---------------------------------------------------
>
>                 Key: CB-145
>                 URL: https://issues.apache.org/jira/browse/CB-145
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.1.0, 1.2.0, 1.3.0
>            Reporter: Olivier Louvignes
>              Labels: Contacts
>             Fix For: 1.4.0
>
>
> Crashes with Error 0 on a clean Android device.
> Only works with Google accounts configured.
> Check http://simonmacdonald.blogspot.com/2011/09/saving-contacts-with-phonegap-android.html
> This should clearly be stated on phonegap api/docs. It's a major issue!
> It's quite frustrating to discover (& after a major IOS&Phonegap commitment) that my beloved framework basic&documented api interactions does not work at all...
> Would love to see this fixed soon !!

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira