User Tools

Site Tools


plugins:building_an_apk

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
plugins:building_an_apk [2016/12/22 14:18]
administrator second half
plugins:building_an_apk [2018/12/30 13:28] (current)
Line 9: Line 9:
 <code>img = app.CreateImage( "Img/myface.png" );</code> <code>img = app.CreateImage( "Img/myface.png" );</code>
 not this: not this:
-<code>img = app.CreateImage( "/sdard/DroidScript/MyApp/Img/myface.png" );</code>+<code>img = app.CreateImage( "/sdcard/DroidScript/MyApp/Img/myface.png" );</code>
 ===== Extracting assets ===== ===== Extracting assets =====
 If your app is running a web server or streaming video from assets, then you will need to extract these assets from your APK to the internal sdcard when your app is first run. These assets can then be served/streamed from the there instead, because assets cannot be served or streamed from inside an APK. If your app is running a web server or streaming video from assets, then you will need to extract these assets from your APK to the internal sdcard when your app is first run. These assets can then be served/streamed from the there instead, because assets cannot be served or streamed from inside an APK.
Line 39: Line 39:
 The **'homeScreen'** setting is only used for creating home screen launchers apps, public kiosks and machine control type apps which totally take over the Android device, so don't use this option unless you know what you are doing! The **'homeScreen'** setting is only used for creating home screen launchers apps, public kiosks and machine control type apps which totally take over the Android device, so don't use this option unless you know what you are doing!
  
-If you want your app to handle certian types of file when the user tries to open them or use the 'Share via' option, then the **'pathPattern'** setting allows you to specify which file types your app accepts. For example, if you were writing a text editor, then you would use the** *\\.txt** pattern.+If you want your app to handle certain types of file when the user tries to open them or use the 'Share via' option, then the **'pathPattern'** setting allows you to specify which file types your app accepts. For example, if you were writing a text editor, then you would use the** *\\.txt** pattern.
  
 See the **'Shared Data'** and **'Receive Intent'** samples in DroidScript for demos of how to handle file and text in your app. See the **'Shared Data'** and **'Receive Intent'** samples in DroidScript for demos of how to handle file and text in your app.
plugins/building_an_apk.1482416301.txt.gz ยท Last modified: 2016/12/22 22:18 (external edit)