alex Oliveira | 27 May 19:24 2015
Picon

Android SDK Manager

I'm starting in phonegap and I'm having trouble running the Android SDK Manager.

Whenever I click the start he opens up the emulator only gives error ...

Where I am missing?

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Joey Balls | 27 May 01:30 2015
Picon

How to add a .so file to my phonegap plugin

I want to use a 3rd party library which consists of a jar file and a precompiled file in armeabi-v7a/<filename>.so. I'm using the latest version of Android Studio. How do I organize my plugin so that this library can be used? I've tried about 30 different ways (based on a lot of googling) and no matter what I try, the library cannot find its .so file. This library came with a sample Android app. I was able to build it and run it successfully, so I know it's not their code. But I can't figure out how to use the associated library in my Phonegap plugin.

- What should the directory structure of the plugin look like?
- Do I need to add anything special to plugin.xml?
- Do I need to add anything special to build.gradle?

I've been stuck for days on this. 

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
David Jerez | 26 May 23:15 2015
Picon

iscroll pagination in jquery mobile

Hi all, 

As I can implement iscroll pagination in jquery mobile with getJSON??

Thanks!!

David Jerez | 26 May 18:37 2015
Picon

How to perform paging and scrolling jquery mobile and phonegap !?

Hello everyone,

I'm making an app with jQuery Mobile and PhoneGap and need to do a scroll with pull refresh (pagination). I use iscrollview (iscroll plugin for jQuery Mobile). I use also getJSON.

Can someone help me out !! ??

I am a beginner.

Thank you very much.

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
ElyasX | 26 May 17:43 2015
Picon

[Question] whats the best for loading data from server and send it again?

Hello guys,
Actually im using Phonegap for creating an APP for both iOS and Android. 
Question i have here is whats the best way for sending data to server after receiving it 

if have misunderstood meaning, ask me Q for better describing .

Image below it the page im going to receive and send it a while later 


Here in this image ,  having some data which displaying as UL > LI each Item ( or can be DIVs )  >> and app will send some items which is SELECTED to server , . 

now the Question is when im reading the Data [From Server : DB > Json (By JSONP Method ) ] by this Code below : 

<script>
$
(document).ready(function(){                  
        $
.jsonp({
                url
: 'URL JSON',
                callbackParameter
: 'callback',
                success
: function(data, status) {
                   
                        $
.each(data, function(i,item){
                               
var row = item.text;
                                $
('#ID').append('<li>'+ row );
                       
});
               
},
                error
: function(){
                        $
('#ID').append('<li>There was an error loading the Row');
               
}
       
});
});
</script>

(Another way is to store Datas in LOCAL DB and then load it in Page .. )

>> Now the CLIENT will choose some items , so NOW When some items are selected ( + sign clicked ) > how to send back those items as selected ?  : 

1 : Should Define it as a FORM ? > in that way its not Good for reading ROWs for each item .
2 : For + Sign i must write a js Function to if clicked and selected Add one ?
3 : ... ?
...



Thanks ...
Regards,
ElyasX

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
ravi rajput | 26 May 10:22 2015
Picon

Phonegap does support 3D object and PDF annotations..?

We are analysing some features for our application.. so we need these two features . do does Phonegap supports these?

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Ulrich Diedrichsen | 26 May 16:00 2015
Picon

How to get the list of pictures in the /DCIM/Camera folder ?

Hi,

I want to get the list of pictures inside the DCIM/Camera folder with all attributes.

For my app I want to group the pictures taken by day , month or year.

But I can't figure out how to use the file plugin correct.
I googled that for a couple of hours without sucess.

Has somebody a idea how to solve that ?

Cheers,

Uli

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Eloi BallarĂ  | 26 May 13:28 2015
Picon

That email address is already linked to a PhoneGap Build account.

I can't login because of this message That email address is already linked to a PhoneGap Build account.


What can I do?

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Seth Alcott | 26 May 00:52 2015
Picon

How to start/use cordova-imagepicker?

I have installed the plugin with:
$ cordova plugin add com.synconset.imagepicker

I have added this line to config.xml:
<gap:plugin name="com.synconset.imagepicker" version="1.0.6" />

What further steps are required for this plugin to work? I've been searching for hours and can't seem to find any code examples or explanation to get this going.

Thanks for your response

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
tony johansson | 25 May 21:43 2015
Picon

It does not work to filter on phone number

I use Eclipse and platform Android.
Below is the code that is relevant for my question.
So when I enter a name such as Fia Hult and a phone number such as 12345
these two values is being passed into function saveContact which is listed below which together with other function
display all the contact on the screen including the one I entered.This works good.

