OTA midlet issue - eclipse

After installing my midlet to a phone over the air, I'm getting a blank page from browser which need to be closed manually.
Any idea how to prevent it?
I read that JAD files are no longer required, as the all info located in JAR. I tried to use the JAR files instead of JAD's, but with them the browser first downloads and only then offers to install the middlet. With JAD it offers to install first, which IMHO more user friendly. Is this the expected behavior, or it can be improved and remove the need in JAD's?
I'm using Eclipse MJT (Previously called EclipseME).

A JAD file makes it easier to sign and deploy your application.
I would definitely not expect all phones to be able to install an applicaiton from the JAR alone.
Without more information, I can see 2 reasons why a blank web browser page would be left on the screen after a jad install:
bug in handset firmware. Not only can the phone not download the jar without launching a full web browser but it also forgets to close the browser window. It happens.
your application asks the phone to notify a remote computer after installation. There is a standard application property for this in the MIDP specifications. it could be in the jad or in the manifest.

Related

Upgrade Flutter debug build on device (using VSCode)

I have an app that is just for personal use. I can run it from VSCode directly (just run & debug). It saves its data onto its assigned "disk space" on the device. However, when I close the app and restart it (no longer connected to my dev PC), it starts up an old version of the app - obviously the one I last really installed on the device.
The only way I know to have the latest version on the device would be to deinstall it, then install it via devPC. Unfortunately, this deletes the local files of the app.
Is there a way to upgrade the installed version directly from the dev PC? I think it is possible to manually install the newest apk after I built it, but is there a way as easy as "run & debug", with the only difference that the latest version of the app starts when I restart the app?
There are no option to upgrade the app locally from PC. Every time you connect the phone and press Run & Debug, it will rebuild the app again.
In order to persist your data through different app versions, you should consider integrating some simple backend structure to your app.
You can think of creating a database which will provide you data every time you open the app. One easy option you can try is to integrate the Cloud Firestore in your app. You can follow this tutorial here to understand the implementation and feel free to ask if you need any further support.

Installing a Windows Mobile application on a Windows CE device

A client has asked us to "revive" an old Windows Mobile application that is used by their receiving department.
At some point they wrote a custom Windows Mobile 6 app for Windows CE devices (a Motorola MC55A to be specific).
They have a project in place to replace this app - but it won't happen for a bit and they want to install the custom app on some newly refurbished devices they found as an interim solution.
I found the source code for the application. It even contains an installer project that generates the CAB files.
What I do not know how to do is get the compiled app and installer onto the device.
I am using one of their legacy computers to build the app and connect to the device. The computer has Windows Mobile Center installed and when I see the device connected - I the ability to add / remove programs on the device.
Not sure if this is the route I should be going. Ideally I want to put the installer behind a web page and just have each device download the installer to install the app.
This stuff is pretty dated - I am having a hard time on the specifics of deployment.
You can put the CAB file on the device and launch it manually using the file explorer on the device to install the files.
Some industrial devices like Honeywell, Intermec, Motorola, Symbol, Zebra and others support the auto install of cab files, if the files are put in a special folder on the device. For former Intermec Honeywell devices, this folder is called \Flash File Store\CabFiles. If a cab file is placed in this folder, it will be installed on the next reboot.
You may also put a link to the CAB file on a web site and open that web site within the Internet Explorer on the device. The device will ask for the installation, when the file link is tapped. Please note that some web server like IIS by default block CAB files from being loaded! If so, you need to configure the web server to allow cab file downloading.
Many months later, but I wanted to answer this for future reference, when you DEPLOY Solution, Visual Studio (2008 was the last one supporting windows mobile apps) will ask you for a target device or emulator, here you can select the device and it will be installed, there will be no entry in add/remove programs on the device unless you install it via an installation CAB. You must create an "Smart Device Cab Project" and configure it for your solution.

ionic installation and build difficulties

