windows phone 7 script/interpreted available languages? - windows-phone-7

I found so far javascript and IronRuby is available? My main intention is to get information about available way to have run time execution in wp7 application. In other words I want to achieve dynamic behavior without recompiling my app. Wish to listen your input.

As a general rule this isn't available as if true dynamic behaviour was avbailable it would invalidate the purpose of having a certification process before being allowed into the marketplace.
If the logic of the app could be completely changed then the certification process would be pointless.

Related

is it possible to track processes in windows with electron js?

I want to build a windows app using ElectronJS framework. The main feature is to monitor user's process list in Windows. For example, if app finds example.exe it will make api request on my server. Now i can't find any specific information how exactly it is possible to do with Electron. Can anybody please tell does it make sense at all to start working with Electron in this case?
Thanks.
Now i can't find any specific information how exactly it is possible to do with Electron.
That's because you don't need an Electron-specific solution. Electron helps you build desktop applications using Node.js by providing abstractions on top of all sorts of APIs like Chromium for the rendering and execution of HTML, CSS, and JavaScript or system-specific APIs (for displaying notifications, showing dialogs, etc.).
Electron, for the most part, does not force you to use its APIs and you're free to use any of Node.js's core APIs and other packages from npm. That means if you don't find an Electron-specific way to solve a certain problem, just search for a way to solve the problem using Node.js and it will most likely work.
The real question, therefore, is: Is there even any reason to use Electron in this case?
The main feature is to monitor user's process list in Windows. For example, if app finds example.exe it will make api request on my server.
For this feature alone you don't need Electron. You don't need a graphical user interface.
But when it comes to displaying the processes (on the computer your application is running on) – maybe in a Task Manager-like GUI – Electron would be a good fit because it allows you to create windows. "Pure" Node.js application, on the other hand, run only inside the terminal which is sometimes enough.

Convert server-generated site to PhoneGap/Cordova app?

What's the lowest effort way to get a site with server-generated pages (in my case Laravel/PHP) running as a PhoneGap/Cordova app? I'd rather not have to convert the whole thing into a single page app before importing into PhoneGap/Cordova.
Is it possible to use PhoneGap/Cordova as a very thin wrapper and still load each page live from the server? And if so, how exactly please? I don't think we need any native phone APIs.
Reason for the whole thing is my client insists on "having an app" even though obviously our site will work in a mobile web browser and can have an icon on the user's phone.
Many thanks
Unfortunately for your app to pass Apple App store approval it will have to provide some basic functions and display correctly without an internet connection. This means at a minimum, if you plan to generate content on a server you will probably need the Cordova plugin for network information:
https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-network-information/
I would make sure you are familiar with the Apple Human Interface Guidelines:
https://developer.apple.com/ios/human-interface-guidelines/overview/design-principles/
You will probably also need to bundle any JavaScript. Apple is very picky about apps that download code (this can include JavaScript).
This is a section from the iOS developer Agreement.
3.3.2 Except as set forth in the next paragraph, an Application may not download or install
executable code. Interpreted code may only be used in an Application if all scripts, code and
interpreters are packaged in the Application and not downloaded. The only exceptions to the
foregoing are scripts and code downloaded and run by Apple's built-in WebKit framework or
JavascriptCore, provided that such scripts and code do not change the primary purpose of the
Application by providing features or functionality that are inconsistent with the intended and
advertised purpose of the Application as submitted to the App Store.
The following is my opinion only
My fear is that if you go at it in a low effort way, best case you will fail app approval. Worst case it will leave users with a poor experience or worse, a poor image of your client. Do it properly and give the app some extra functions that you can't have in a browser alone. I would advise your client of this and see if they would like a proper app that engages their customers and provides them with a great experience.

How to track WinRT applications (in Win32 it was simple)?

