User Tools

Site Tools


getting_started:faq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
getting_started:faq [2015/11/14 01:25]
118.148.148.82
getting_started:faq [2017/10/21 14:57] (current)
Line 1: Line 1:
 ====== Frequently Asked Questions ====== ====== Frequently Asked Questions ======
-This faq is expected to grow significantly over time. Please feel free to add to it or correct any mistakes.+This faq is expected to grow significantly over time. Please feel free to add ideas to it or correct any mistakes.
 ===== What measurements does DroidScript use? ===== ===== What measurements does DroidScript use? =====
 In order to maintain the scale of graphical objects in devices with different screen resolutions and orientations, all positioning and sizing values are given as a decimal **fraction** of the screen width or height.  In order to maintain the scale of graphical objects in devices with different screen resolutions and orientations, all positioning and sizing values are given as a decimal **fraction** of the screen width or height. 
Line 22: Line 22:
 The easiest way to do this uses the **[[getting_started:wifi_ide#using_uploaded_images|Wifi Ide]]** but it can also be done directly on your phone/tablet using your file-manager. The easiest way to do this uses the **[[getting_started:wifi_ide#using_uploaded_images|Wifi Ide]]** but it can also be done directly on your phone/tablet using your file-manager.
  
-There are more notes there about the App icon requirements as well. +There are more notes there about the App icon requirements as well. See... [[getting_started:wifi_ide#App Icon|App Icon]]
 ===== What is an SPK and how do I use it? ===== ===== What is an SPK and how do I use it? =====
 An SPK is a DroidScript package.  An SPK file is generated automatically by the DroidScript app when you share your app.  To create an SPK file, long press on your script from the main DroidScript screen and select "Share via Email" You can either proceed with sending the SPK to yourself or someone else via email, or cancel and browse the Android filesystem to get at your SPK file.  The SPK will be located in the .DroidScript/Temp directory. An SPK is a DroidScript package.  An SPK file is generated automatically by the DroidScript app when you share your app.  To create an SPK file, long press on your script from the main DroidScript screen and select "Share via Email" You can either proceed with sending the SPK to yourself or someone else via email, or cancel and browse the Android filesystem to get at your SPK file.  The SPK will be located in the .DroidScript/Temp directory.
  
-To use an SPK, you need to import it into DroidScript.  Once you've got the SPK,Press on it. DroidScript will open, Wait for a Second or two, A dialog Box will appear whether you trust the source or not. Press yes. SPK will be created and you can see app.+To use an SPK, you need to import it into DroidScript.  Once you've got the SPK,Press on it. DroidScript will open, Wait for a Second or two, A dialog Box will appear to ask whether you trust the source or not. Press yes. SPK will be created and you can see app.
  
 ===== How can I get the Display Size? ===== ===== How can I get the Display Size? =====
Line 37: Line 37:
 <code>btn.SetOnTouch(function({myCallback(arg1,arg2...)}))</code> to pass arguments to the callback, but it doesn't work. <code>btn.SetOnTouch(function({myCallback(arg1,arg2...)}))</code> to pass arguments to the callback, but it doesn't work.
  
-Sorry, DroidScript does not support anonymous functions as callback parameters.\\  +Sorry, DroidScript does support anonymous functions as callback parameters only beginning from version >= 1.4.5.\\  
-This is due to a limitation within the Android WebView->Java bridge.+This was due to a limitation within the Android WebView->Java bridge.
  
 =====How Do I Implement In-app-purchases in my DroidScript app?===== =====How Do I Implement In-app-purchases in my DroidScript app?=====
Line 126: Line 126:
 If your ad network provides HTML ads( which almose every one of them does ) then you can use it in WebView. If your ad network provides HTML ads( which almose every one of them does ) then you can use it in WebView.
 For  HTML ads, your network will give you link and you have to use it in <script src> tag.(Chris Hopkins told this useful information) Something like this : For  HTML ads, your network will give you link and you have to use it in <script src> tag.(Chris Hopkins told this useful information) Something like this :
-     <code>webView.LoadHtml('<html><head><script src="Link"></script></head></html>');</code>+<code> 
 +webView.LoadHtml('<html><head><script src="Link"></script></head></html>'); 
 +</code>
  
      
getting_started/faq.1447464306.txt.gz · Last modified: 2015/11/14 09:25 (external edit)