Creating a new ionic project and doing an android build downloads innumerable packages; if anything goes wrong in this process, many things can get corrupted. I am now on my fourth re-install of Windows, for example.
Is there a way of downloading everything required for an ionic install and android build first so that I have all the downloads safely in place before I start on installation? This would also give the benefit of being able to create a number of projects without having to download everything again.
What I do now make copies of folders and base new projects on folders that are correctly downloaded and functional. Even a simple ionic project downloads and creates a folder of approx 200 MB. I find that this process can often go wrong.
On a good day, I can run
ionic start <projectName> blank
and answer YES to the question "Would you like to integrate with Cordova"
This then generates a folder of about 200 MB. If I am unlucky something goes wrong and this fails.
I check that the folder is correct by running
ionic serve
and verifying that the browser shows a basic page.
I then run
ionic cordova build android --debug
This increases the folder size to around 270 MB. Finally, I confirm that I can FTP the *.apk file to a website and install it to an android device.
I then make a copy of this folder and use that copy as a basis for all new projects. I never run "ionic start" again.
I have never had problems with the installation of other development environments, so this seems very unusual. I can only assume that the complexity of the installation can lead to faults. Achieving one correct download and then copying that is how I handle these problems. The best time for me in Scotland is to do installations in the middle of the USA night.

UWP's 'Add-DevAppPackage' Powershell script checks for a developer licence. This is an issue for Sideloading?

I'm developing a LOB (Line-of-Business) UWP project, we're hoping to distribute the app as a .appxbundle file, alongside a .cer and a Powershell script. This is what is generated in the package for you when you generate a bundle from Visual Studio by selecting Project->Store->Create App Packages...
The problem I have is that the Powershell script, Add-DevAppPackage.ps1, has a check for a developer licence in it. Specifically it calls the powershell cmdlet Get-WindowsDeveloperLicense. If this doesn't return anything it sets a variable which eventually calls Show-WindowsDeveloperLicenseRegistration which shows a popup forcing the user to put their Windows 10 device into 'Developer Mode'. If the user doesn't do this, then the Script fails and the user can't install the app.
If we remove this check for a Developer Licence, the script acts as I'd expect and Installs the App, alongside the certificate, with no issues when the Windows 10 machine is either set to 'Sideload Apps' or 'Developer Mode'. The problem now arises when the users device is in the mode of 'Don't use developer features'. The script crashes.
Is there a way of finding out if the current device is in 'At Least' Sideload apps mode, and if it isn't, show a dialog to prompt the user to enable it?
Currently users have to enable Developer Mode to be able to sideload an app, which I'd prefer they didn't have to do. I'd fully expect users to only have to enable 'Sideload apps'
Is there a way of finding out if the current device is in 'At Least' Sideload apps mode, and if it isn't, show a dialog to prompt the user to enable it?
AFAIK, there is no way to detect whether the Sideload apps mode is enabled for now. And we have no access to show a dialog to prompt the user to enable the sideload apps.
The problem now arises when the users device is in the mode of 'Don't use developer features'. The script crashes.
This is because when install apps in Sideload apps mode, you need to install the app with its trusted certificate. All UWP apps must be signed with a certificate.
Currently users have to enable Developer Mode to be able to sideload an app, which I'd prefer they didn't have to do. I'd fully expect users to only have to enable 'Sideload apps'.
Before create the package of your project, you can open the manifest file and in the Packaging lable:
Here you can choose which certificate to use to sign your app. If you don't want to modify this, it's OK, cause when you packaging your app, a certificate file will automatically generated, and you said you are hoping to distribute the app as a .appxbundle file, alongside a .cer and a Powershell script. In Sideload apps mode, the Powershell script file is not needed. You can just copy the .appxbundle file and a .cer file, and
Enable the Sideload apps mode.
Click the .cer file to trust this certification.
Click the .appxbundle file to install your app.
When the Sideload apps mode is enabled, please don't use .ps1 file to install the app.

Can we bundle Chrome installer with Packaged App?

We have built Packaged App for our Web Application.
Is it possible to provide Chrome installer in a Packaged App bundle or somehow trigger Chrome installation in the background from Packaged App.
Currently Chrome Browser is separate Dependancy for using Packaged Apps so it is difficult to convince Users to first install Chrome browser.
Also, people can install the App for any location as a complete package.
It's not possible yet, but you can star http://crbug.com/173762 to get notified when it does work.