snipt

Ctrl+h for KB shortcuts

Text only

Cordova/Phonegap: Install Jshybugger

1
2
3
cordova plugin add https://github.com/jsHybugger/cordova-plugin-jshybugger.git

Then add your "jshybugger_license.xml" in platforms/android/res/xml/
https://snipt.net/embed/f77b1fff65ae95fbacfd238478ca9e3a/
/raw/f77b1fff65ae95fbacfd238478ca9e3a/
f77b1fff65ae95fbacfd238478ca9e3a
text
Text only
3
2019-06-15T08:37:44
True
False
True
Sep 15, 2014 at 05:15 AM
/api/public/snipt/136470/
cordovaphonegap-install-jshybugger-8c121d4b
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>cordova plugin add https://github.com/jsHybugger/cordova-plugin-jshybugger.git </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>Then add your &quot;jshybugger_license.xml&quot; in platforms/android/res/xml/ </span></pre></div> </td></tr></table>
jsHybugger

Text only

Android/Cordova: http requests not working on jarsigned app

1
2
3
4
5
Only works on debug.
http works, https doesn't.

The problem could come from the certificate:
http://stackoverflow.com/questions/20036260/phonegap-android-app-ajax-requests-to-https-fail-with-status-0
https://snipt.net/embed/b57a79b32ec8fc0a20de53764adc8a19/
/raw/b57a79b32ec8fc0a20de53764adc8a19/
b57a79b32ec8fc0a20de53764adc8a19
text
Text only
5
2017-01-01T06:31:45
True
False
True
Jul 29, 2014 at 11:45 AM
/api/public/snipt/135973/
androidcordova-http-requests-not-working-on-jarsigned-app-50e8fd6a
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Only works on debug. </span><span id="L-2"><a name="L-2"></a>http works, https doesn&#39;t. </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a>The problem could come from the certificate: </span><span id="L-5"><a name="L-5"></a>http://stackoverflow.com/questions/20036260/phonegap-android-app-ajax-requests-to-https-fail-with-status-0 </span></pre></div> </td></tr></table>
android, certificate, http

Text only

Zipalign: command not found

1
2
3
4
Happens when you update the SDK
It is now in sdk/build-tools/20.0.0

You should thus add it to your PATH
https://snipt.net/embed/c2168ef12876263dd49d0e957c9f989b/
/raw/c2168ef12876263dd49d0e957c9f989b/
c2168ef12876263dd49d0e957c9f989b
text
Text only
4
2016-12-29T06:37:38
True
False
True
Jul 15, 2014 at 09:34 AM
/api/public/snipt/135771/
zipalign-command-not-found-4b12628a
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Happens when you update the SDK </span><span id="L-2"><a name="L-2"></a>It is now in sdk/build-tools/20.0.0 </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a>You should thus add it to your PATH </span></pre></div> </td></tr></table>

Text only

iPhone: Screenshot without having the device

1
2
3
Launch emulator with the device wanted.
Click Edit / Copy screen
Then Paste it in Photoshop or other
https://snipt.net/embed/be388967e7c450fdf3b0fa52b876555b/
/raw/be388967e7c450fdf3b0fa52b876555b/
be388967e7c450fdf3b0fa52b876555b
text
Text only
3
2019-07-12T16:13:44
True
False
True
Apr 26, 2014 at 04:07 PM
/api/public/snipt/133121/
iphone-screenshot-without-having-the-device-8b895857
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Launch emulator with the device wanted. </span><span id="L-2"><a name="L-2"></a>Click Edit / Copy screen </span><span id="L-3"><a name="L-3"></a>Then Paste it in Photoshop or other </span></pre></div> </td></tr></table>
ios, ipad, iphone, screenshot