In "old" times I created simple tool for Windows users, which tracks what they were doing in the front of computer (where simple activity monitor). I was using Win32 api and functions like GetForegroundWindow, GetWindowThreadProcessId, etc.
Yesterday I installed new Windows 8 and tired to run my program. I got 50% success: for "classic" desktop it works like always:).
For Metro UI I just got one application: WWAHost :( without any details.
So my question is: is there a any way for tracking active application in Metro UI?
Thanks for help
UPDATE:
I'm trying to access Metro UI app from Win32, I know that accessing Metro app from another Metro app is impossible
You see, in WinRT, your application is the top-most application. And when your app is not the top-most application then your threads are suspended and the kernel will not schedule any more operations for your app. End of story.
This means what you are wanting to accomplish cannot be done in WinRT. You are thinking more like a resident app or a service with access to the desktop. Those apps have two advantages. 1) they are always running. And, 2) they have the API to do what you are wanting.
WinRT intentionally puts apps in a sandbox so that the user's experience, performance and battery life are protected. Your scenario and scores more like yours underscore the continuing need for desktop apps. (as long as there is a continuing need for those types of apps ;)).
Sorry, if this is bad news.
As for enumerating other apps. This is also not possible. You cannot know if another app is installed or if it is running. You can call out to another app through protocol activation or file activation or (in a sense) through the share contract. But you are unaware if they get the message and if the user has it installed in the first place. And this is by design.
It is worth mentioning that you can pinvoke to Win32 APIs in your WinRT application. It causes lots of problems and can create a headache to get certified into the store. But even then, not all APIs are open to you. And you will find this particular use case is a non-starter.
I am sure this will not be possible. With Windows 8 'Metro' only a single application is active. All other applications will be in a suspended state whilst the topmost application is running. This makes it impossible to write an application that monitors other applications which are currently executing.
See the numerous articles on the Windows 8 app lifecycle.

No way to handle internationalization (i18n)?

I'm wondering if there is any way to handle i18n while building HTML/Js apps using trigger.io (forge).
By the way, there is also no way to detect user's locale on devices, workarounding by inspecting User Agent ( or in my case - a FB connect app - asking FB to get the user's locale)
Internationalization is a must have for any serious app ...
I'm currently "hacking" this by creating several JSON files (one per locale), holding same keys in the appropriate language.
1: Is there any plan of detecting/getting user's locale with forge Js API ?
2: Is there any plan to handle automated i18n while building apps ?
Tks.
You could easily write a Trigger.io plugin to detect the device language for you. Here are some resources on how to do this:
Android: http://developer.android.com/reference/java/util/Locale.html
iOS: Getting current device language in iOS?
As soon as you have the language string you could then use one of many js plugins that handle localization for you OR do it on your own. Having multiple json files with the localized strings and loading one of them on demand doesn't sound too hacky to me.
PS: Of course, if you plan to have a mobile browser version of your app you cannot rely on native plugins. In this case you'd have to use a different solution. Take a look at JavaScript for detecting browser language preference.
There are two things to translate: your JS/HTML app and the native elements.
JS/HTML
Use window.navigator.language to get the locale.
Use some library, e.g. https://github.com/wikimedia/jquery.i18n
Native
The native elements aren't shown that often, but do contain some crucial things, such as permissions dialogs ('The app wants access to your photos').
There is currently no support in trigger.io for translating this section that I know of, i.e. they will all be in english.
But as I understand it trigger.io could add support for this fairly easily, by just making it possible to 'switch' on more languages in config.json, since there are already translations for these dialogs built into iOS, just a matter of 'flagging' an app as having support for the language.
Again, I'm not 100% sure on the native part, but this is how I think it works.

after using capdetection tool application stopped opening

i used capdetection tool for generating capabilities of of my wp7 app. when i pasted the capabilities generated by the tool, application build was successful but after installing in device application was not opening, after that i reverted back the previously present capabilities in manifest file and then app was launching fine. Is there any problem with capdetection tool. Can some one tell me the problem about the tool, Is that a certification requirement using capdetection tool for declaring capabilities in manifest file?
The tool exists so you can test your app with the capabilities it will be given when available through the marketplace. If you ignore the situation you have described you could end up failing marketplace certification or end up with an app that is unusable.
You are likely relying on a capability that the tool can't detect through static analysis.
I woudl strongly recommend you work out what this capability is and use it in a way that the tool can detect.
You do no need to run the tool for certification, they run it during submission and replace the contents of the file regardless of what you put in there.
I believe the main purpose of it is so you can know in advance what services are going to be requested, giving you a chance to check they are correct.
For example some ad controls include location tracking and if you unexpectedly get that capability added on submission, you will probably fail as you need to ask the user and show privacy statements to have that capability.

Resources