How to launch an app inside an application - objective-c

I may be blamed of duplicating this or this or even any of these but really no one answers my issue. I need to launch an app by clicking on a button on my UI, but the application i want to launch has no custom URL Scheme and here my nightmare gets started. I tried to call the app(using NSBundle-path) ect but i could see no way to call that app. Thanks in advance for any answer-even idea.
Question-2) Is there a registery-like system on iOS system? For example, can we add the path of raw apk into a registery and forse it to start? I have a background of C, i can try on myself if it is possible

There are 3 ways to open an app from your app on iOS:
URL schemes
Using the UIDocumentInteractionController to allow the user to open a file in another app
Using private API's
Simple. No there is no registry like system on iOS.

Related

make an AIR desktop application the default web browser

I would like to make my AIR desktop browser be the default web browser on a system, how can I go about and do this ?
I would also like to know how I can retrieve the link that has been clicked (in an email for example) to interact with the application.
thanks !
As far as I'm aware this is impossible in AIR. You can associate your app with file types using the air-app.xml descriptor or by calling NativeApplication.setAsDefaultApplication() (Read about it here). Opening files after using either of these methods will trigger your application to launch with an InvokeEvent (Read Here). You can read a good tutorial for this here.
However, if I understand correctly, you also want your app to take over any HTTP requests from inside any other app. To do this you have to override the protocol default application, which requires a registry edit and (I believe) that AIR can't do that. You may be able to write an external script in C or Java to do that for you (This might help with that).

Can we package our existing HTML5 JS App for Windows 8

I have read some posts on S/O and also around the web. We are producing a HTML5 JS based web app that runs on the web. We are packaging it up for Google apps, and also for phonegap.
Can we package this app for windows 8? Of course, I appreciate it won't use the windows 8 features. But, will the app run none the less, as it stands. So that we can place it in the store and build out windows 8 features as we move forward.
I appreciate this is a slightly non-concise question, but I guess the real point is what is our quickest route to take our existing HTML 5, CSS, JS App and deploy it in the store and get it working on this platform.
In general, the answer is yes. The transition is not seamless, but you will be able to use a ton, if not all, of the application artifacts in Win8. A good test is if you can run it in IE10, you can run the app as a Win8 app. Again, this is a very broad brush - things you need to worry about are things like all scripts files need to be local (no CDN), changes to web and security contexts, and the fact that Win8 is a horizontal paradigm whereas most web apps are vertical. But in general, you should be able to make the move. Usual caveat - your mileage will vary.
Yes, although not recommended, you can package your existing app for Win8. You'll need to add a few bits of code though. The minimum would be to embed your app's start/init code within WinJS's first promise callback, like so:
args.setPromise(WinJS.UI.processAll().then(function () {
// your init code
}
You'll also need to create a couple of icons for the start screen and an image for your app's launch screen.
It is possible that you'll run into a few issues, like some security related restrictions, where you'll have to modify your code to use some native WinJS functions. This all depends on you app's implementation.
You can also check Microsoft's guidelines for migrating a web app to win8, here: http://msdn.microsoft.com/en-us/library/windows/apps/hh465143

iOS: Access to root directory in a jailbroken iPhone

Ok, I used jailcoder.com to patch my xcode project in order to run my app in a jailbroken iOS device and it works. But still I need list some others files located at root folder. I saw some applications that do that but didnĀ“t find the way to accomplish It.
Maybe there's a possibility to run code as root
I don't know exactly which files you need to access, and what permissions they currently have.
Normal apps run as user mobile. If you do need to run your app as user root, then here is one way to do that.
I answered here in a similar question How to get inbox all SMS on iphonse sdk?
It is possible if you have a jailbroken device. You may use jailcoder to fake code signing and then move your app to /Applications folder. This way you can access to any database in your iOS device jailbroken.

Titanium Mobile: execute code loaded from network

I'm writing mobile apps with the help of Appcelerator's Titanium Mobile.
I need to load javascript code (business logic) from our server and execute it on the device. So this is basically dynamically injecting code into Titanium Mobile app. Additional note: this code needs to call a few Titanium's methods.
Can this be done?
Thanks, Peter
Yes this can be done. You can't put this application in the App store as it's against their Terms of Service to download code remotely and execute it.
There are examples in the Kitchen Sink on downloading a file remotely and saving it. That file can be a .js file, and can be included or referenced when your app loads. It can have JSON, functions, whatever in it.
I'm doing this in an app right now for moving JSON objects around, but should be able to run code too.
http://developer.appcelerator.com/question/105001/httpstackoverflowcomquestions4802859titanium-mobile-execute-code-loaded-from-network#185361

How to launch a native OSX app (and pass parameters) from the web?

I'm trying to launch a MacOSX app from a website and pass an authentication token from the web server. I'm trying to do something like myNewURLScheme://myauthtoken (similar to the iTunes itms:// URLs) but this doesn't seem to work. (Admittedly, I'm probably doing it wrong.)
Is this the best way to do it? (If not what is?)
How is this supposed to work? I've tried looking at "Installing a Get URL Handler" in the docs: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ScriptableCocoaApplications/SApps_handle_AEs/SAppsHandleAEs.html, but it doesn't seem to work.
Thanks!
See here for how to get an application to have its own url scheme. You'll want to follow steps 1 thru 3 of georgebrock's post. I'm not sure how you'll get a website to pass the url to the computer though. The easiest way I can think of is to have Mail.app running on the mac and set up a mail rule. The rule can be set up to run an applescript... the applescript launches the application.
http://www.xmldatabases.org/WK/blog/1154_Handling_URL_schemes_in_Cocoa.item
This is the only one that really worked for me! Flawless.