Nelson D | 31 Jul 09:40 2014
Picon

Hello World 4 application using the jquery mobile framework.

I have been following along with the Apache Cordova 3 Programming book, and I am stuck at the Hello World 4 application, the css formatting is not coming through. there should be a black border on the top and bottom. 

--
-- 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.
Keith | 31 Jul 23:04 2014
Picon

Logistical Questions about PushPlugin

I have implemented PushPlugin (https://github.com/phonegap-build/PushPlugin) such that I can register a device and send it push notifications. My current setup works fine, but I have a few logistical questions before I add further functionality and move my app onto non-development devices.

  1. I am currently storing the device ID of my test device (and, theoretically, any other device that would use my app) in a SQL database so I can access all approved devices to send a push to. However, on the officially Android Docs (http://developer.android.com/google/gcm/client.html) it says that you should keep device IDs secret. Is a private database secret enough, or do I need some sort of encryption? If so, how am I supposed to access device IDs to send out push notifications?
  2. Whenever my app opens, it generates a registration ID, sends it to the backend, and is either added to the database (mentioned above) or receives a message saying that the device is already registered. However, I never use the unregister function. Should I be unregistering my devices at some point, or will they just generate a different device ID once their current ID expires?
This is my first time working with push notifications or mobile development, so I'm still a bit fuzzy on the common safety precautions and pitfalls.

--
-- 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.
Lukas Lorentzon | 31 Jul 16:01 2014
Picon

MEDIA plugin not working...

Hi,

I've added the media plugin in the config.xml file:
<gap:plugin name="org.apache.cordova.media" version="0.2.8" />

But calls to plugin functions does not work. For example I only see the first alert here:
alert("before"); // show
mediaVar = new Media(recordFileName, function() {alert("Media success"); }, function() { alert("Media failure");} );
alert("after"); // do not show

Any ideas regarding how this could be fixed?

Thanks in advance!


--
-- 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.
Kingsley Simon | 31 Jul 11:01 2014
Picon

Display picture on mobile app index.html page

Hello Guys, Im relatively new to Phonegap Android. 

I have an image in my drawable-hdpi folder and i want to display that picture on my mobile page. Currently this is what I did 
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<title>Accelerometer Data</title>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript">

//Set the event listener to run
//when the device is ready
document.addEventListener("deviceready", onDeviceReady, false);

function onDeviceReady() {
}

</script>
</head>
<body>

<img border ="0" src="/res/drawable_hdpi/images/naruto.png" alt="nothing" width="400" height="300"/>
<!--  You pointed on x = <input type="text" name="form_x" size="4" /> - y = <input type="text" name="form_y" size="4" />-->

</body>
</html>

But whenever i run the program, It shows a blank image. How do i rectify this or is there any other way to solve this problem?

Thanks 
Kingsley 

--
-- 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.
jayshree bhaktha | 31 Jul 08:21 2014
Picon

select data from SQLite database in cordova

I am new to Cordova.I am creating a small app using Cordova(Android).I am using SQLite as local database and have created the DB and tables in it,but when i am trying to retrieve the details it is not working.

WHAT I HAVE DONE:

I am trying to retrieve data from table weight.

This is my weight.html:

<!DOCTYPE html>

    <html>

      <head>

 

        <title></title>

 

        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>

        <meta name="viewport" content="width=device-width, initial-scale=1">

        <script type="text/javascript" charset="utf-8" src="weightScript.js"></script>

        <script type="text/javascript" charset="utf-8" src="jquery-1.10.2.min.js"></script>

        <script type="text/javascript" charset="utf-8" src="jquery.mobile-1.4.3.min.js"></script>

      </head>

      <body bgcolor="black">

      <script>

         document.addEventListener("deviceready", onDeviceReady, false);

 

        // Cordova is loaded and it is now safe to make calls Cordova methods

        //

        function onDeviceReady() {

            // Now safe to use the Cordova API

             alert('device ready');

             var db = window.openDatabase("Database2", "1.0", "DigitalNoiz", 200000); 

            db.transaction(queryDB, errorCB, successCB);

        }

 

            function queryDB(tx) {

     tx.executeSql("SELECT * FROM Weight",[], successCB, errorCB);

     alert('in queryDB');

    }

      function successCB(tx, results) {

        alert(' Weight details Retrieved successfully');

         document.getElementById("output").innerHTML = "";

          var len = results.rows.length;

          console.log("Returned rows = " + results.rows.length);

          // loop through rows as many times as there are row results

     for (var i = 0; i < len; i++) {

     var weight = results.rows.item(i).Weight;

    // Display the query results within <textarea id="output"></textarea>

     document.getElementById("output").innerHTML += "\nWeight = " + results.rows.item(i).Weight +

     "\nHeight = " + results.rows.item(i).Height +

     "\nNotes= " + results.rows.item(i).Notes +

     "\nDateAndTime = " + results.rows.item(i).DateAndTime + "\n";

      } }

       // Transaction error callback

       function errorCB(err) {

           console.log("Error processing SQL: "+err.code);

 

       }

       </script>

      <h1><font color="#FFF">Weight</font></h1>

      <p><font color="#FFF">This area is for you to keep track of height,weight and BMI Records,for instance if you are trying to loose weight.The BMI will automatically calculate the height and weight you enter</font></p>

      <font color="#FFF"><input type="submit"  align="center" value="EnterRecord" onclick="redirect1()"/></font>&nbsp;&nbsp;<font color="#FFF"><input type="submit" onclick="redirect()" align="center" value="HomePage" /></font>

      <table style="width:100%;background-color: #BEF781;">

    <tr><th colspan="6" style="background-color: #00BFFF;height:50px;font-size: larger;"><font color="white">Weight</font></th></tr>

    <tr></tr>

    <tr style="background-color: #58D3F7;"><td>height</td><td>weight</td><td>Notes</td><td>Date and Time</td></tr>

    <tr><td>30.7cm</td><td>50</td><td>20</td><td>10-3-2014 05:00 00</td></tr>

    </table>

    <textarea id="output" rows="15" placeholder="Results displayed here"></textarea>

      </body>

    </html>

 

 

**And this is my WeightInfo.html:**

 

 

 

 

 

<!DOCTYPE html>

    <html>

      <head>

        <title></title>

        <script type="text/javascript" charset="utf-8" src="cordova.js"></script>

        <script type="text/javascript" charset="utf-8" src="weightInfoScript.js"></script>

        <meta name="viewport" content="width=device-width, initial-scale=1">

        <script type="text/javascript" charset="utf-8" src="jquery-1.10.2.min.js"></script>

        <script type="text/javascript" charset="utf-8" src="jquery.mobile-1.4.3.min.js"></script>

 

      </head>

 

    <body bgcolor="black">

    <script type="text/javascript">

        function redirect(){

 

            window.open("Weight.html",'_self');

        };

 

        </script>

    <div class="container">

        <section id="content">

            <form action="">

                <h1><font color="#FFF">Weight Info</font></h1>

                <table>

                <tr><td><font color="#FFF">Height</font></td><td><input type="text" placeholder="Height" required="" id="Height" /></td></tr>

                <tr><td><font color="#FFF">Weight</font></td><td><input type="text" placeholder="Weight" required="" id="Weight" /></td></tr>

                <tr><td><font color="#FFF">Notes</font></td><td><input type="text" placeholder="Notes" required="" id="Notes" /></td></tr>

                <tr><td><font color="#FFF">DateAndTime</font></td><td><input type="date" placeholder="DateAndTime" required="" id="DateAndTime" style="width:175px;"/></td></tr>

 

                </table>

                 <table><tr><td><input type="submit"  id="submit" value="Save"/></td><td><input type="submit" value="Cancel" onclick="redirect()"/></td><tr></table>

            </form><!-- form -->

        </section><!-- content -->

    </div><!-- container -->

     </body>

    </html>

 

 

 

**And this is my WeightInfoScript.js:**

 

 

 

 

 

 

 

    window.addEventListener('load', function(){

                   // Wait for PhoneGap to load

                   document.addEventListener("deviceready", onDeviceReady, false);

               }, false);

 

               // PhoneGap is ready

               function onDeviceReady() {

                   var db = window.openDatabase("Database2", "1.0", "DigitalNoiz", 200000);    

                   var submitBtn = $("#submit");

 

                   submitBtn.click(function(){

                       db.transaction(populateDB, errorCB, successCB);

                   });       

               }

 

               // Populate the database

               function populateDB(tx) {

 

              var setHeight =$("#Height");

              var setWeight =$("#Weight");

               var setNotes =$("#Notes");

                var setDateAndTime=$("#DateAndTime");

                 tx.executeSql('DROP TABLE IF EXISTS Weight');

                   tx.executeSql('CREATE TABLE IF NOT EXISTS Weight (Height integer(20), Weight integer(20), Notes varchar(20), DateAndTime text)');

                   tx.executeSql('INSERT INTO Weight (Height,Weight,Notes,DateAndTime) VALUES ("' + setHeight.val() + '", "' + setWeight.val() + '", "' + setNotes.val() + '", "' + setDateAndTime.val() + '")');

                   queryDB(tx);

               }

 

               // Query the database

               function queryDB(tx) {

             tx.executeSql("SELECT * FROM Weight", [], successCB, errorCB);

            }

               // Transaction error callback

               function errorCB(err) {

                   console.log("Error processing SQL: "+err.code);

               }

 

               // Transaction success callback

               function successCB(tx, results) {

                alert('Weight details submitted successfully');

               window.open("Weight.html",'_self');

            // Display the query results as a table within <div id="output2"></div>

            //document.getElementById("output2").innerHTML += "<table><tr><td><button class='buttonDel' onclick='delRecord(\"" + rowid + "\")' value='Delete'>Delete</button><br>" + results.rows.item(i).id + "</td><td>" + results.rows.item(i).data1 + "</td><td>" + results.rows.item(i).data2 + "</td><td>" + results.rows.item(i).data3 + "</td></tr></table>";

            //console.log("rowid = " + rowid);

             location.reload(false);

             }

 

 

**And finally this is my weightScript.js:**

 

    function redirect(){

 

                    window.open("HomePage.html",'_self');

               };

                function redirect1(){

 

                    window.open("WeightInfo.html",'_self');

                };

When i run the code tables are being created and data is also getting inserted but the data is not getting displayed. My LogCat shows the following:

07-31 00:53:39.370: D/CordovaLog(2167): file:///android_asset/www/Weight.html: Line 33 : Uncaught TypeError: Cannot read property 'rows' of undefined

Kindly suggest how to retrieve the data from the table weight and display it in a text area or table. Thanks in advance

 

--
-- 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.
sarath upadrista | 31 Jul 15:24 2014

Best JavaScript ClientLibraries to do OAuth2.0 (Google) and call Secured Google Cloud EndPoints

Hello all,

              I am new to PhoneGap. I am very eager build a Hybrid mobile application. I managed to quick start Phonegap application. Now I would like to do OAuth2.0 (google) and access my Secured Google Cloud EndPoints using Phonegap. Is there any Best JavaScript Library to do OAuth and access my Secured Cloud Endpoints using phonegap. I am able to do basic OAuth in Phone gap using Jquery, AngularJs. But, Its becoming pain to access the Secured Google CloudEndPoints in phonegap. So, Please suggest me what are the available best JavaScript Libraries to do the above tasks.




Thanks&Regards
Sarath.

--
-- 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.
mayor | 31 Jul 16:40 2014
Picon

YouTube iFrame

greetings,


I have the HTML5 video tag working nicely on iOS and Android, like so:

<video width="90%" poster="logo.png" webkit-playsinline controls autoplay loop>
    <source src="mov_bbb.mp4" type="video/mp4">
    <source src="mov_bbb.ogg" type="video/ogg">
    Your browser does not support HTML5 video.
</video>

I am trying to get YouTube to work, like so:

<iframe width="560" height="315" src="https://www.youtube.com/embed/-koXQqD0p5s" frameborder="0" allowfullscreen></iframe>



it works on iOS 6&7, but on Android the iframe is blank.  I have <access origin="http://*.youtube.com*" />, but I am imagining that there is some obscure Android config option that I'm missing.



using Cordova 3.5.0 with android-targetSdkVersion=19

--
-- 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.
zsepretty | 30 Jul 15:05 2014
Picon

Given a number,how to tell if a number is switched on or off.

I am reading this tutorial on  making calls using phonegap here http://rickluna.com/wp/2012/02/making-a-phone-call-from-within-phonegap-in-android-and-ios/

and i am wondering how i can test if a number i own can be reached or not.My phone is at home and sometime it runs out of charge completely and someone trying to call me cannot reach me since my phone is off. To solve that problem,i want to write an android app using phonegap to tell me if my number is on or off.

In the country i live in,when making a call,your phone gives you this tone when its connecting(calling the number) and when the number is not available(number is switched off),a voice prompt tells you that the subscriber cannot be reached.

Is there a way i can tell when calling a number that a number is on or off?.

--
-- 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.
Bahadır Hatunoğlu | 30 Jul 11:18 2014
Picon

Chromium WebView does not exist

Hello, 

I am trying to create a Hello World app using Phonegap but it crashes when I call run the application on emulator. Here is what I have on MainActivity.java :


import android.os.Bundle; import org.apache.cordova.*; public class HelloWorld extends CordovaActivity { <at> Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); // Set by <content src="index.html" /> in config.xml super.loadUrl(Config.getStartUrl()); //super.loadUrl("file:///android_asset/www/index.html"); } }

Here is the first errors I get :

  1. Chromium WebView does not exist
  2. FATAL EXCEPTION: main
  3. java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.deneme/com.example.deneme.MainActivity}: java.lang.UnsupportedOperationException

Can you tell me what is wrong with the application? Thanks.

--
-- 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.
Vinicius Freitas | 30 Jul 21:19 2014
Picon

Looking for Consulting in Mobile App Development with Cordova/Phonegap

Hey guys,

I'm Vinnie, currently COO at Taller; a web development shop based in Florianopolis, Brazil,  focused in delivering solutions based in Drupal and Nodejs.

We're currently investing in a product which will have two mobile applications.

We have a project starting next week, on August 4th, with the objective of developing the first app with Apache Cordova/Phonegap.

The first week of the project will be dedicated to research so that we may choose the UI framework, test some plugins, execute a POC and explore testing and automations tools and methods. We'll follow the research with an agile Release Planning, and after that, we'll implement the app's base architecture and automation. 

Therefore, we're looking to acquire 15 to 30 hours of consultancy specialized in Cordova/Phonegap development to help us with such decisions and to acquire know how about working with the platform. Here are some of the questions we would like to approach during consulting:

- Which UI framework should we use to develop the app?

- How and with what tools do we test and perform continuous integration?

- What are the principal challenges when working with NFC?

Given that requirements deal with NFC, experience with the technology is a huge plus.

If anyone is interested in offering consulting, please contact me to schedule a call so that we can introduce ourselves, discuss project details, and exchange information avout hourly rates and availability.

Thanks!

--
-- 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.
Rubesh Shankhadev | 30 Jul 11:08 2014
Picon

Phonegap autoplay local video at app start-up ios

I am new to developing ios application with phone gap. I need to play a mp4 file at app start-up. I know that playing video on splash screen on ios isn't possible so, i need something that auto play video after showing splash screen. I searched for many phone gap plugin but didn't find the right one. Any phone gap plugin or sample code on objective C that can be integrated with phone gap will be helpful. I am using phone gap 2.9.0.

Note:I have tried CDVVideo Plugin and HTML video tag but both of them doesnot work.

--
-- 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