{"id":6857,"date":"2014-05-05T10:46:49","date_gmt":"2014-05-05T10:46:49","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/05\/androidhtml5phonegaprelated-issues-collection-of-common-programming-errors\/"},"modified":"2014-05-05T10:46:49","modified_gmt":"2014-05-05T10:46:49","slug":"androidhtml5phonegaprelated-issues-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/05\/androidhtml5phonegaprelated-issues-collection-of-common-programming-errors\/","title":{"rendered":"android,html5,phonegapRelated issues-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/43ba18c555ca85023faba4a15790f762?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSquonk<br \/>\nandroid<br \/>\nThis is my code,what&#8217;s the matter?Operation result is&#8221;has stopped unexpectedly&#8221;. It can go through when remove the OnClickListener,that is say,that button to click on the binding is wrong?Please help me,thank you!gao.javapackage cn.gao; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.*; public class gao&lt;hellotwo&gt; extends Activity { \/** Called when the activity is first created. *\/ @Override public void onCreate(Bundle savedInstanceS<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/17f0e16ac02bfd216097aab957bf13ad?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nabishekshenoy<br \/>\njava android<br \/>\nBelow is the error that logcat springs up. It is unable to parse the &lt;!DOCTYPE&#8230;&gt; at the start of any xml document. I tried my program with a page that doesn&#8217;t have the DOCTYPE tag and it worked successfully. I have used setFeature to enable &#8216;FEATURE_PROCESS_DOCDECL&#8217;, but it doesn&#8217;t solve the problem.The Error: org.xmlpull.v1.XmlPullParserException: Unexpected &lt;! (position:START_DOCUMENT null@1:1 in java.io.InputStreamReader@424355f0)Excerpt of my code:URL url = new URL(&#8220;http:\/\/www.googl<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/de2d75628841b3f0ff18b1bca1a84ee9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nbobygerm<br \/>\nandroid google-plus<br \/>\nMy android app is using the Google+ API to connect the user to this social network and to record activities in it.My code is straightforward, I copied the sample code to write a review activity as a moment here : https:\/\/developers.google.com\/+\/mobile\/android\/app-activitiesmonPlusClient = new PlusClient.Builder(this, new GooglePlayServicesClient.ConnectionCallbacks() {@Overridepublic void onDisconnected() {Log.d(TAG_DEBUG, &#8220;monPlusClient, onDisconnected&#8221;);}@Overridepublic void onConnected(Bundle<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/mio7Q.png?s=32&amp;g=1\" \/><br \/>\nIDV<br \/>\nandroid shell<br \/>\nI wrote this script for copying XML files I received to a spot on my sdcard. However when I run it in terminal i get the following. Can someone explain if i did something wrong or whats going on?cd \/data\/com.idv.android\/cache\/receivedxml\/ \/data\/xml.sh[4]: cd: \/data\/com.idv.android\/: No such file or directory \/data\/xml.sh[7]: syntax error: &#8216;cat&#8217; unexpectedAdditional info: Samsung Galaxy S2 Skyrocket \/ Rooted \/#!\/system\/bin\/sh set -x verbosecd \/data\/data\/com.idv.android\/cache\/receivedxml\/ if ls *.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0487c4cdd633c17168020dbae62de9e5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nArgus9<br \/>\nandroid spinner<br \/>\nMy app has a spinner with four entries in it. I need to be able to retrieve which of these labels is selected, not the actual labels themselves. Below is my partial code for doing this:\/\/ Set up the activity&#8217;s SpinnerspinnerAdapter = ArrayAdapter.createFromResource(this, R.array.pay_periods, android.R.layout.simple_spinner_item);spinnerAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);Spinner s = (Spinner) findViewById(R.id.main_spinner_payperiod);s.setAdapter(spinne<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8a97480fa3b90e032ccd935ccb11b132?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nHarshit Syal<br \/>\nandroid android-service<br \/>\nI am experiencing some unexpected service leaked error when I change activity to landscape mode. The app is running fine, the error only shows up in logcat.logcat error is :E\/ActivityThread(16640): Activity com.amazon.hsyal.ui.VoltageSODLoggerActivity has leaked ServiceConnection com.amazon.hsyal.ui.VoltageSODLoggerActivity$1@41461908 that was originally bound hereE\/ActivityThread(16640): android.app.ServiceConnectionLeaked: Activity com.amazon.hsyal.ui.VoltageSODLoggerActivity has leaked Servic<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ba2dc6a2f428c3172e879f1be9040988?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSandip Armal Patil<br \/>\nandroid parameters camera rotation image<br \/>\nWithout calling parameters.setRotation(), the direction of the picture saved by pictureCallback is not same as preview on screen, so I add the line parameters.setRotation(90) for test, after adding this line, the direction of the saved picture is correct, and without any problem in my Nexus One.In Galaxy Nexus, the direction is also correct, but everything in the picture is thin and tall than what they are, and I notice that the result is inconsistency, sometimes thinner and taller than other ti<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/62b2afdccdf0a4aa366c46b99aed8e2b?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nnamehere<br \/>\njava android minimax appcrash<br \/>\nI have this android app that plays Go, a board game. The app is based on negamaxwith alpha beta pruning.The app works fine for a negamax search depth of 1(search depth is the third parameter passed to rootnegamax() in generate(), both in the aiplayer class). However, when search depth is raised, whenever the game is the computer&#8217;s turn to move, the app says &#8216;Unfortunately, Go has stopped&#8217; and crashes. I figured out commenting out the line responsible for alpha beta pruning in negamax() somehow f<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/99f6179e16dcc5e9f0f76d78a24c3e41?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMarcin Orlowski<br \/>\nandroid intellij-idea android-studio<br \/>\nWhen I add this line of code in my ActivityfindViewById(R.id.btFilter).setOnLongClickListener(new View.OnLongClickListener() {@Overridepublic boolean onLongClick(View view) {ResultadoBuscaMapa.this.finish();return true;}});I cannot compile, and get this errorUNEXPECTED TOP-LEVEL EXCEPTION: com.android.dx.util.ExceptionWithContext at com.android.dx.util.ExceptionWithContext.withContext(ExceptionWithContext.java:46) &#8230;in both Intellij IDEA and Android Studio (latest versions)Funny thing is that i<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f1e8aaca6abc8a51a990ca20f7b866cc?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRAHULRSANNIDHI<br \/>\nandroid facebook<br \/>\nI&#8217;m developing an Android app that should integrate with Facebook sdk v3.5.2I have gone through official guide and integrated the share dialog in my application. i have implemented everything correctly with the Facebook sdk when i try to share a link from my application to the facebook application .Iam getting an exception like.D\/com.facebook.AppEventsLogger(13656): Got unexpected exception: java.lang.NullPointerException.also i added the meta tag in manifest filemeta-dataandroid:name=&#8221;com.face<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/afc1068910df4dd83c2fc3af0255af11?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nKevin B<br \/>\njavascript html5 socket.io<br \/>\nI&#8217;ve been using socket.io to act as a server which was working fine. However, I am getting the &#8220;unexpected token &lt;&#8221; error when adding the line &lt;script src=&#8221;client files\\MainMenu.js&#8221;&gt;&lt;\/script&gt;to my index.html that connects to the server. This error only occurs in chrome and will run if the aforementioned line is removed. Strangely though, this error won&#8217;t appear in firefox but instead I&#8217;ll get errors to do with socket.io.js (which I haven&#8217;t touched personally). Also I&#8217;ve also succe<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/66afba5709b9f0104ca7031c2bcd812e?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCrucial<br \/>\njavascript jquery html5 canvas<br \/>\nI am making a small draw pad script using HTML5 canvas and JS.I encountered a problem which I think maybe be caused by using 2 &#8216;mouseup&#8217; event listeners but I am not certain &#8211; so I was wondering if someone could take a look at the code.The problem is that when dragging the brush size slider, if not letting go of the mouse while still hovering over the slider &#8211; the first line you try to draw on the canvas gets stopped half way.Actual link: www.ronjrtech.com\/drawPastebin: http:\/\/pastebin.com\/hCbPk<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f4e9bb1188639b8562f17a8ffce5aae7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDominic Sore<br \/>\njavascript html5 setinterval keydown<br \/>\nSo I am at the very beginning stages of creating my first platform style game in html5.So far I have only implemented left and right movement and no &#8216;gravity&#8217; or collision detection is at play.However, I&#8217;ve already hit an issue.If you go left or right for a short period of time the &#8216;character&#8217; acts as intended (I use character loosely as it&#8217;s the map that is actually moving). If, however, you hold the key down the map moves too fast.I figure the issue is that the keydown event listener is listen<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c072b84299e49391d9a021c1470f9c42?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBill Mills<br \/>\njavascript css html5<br \/>\nI&#8217;ve spent the day on a funny problem &#8211; I have some canvases that I&#8217;d like to drag around using native HTML5 drag and drop functionality. Everything works great, except I eventually found that in Chrome 28.0.1500.95, the default ghost image of the canvas doesn&#8217;t appear if the canvas is the child of an inline-block div. Check out this minimal working example:&lt;html&gt;&lt;body&gt;&lt;div style=&#8217;display:inline-block&#8217;&gt; &lt;canvas id=&#8217;canvas1&#8242; width=&#8217;100px&#8217; height=&#8217;100px&#8217; draggable=&#8217;true&#8217;&gt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/5650c09111d58ed2945f9183c41911cb?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nqiu8310<br \/>\nhtml5 canvas<br \/>\nWhen I want to draw lines that through three points, and make a round corner at the second point. And then problem happens, if the angle between the two line is less than 90 degree, there will be some extra line append on the line through point1 and point2. if the angle large or equal 90 degree, it will be ok.You can see this in fiddle: http:\/\/jsfiddle.net\/qiu8310\/8cFZG\/2\/And here is the javascript code and the result:&#8221;use strict&#8221;;function Point(x, y){this.x = x ? x : 0;this.y = y ? y : 0;}var c<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/50ee0d12480827dc056e40ab4eeeb308?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nniko<br \/>\nweb-development html css html5<br \/>\nI am new to HTML and Im working on a self made project and I have to use &lt; table &gt; and &lt; fieldset &gt; tags in my html files. I need to set the width and height properties to the tables like &lt;td width=&#8221;100&#8243; height=&#8221;200&#8243; &gt; &lt;\/td&gt; &lt;!&#8211; something like that &#8211;&gt;But Im afraid of these reason because as the Monitor size changes with the computers some have large screens and some have small screens like notebook pc&#8217;s. The table dimensions looks small for the big screen computers and<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3e93824b186ac2a1e2364ad25aa68338?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nChris Johnson<br \/>\nhtml5 canvas drawimage<br \/>\nI&#8217;m just learning how to use the HTML5 canvas element. I&#8217;ve been successful in drawing rectangles, calling getImageData, manipulating pixels and then putImageData to see the rectangles change colour, etc.Now I&#8217;m trying to load an image into the canvas I&#8217;ve hit a snag. After calling drawImage on the canvas&#8217;s context, fillRect only draws in areas that don&#8217;t have an image drawn into them, like it&#8217;s drawing the rectangles behind the images, even though it&#8217;s called after drawImage. Also, putImageData<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/GnAR9.png?s=32&amp;g=1\" \/><br \/>\nDeepsy<br \/>\njavascript html5 angularjs angularjs-ng-repeat angular-ng-if<br \/>\nI have an object that looks like this:So basically I don&#8217;t know the length of the object and I&#8217;m using the following code to render the result:&lt;table style=&#8221;width: 100%&#8221; border=&#8221;0&#8243; cellpadding=&#8221;0&#8243; cellspacing=&#8221;0&#8243;&gt;&lt;tr ng-repeat-start=&#8221;(key, item) in items() track by key&#8221; ng-if=&#8221;item.primary&#8221;&gt;&lt;\/tr&gt;&lt;td first someprop=&#8221;2&#8243;&gt;first&lt;\/td&gt; &lt;tr ng-repeat-end ng-if=&#8221;!item.primary&#8221;&gt;&lt;td&gt;[NOT] first&lt;\/tr&gt;&lt;\/tr&gt; &lt;\/table&gt;I want the first element in the tab<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/62703deeb2e0f7a687e09cfe47084e31?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJames Montagne<br \/>\nhtml css html5 css3<br \/>\nCan somebody please help me understand why I am seeing what I am seeing?Code:&lt;!doctype html&gt; &lt;html lang=&#8221;en&#8221;&gt;&lt;head&gt;&lt;style&gt;#Viewport { width:50%; height:50%; margin: 0 auto; position: relative; background-color: blue; }#one { position: absolute; width: 5%; height: 70%; background-color: green;}#two { width: 5%; float: right; }&lt;\/style&gt;&lt;\/head&gt;&lt;body&gt;&lt;div id=&#8221;Viewport&#8221;&gt;&lt;section id=&#8221;one&#8221;&gt;&lt;p&gt;hi&lt;\/p&gt;&lt;\/section&gt;&lt;section id=&#8221;two&#8221;&gt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6f9eca4757684fee2b7410cefb6570a2?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJens Ravens<br \/>\ncss html5 font-face linewrap<br \/>\nOn a new project I get some unexpected behavior: When the sidebar is quite small (about 200px) , line breaks occur earlier than needed.On this image you can see the result (Safari 6.0.2, similar results in other brothers), the left arrow where the word is, the right arrow where the word should be (in my opinion).You can find the whole website http:\/\/fitzskoglund.jensravens.de to the see effect and CSS.I cannot attach a special snippet because I don&#8217;t know where this style or behavior comes from.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a47fbe3a80040bebab6339d78135f522?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nbbullis<br \/>\njquery android ajax mobile phonegap<br \/>\nI have been reading all over trying to find a reason why my AJAX, getJSON callback, JSONP and POST calls to my web server from my mobile phonegap android app is not working. I have tried every trick in the book and all of them work perfectly when using a standard web browser. Has anyone come across the &#8230;Uncaught SyntaxtError: Unexpected token &lt; at http:\/\/www.google.com.. error before? I have &lt;uses-permission android:name=&#8221;android.permission.INTERNET&#8221; \/&gt; in my AndroidManifest.xml.An<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3b2cd9c4e2c6255ffc5d9bd43eeb476c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nDanny<br \/>\niphone ios xcode ipad phonegap<br \/>\nI just created a new phone gap project in Xcode following the step-by-step guide on phone gap and with the default template files it creates I get this error. Does anyone know what this is or how to fix it? It is supposed to be able to build without error the default template project after building but I get this:Unexpected &#8216;@&#8217; in program &#8211; line 68 CDVNotification.m[self showDialogWithMessage:message title:title buttons:@[buttons] callbackId:callbackId dialogType:DIALOG_TYPE_ALERT];Unexpected &#8216;@<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/cd0165a88a06fc92a36f222606f17a11?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMichael Berkowski<br \/>\njavascript android html phonegap syntax<br \/>\nI am getting the error as stated in the title.Here is the html code&lt;!DOCTYPE HTML&gt; &lt;html&gt;&lt;head&gt;&lt;title&gt; PhoneGap &lt;\/title&gt;&lt;script type=&#8221;text\/javascript&#8221; charset=&#8221;utf-8&#8243; src=&#8221;cordova-2.3.0.js&#8221;&gt;&lt;\/script&gt;&lt;script type=&#8221;text\/javascript&#8221; charset=&#8221;utf-8&#8243; src=&#8221;fileopener.js&#8221;&gt;&lt;\/script&gt;&lt;\/head&gt;&lt;body&gt;&lt;h1&gt;PDF Open Tester&lt;\/h1&gt;&lt;a href=&#8221;#&#8221; onclick=&#8221;window.plugins.fileOpener.open(&#8220;\/sdcard\/Course Content Files\/1.pdf&#8221;);&#8221;&gt;open&lt;\/a&amp;g<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b1a73cc2ef5c749baf9d09a8273c18be?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nPaul Beusterien<br \/>\njavascript android html phonegap android-webview<br \/>\nIn my PhoneGap Eclipse project I am using jQuery for visual effects by referencing jQuery libraries:&lt;link rel=&#8221;stylesheet&#8221;href=&#8221;http:\/\/code.jquery.com\/mobile\/1.0\/jquery.mobile-1.0.css&#8221; \/&gt;&lt;script type=&#8221;text\/javascript&#8221; src=&#8221;http:\/\/code.jquery.com\/jquery.js&#8221;&gt;&lt;\/script&gt;&lt;script type=&#8221;text\/javascript&#8221;src=&#8221;http:\/\/code.jquery.com\/mobile\/1.0\/jquery.mobile-1.0.js&#8221;&gt;&lt;\/script&gt;and I am also making remote domain requests in order to display some information from the remote server.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c19bd1458899abee3e00ff721d98151d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nCoder_sLaY<br \/>\nandroid phonegap<br \/>\nNote:- I am using Cordova 1.9.0 and JQM 1.1.0, I am testing on Android 2.3This is my ChildBrowser.javaimport java.io.IOException; import java.io.InputStream;import org.apache.cordova.api.Plugin; import org.apache.cordova.api.PluginResult; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject;import android.app.Dialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.graphics.Bitmap; import android<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/3e01e3abe13d4dc14a1852353c58d680?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAxel Gong<br \/>\nwcf phonegap iis-7<br \/>\nFirst, I consumed WCF service in my asp.net application, everything is ok. But it does not work in my phonegap application. Here is my detailed error message. (First two are warnings and last one is error.) Warning 1: Viewport target-densitydpi is not supported. index.html:7 Warning 2: Resource interpreted as Script but transferred with MIME type text\/html: &#8220;http:\/\/:64514\/Service1.svc?wsdl\/MyFunction&amp;callback=jQuery1900010203775251284242_1364550121569&amp;Count1&amp;_=1364550121570&#8221;. Erro<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/abe4951a4a58e14e0d2a93bcaa33f8bb?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nLuka<br \/>\nandroid phonegap<br \/>\nMy application works fine in emulator, but when I put it on my Android device (Samsung Galaxy Spica) I get error: The page at file:\/\/ says: gap:[&#8220;Device&#8221;,&#8221;getDeviceInfo&#8221;,&#8221;Device0&#8243;,true]&lt;!DOCTYPE HTML&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&#8221;utf-8&#8243;&gt; &lt;title&gt;Title&lt;\/title&gt;&lt;meta charset=&#8221;utf-8&#8243;&gt;&lt;script type=&#8221;text\/javascript&#8221; src=&#8221;javascript\/phonegap.js&#8221;&gt;&lt;\/script&gt;&lt;script type=&#8221;text\/javascript&#8221;&gt;alert(&#8220;test1&#8243;);&lt;\/script&gt; &lt;link rel=&#8221;stylesheet&#8221; hre<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/7e030580f57b99986dc37eb858480174?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nakjoshi<br \/>\nphonegap extjs touch<br \/>\nRunning my Sencha 2 app in Chrome, I have a store with a rest proxy and a reader of type json. The store fetches data from a web service and the returned json is:{&#8220;user&#8221;:{&#8220;distributionRespondentId&#8221;:&#8221;71&#8243;,&#8221;loginId&#8221;:&#8221;01000368_95655233_71&#8243;,&#8221;remoteId&#8221;:&#8221;90&#8243;,&#8221;name&#8221;:&#8221;Tycho Brahe&#8221;,&#8221;companyId&#8221;:1000368,&#8221;companyName&#8221;:&#8221;MickTest3&#8243;,&#8221;pin&#8221;:&#8221;60075826&#8243;}}which, according to JsonLint, is fine and the Sencha 2 app running in Chrome is quite happy with it.I have eclipse set up with Applaud and put my Sencha 2 app in t<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c15560a292c51a510f3feba8e96d5b56?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nLex<br \/>\njavascript phonegap cordova cordova-2.0.0 ripple<br \/>\nI&#8217;m using PhoneGap 2.7.0 and am following the simple command line build\/install instructions here. I&#8217;m building for Android, on Windows. My debugging and testing is mostly done in Chrome using Ripple, but also using the Android emulator and installed on my Nexus 7. First, I&#8217;ll say what works. For a simple ondeviceready javascript code of the kind shown here in the PhoneGap documentation everything works great in Chrome, in the emulator, and on the device. I use the command-line method of buildin<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/17b786aedf2c65b3b4ed4afa64532767?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nninetwozero<br \/>\nandroid json api phonegap jquery-mobile<br \/>\nI tried to put a an Android phonegap app with WP serving content. while phonegap app running JQM framework. I did this a couple of time and it worked fine.However, in this new app i did, i had this uncaught syntaxerror unexpected token &lt; My codes to retrieve jsonfunction loadWPCatIndex() {$.getJSON(&#8220;http:\/\/www.skywin.my\/?json=get_category_index&amp;callback=?&#8221;, function(data){console.log(data);plistmenu = $(&#8216;#product_list&#8217;);$.each(data.categories.reverse(), function(i, item) {categoriesID[i]<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n<p>I discovery a place to host code\u3001demo\u3001 blog and websites.<br \/>\nSite access is fast but not money<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.m5zn.com\/newuploads\/2014\/01\/30\/jpg\/e7da807964b1fff.jpg\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Squonk android This is my code,what&#8217;s the matter?Operation result is&#8221;has stopped unexpectedly&#8221;. It can go through when remove the OnClickListener,that is say,that button to click on the binding is wrong?Please help me,thank you!gao.javapackage cn.gao; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.*; public class gao&lt;hellotwo&gt; extends Activity { \/** Called when the activity is first [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6857","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6857","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6857"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6857\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}