Windows Phone 10 install

92 views
Skip to first unread message

Bryan Buchanan

unread,
Jun 14, 2016, 1:18:30 AM6/14/16
to CodenameOne Discussions
So I wanted to try out the new Windows 10 stuff, got a Lumia 640, updated to Windows 10 Mobile.

I sent a Windows build (without setting any Windows specific properties), which built OK, and got emailed a link to the build.

I've changed the setting for sideloading apps from the link on the blog post. The binary has downloaded and when I click on it, I get asked if I want to install, say yes and nothing appears to happen. No app shows under "Recently Added" or in the alphabetic list. Am I missing something ?

Bryan Buchanan

unread,
Jun 14, 2016, 5:36:32 AM6/14/16
to CodenameOne Discussions
I found an article that said side loading an app can silently fail and to install Field Medic to log the output, but nothing is being logged.

Steve Hannah

unread,
Jun 14, 2016, 11:53:22 AM6/14/16
to codenameone...@googlegroups.com
We still need to document a few things.

I suspect you did a build for x86.  To cut down on download size, I set the default build platform for "debug" builds to be "x86".  You can specify the platform using the uwp.platforms build hint.

e.g.

uwp.platforms=x86    (build only for x86 ... should work on x64 also)
or
uwp.platforms=x86|ARM   (build bundle that will run on both x86 and ARM).
or
uwp.platforms=ARM  (build only for ARM)

(Note you can target x64 also -- i.e. uwp.platforms=x86|x64|ARM, but I don't think there's any benefit to the the x86 binary will run on x64 machines.... I could be wrong though).

For release builds, the default value (if you don't specify it yourself) is a universal build (i.e. uwp.platforms=x86|x64|ARM).

Here is a list of some of the build hints that you can use with the UWP build target:

uwp.build.version  (default 1.0)
    - UWP apps require a version number like 1.0.0.0.  This build hint will optionally be appended to the app version to form a full version number.  We should set up the codename one client to increment this build hint with each build.  (To be clear, you should use a number like "1.0" in this build hint, and not "1.0.0.0".  The 2 part number will just be appended to the codename one version number in your project properties.

uwp.appid  (default XXXXX.<packageName>)
     - Unique app ID for this app - used by Windows Store.  
uwp.displayName  (default to app's display name)
     - Display name for the app as registered in windows Store.  Must match windows store.
uwp.platforms (default x86)
      -  The platforms to build for.  Allowable values x86, x64 or ARM.  (You should also be able to provide pipe-concatenated  values combining multiple platforms (e.g. x86|x64|ARM)
uwp.buildType  (default "debug")
     -  Allowable values: debug, release
     -  debug builds will produce a zip file with a .appxbundle inside that can be sideloaded directly onto a device.
     -  release builds will produce a .appxupload file that can be uploaded to the windows store.


Best regards

Steve

On Tue, Jun 14, 2016 at 2:36 AM, Bryan Buchanan <bry...@webbtide.com> wrote:
I found an article that said side loading an app can silently fail and to install Field Medic to log the output, but nothing is being logged.

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/b1beb018-f5ec-45df-a316-75d4d18951af%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One

Bryan Buchanan

unread,
Jun 14, 2016, 7:37:37 PM6/14/16
to CodenameOne Discussions
Thanks Steve - added these hints (not sure if the syntax is correct):

codename1.arg.uwp.buildType=debug
codename1.arg.uwp.platforms=ARM

but still no joy. Is there anything I can set (apart from Field Medic which doesn't seem to do anything) to get some debug info ?

Steve Hannah

unread,
Jun 14, 2016, 8:20:02 PM6/14/16
to codenameone...@googlegroups.com
Error messages are not microsoft's strong point :)

Can you walk me through your installation steps?  (E.g. turning on developer mode, how you got the app onto your device, any observations at each step).

Best regards

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.

For more options, visit https://groups.google.com/d/optout.

Bryan Buchanan

unread,
Jun 14, 2016, 8:45:50 PM6/14/16
to CodenameOne Discussions
Phone: All Settings -> Update & Security -> For Developers -> Sideload Apps

Netbeans: CN1 -> Send Windows Phone build. Only settings are those two from earlier email

CN1 website Dashboard: click email link

Phone: Edge -> read email via Gmail, click on link, downloads binary -> File Explorer -> Downloads -> click on file, say "Yes" to install message -> no error, and no app in "Recently Added".

I mainly only use Android, and find iOS completely unintuitive, but Windows is even worse (not that it's all that relevant to the issue at hand).

Steve Hannah

unread,
Jun 14, 2016, 9:41:16 PM6/14/16
to codenameone...@googlegroups.com
For the first step, try Developer mode instead of sideload apps, and see if that makes a difference?

Best regards

Steve

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.

For more options, visit https://groups.google.com/d/optout.

Bryan Buchanan

unread,
Jun 14, 2016, 10:36:57 PM6/14/16
to CodenameOne Discussions
Same result - still no joy.

The phone has just updated itself with something, and I've retried with both the developer and sideload options and no difference, and no error message.

Shai Almog

unread,
Jun 15, 2016, 1:00:02 AM6/15/16
to CodenameOne Discussions
We'll try to reproduce this on our end and post a guideline to getting the app onto the device.
FYI you can probably build with "include source" and run the project in visual studio, this might allow you to run on the device or at least get a better error message...

Bryan Buchanan

unread,
Jun 15, 2016, 1:15:58 AM6/15/16
to CodenameOne Discussions
Thanks, although I'm not too sure what else there is to do - seems like the procedure Steve has given should work fine. Windows can obviously parse the binary that is being installed because it displays the correct app name, but then gives you no indication of success or failure, which is pretty lame.

Bryan Buchanan

unread,
Jun 15, 2016, 4:17:21 AM6/15/16
to CodenameOne Discussions
FYI, I created a new CN1 starter project, built it OK for Windows, but it also silently refuses to install.

Shai Almog

unread,
Jun 16, 2016, 12:26:54 AM6/16/16
to CodenameOne Discussions
We were able to reproduce the problem and it's a bit of a layered problem with a few separate causes.
I don't think we'll have a fix for this Friday but we're working on it.
Reply all
Reply to author
Forward
0 new messages