When I want to filter for a specific contact I can for example enter a name and click on search button which call function searchContact
which display one single row with this filtered contact. This works also good.

But if I want to filer on entered phone number which call function searchContact I don't get any match even if I can see in the long list that I have a contact with this phone number.

Can anyone tell me why I can't filer on phone number wnhen I can filer on name?

function searchContact(name,phone)
{  
    var options = new ContactFindOptions();
    var searchItem = phone + " " + phone;
    options.filter = searchItem;
    options.multiple = true;
    var fields = ["displayName", "phoneNumbers"];
    navigator.contacts.find(fields, contactSuccess, contactError, options);
}

function saveContact(name, phone)
{
    var contact = navigator.contacts.create();
    contact.displayName = name;
   var phoneNumbers = [];
    phoneNumbers[0] = new ContactField('home', phone, true);
    contact.phoneNumbers = phoneNumbers;
    contact.save(onSaveSuccess, onSaveError);
    listContact();
}

function listContact()
{
    var fields = ["displayName", "phoneNumbers"];
    navigator.contacts.find(fields, contactSuccess, contactError);
}

function contactSuccess(contacts)
{
var resultat = "<ul>";
    for (var i = 0; i < contacts.length; i++)
    {
        resultat += "<li>" + contacts[i].displayName + "  " + contacts[i].phoneNumbers[0].value + "</li>";
    }
    resultat += "</ul>";
    document.getElementById('list').innerHTML = resultat;
    clearInput();
}

//Tony

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.
Tanase Butcaru | 25 May 19:39 2015
Picon

FileWriter.write() failure on Lollipop when no ext_sdcard present

FileWriter write method fails on android lollipop versions when no external sdcard is present.

Environment:
-Cordova 5.0.0 & cordova-android 4.0.0
-Android Emulator (4.4.2, 5.0.1 and 5.1.1)
-Xperia Sola (with 4.4.4) & Xperia Z3 Compact (5.0.2)

Simple test case:

function fwriteTest(){
    console
.log("START FILE WRITE!!");
    console
.log("CDV dataDirectory: " + cordova.file.dataDirectory);

    window
.resolveLocalFileSystemURL(cordova.file.dataDirectory, resolveLocalFSUrlWin, resolveLocalFSUrlErr);
}

function resolveLocalFSUrlErr(err){ console.log("resolve FS ERR: -- " + JSON.stringify(err)); }
function resolveLocalFSUrlWin(dirEntry){
    console
.log("resolve FS WIN!!");

    dirEntry
.getFile('fileWriter.txt', { create: true, exclusive: false }, getFileWin, getFileErr);
}

function getFileErr(err){ console.log("get file ERR: -- " + JSON.stringify(err)); }
function getFileWin(fileEntry){
    console
.log("get file WIN!!");

    fileEntry
.createWriter(
       
function(writer){
            writer
.onwrite = function(evt){
                console
.log("Write to file WIN!!");
                alert
("ALL GOOD!!");
           
};

            writer
.onerror = function(err){
                console
.log("Write to file FAIL: -- " + JSON.stringify(err));
           
}

            writer
.write("sample text goes hereee");
       
},
       
function(err){
             console
.log("create writer ERR: -- " + JSON.stringify(err));
       
}
   
);
}

//run test!
fwriteTest
();

AndroidManifest.xml contains the following permission, so it's all good here:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />


I have two android devices, different android versions (4.4.4 and 5.0.2) and I have 3 android emulators with android 4.4.2, 5.0.1 and 5.1.1. I tested all environments with and without ext_sdcard (for emulators do not enter "Size" for Sd card option) and here are my results: http://pastebin.com/eePUCHqx

All results are from LogCat console from android-sdk/tools/monitor tool.

I use Crosswalk 12-stable version as my default webview, but I have tested all this with System-webview too and the problem persists.

As you can see from printed error on write fail - there is a error 6 code and from what I've read here it's a NO_MODIFICATION_ALLOWED_ERR error.

You can also replace cordova.file.dataDirectory with any other path (i have tried cacheDirectory and tempDirectory) or with a FileSystem path like LocalFileSystem.PERSISTENT (in this case you'll have to modify the dirEntry.getFile into dirEntry.root.getFile and the resolveLocalFileSystemUrl with requestFileSystem method and its arguments) - issue will persist!

Am I missing some configurations/permissions or it's really a bug?

--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Gmane