How to close native Blackberry applications programmatically from third party app? - blackberry

I want to develop an app which can "Block the Invocation of some Blackberry native app's" whenever that applications get opened.
My problem is, how can any native application get closed through a background thread of other third party application? I have tried to pass "Escape" key event but it's not passing to the native app through a third party app's thread.
Is there any way to get the menu of the native application (from the background thread of other application) to execute the “close” command of that native application?
I have tried free version of Mr. Safe, from the Blackberry application world. It blocks selected applications successfully. You can see it here: http://appworld.blackberry.com/webstore/content/63110/?lang=en
So I am sure there must be a way to close native apps from another third party app, but don't know how to do this.

I have solved my problem -
My solution is given on supportforums.blackberry.com - solution.
Or you can go directly to main thread - main thread starts form here.

Related

Electron using screen sharing through Electron webview (loadUrl())

I developed a small Electron Dekstop application that handle's login on my webapp and then "load" the webapp through an Electron loadUrl().
We already implemented Jitsi meet in that webapp (with specific UI etc). Everything works fine except the screen sharing.
(The first development was years ago, and since Electron did not allowed custom chrome extension we just didn't bother to make the screen sharing work).
Since then a lot of changes happened and it seems like this project managed to make it work.
I am aware of the solution that allows electron to use the jitsi screen sharing through #jitsi/electron-sdk but i'm wondering whether a solution exists in my case (AKA Jitsi not being implemented directly in Electron, but through a loadUrl()).
Is there a chrome extension that I could add to my electron project allowing chromium to get the JitsiMeetElectron.obtainDesktopStreams function ?
Or is the only solution to implement from scratch jitsi in our Electron project ?
Thanks in advance.

Launching a different ios app, within an app

I'm writing a basic application using xcode 5.1. One of the features I'm interested in trying to do is to launch another app or move to other part of iphone, INSIDE the app already running.
Eg. I have an app with 3 menu options, 1 and 2 do certain tasks as part of this parent app, menu option 3 launches another app that's installed on the phone. I'm not sure if this is possible?
No you can not do that. Besides the documented URL handlers, there's no way to communicate with/launch another app.
This is part of the sandbox principle of apple:
https://developer.apple.com/library/ios/documentation/iphone/conceptual/iphoneosprogrammingguide/TheiOSEnvironment/TheiOSEnvironment.html
What you can do is launch another app by using custom URL-Schemes
http://mobile.tutsplus.com/tutorials/iphone/ios-sdk-working-with-url-schemes/

Is there a way to get programmatically UI hierarchy for 3rd party application on iOS?

I am looking for a way to get programmatically UI hierarchy of 3rd party application.
Couple of constrains:
I am looking for a way to get UI of 3rd party app (so I can't include any library in it or change a code)
It should work on a real iOS device (not on Simulator)
It should work with non jailbroken device.
It should work with native app
I am fine with either:
A desktop tool which can access iOS and get info about an app hierarchy
An iOS app which can get UI hierarchy for 3rd party app while being in the background
I am fine with usage of private API (it won't be submitted to AppStore)
Any ideas (even if they aren't complete solution) are welcome.
SparkInspector http://www.sparkinspector.com is similar to Reveal, but I'm not sure is it able to work with real device.
I recommend DCIntrospect: https://github.com/domesticcatsoftware/DCIntrospect
Also there is Reveal: http://revealapp.com
You can inject the Reveal dynamic library into a third-party application using MobileSubstrate. This can only be performed though via a jailbroken device. Blog post describing the process:
http://www.zdziarski.com/blog/?p=2361

PhoneGap application requires native iOS code for background service?

I have a PhoneGap app and it checks your location every 5 minutes and reports it back etc.. to do this When the app needs to run in put at the background .
For Android I have written native code but for iOS will this work?
I'm not even sure how you would implement native objective c into PhoneGap as they are very different compilers etcthe it pause.
Any advice would be appreciatedWhen it come back to front, it will resume all remaining operation.
You need to write a Plugin to do this. A plugin will allow you to write Objective-C code and link it back to a JS function. Here are a few tutorials:
From Apache
From Adobe
Another
Here is also a big list of Plugins people have already created: iOS Plugins

Embed Adobe Air/Flex application inside a standard iOS application

I have a native (Obj-C, standard Xcode project) application and I'd like to integrate a partners iOS application (or specifically, it's functionality) into it as just another view in my application. The problem is that their application is a Flex/Air app. I really don't understand the Adobe compilation process on how it gets from a bunch of flex code down to an IPA. I don't see intermediate projects, shared objects, etc on the disk to produce that IPA. It looks like it doesn't rely on the Apple tool chain... as I understand it, you can produce the IPA on Windows as well.
Is there any way to build that Flex app in such a way that I can import it into Xcode so I can link against it and use it as a library from within my application?
While I specifically used iOS as an example since that is the most important platform, we'll want to apply this solution to our respective Android and Blackberry 6 apps as well.
No, you cannot embed an application within another application. This is true for all applications. Only thing you could do is get the swf of your partner's code and embed that into an Air application, but since you're not using Actionscript/Flex, it won't be possible.
Only other way would be to have an app link to the other application.

Resources