I have a requirement like integrate hybrid app into ios application? Is it possible or not? Currently iOS application accessing SUP server as middileware and downloading the hibrid app. Now i want to change as look and feel like native. How to custamize(integrate) the both codes.
Thanks in advance..
I find the solution for this issue. Just follow the below links:
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01853.0222/doc/html/vhu1333388244905.html
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01853.0222/doc/html/vhu1333388244905.html
Here as a developer we have to take bit care of 2 things. In these steps chance to do mistake:
1) Adding hybrid app folder: While adding the hybrid app folder should select second option.
2) Resource path for hybrid app:
suppose to give resource path like this in iOS.
NSString *path = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:#"HybridAppFolderName"];
But here just give to : NSString *path = #"HybridAppFolderName";
I hope this will help to you..
Related
I wonder how I can get a list of applications installed on my iphone from Objective-C (Foundation Framework).
Does anyone can help me?
I also wanted to know if you can launch an app from within my application.
Thank you very much to all
No, it is not possible as far as i know. Application are sandboxed in the iOS and there is not such API to retrieve the list of installed apps ...
There is no way to determine which applications are installed on iPhone.
But, there's a thing called URL Schemes, some applications registers those and you can communicate with them.
http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html
NSString *url = [NSString stringWithFormat: #"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f", currentLocation.latitude, currentLocation.longitude, coordinate.latitude, coordinate.longitude];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
I am trying open Maps application on iPhone from my application to show direction between two location. But, it is showing written directions in safari from google rather than opening maps application. Can anybody help me out.
You can launch other apps from your app. However, maps should respond to the http://maps.google.com schema. Typically, http://maps.google.com/ should launch the Maps application but I'm not sure why it is not.
Maps also supports maps:// and mapitem:// URL Schemes.
Update
The iOS Simulator does not have the Maps app, so obviously this isn't going to work in the simulator. Works as expected on a physical device though.
I'm learning iOS programming. I was wondering if there is any way to show the icons of all the running apps in the phone. I know how to get a list of apps that are running currently, but is it possible to access their icons?
If not, what is the best way to do this? Crawl the appstore for icons and store it in the app?
As far as I know there is no API for getting the current running apps in iOS (but there is something like this for Android).
If you want to show only the currently running app icons, how will crawling appstore help?
If you cannot do it directly through some API trickery, how about a sideways workaround? If you know the names of the apps that are running, you could build a process that grabs the app icons through the iTunes Store Search API (using NSData's initWithContentsOfURL: method (docs), or with NSURLConnection and its delegates).
It might be a bit convoluted, but is probably the most straightforward way of getting the icon of any app that might be running.
I have tried to grab app icons using the API and I make it!
Take an example of app yelp, the premise is you get the buddleid of this app, which you can refer to Finding list of installed apps on iphone
And https://itunes.apple.com/lookup?bundleId=com.yelp.yelpiphone
helps to get the information in the form of json. Use the value for key "artworkUrl60" to get the icon of yelp
I need your help to know regarding integrating linkedin with my iPhone Application.
I do Googling and am able to create an API for LinkedIn. Using link.
But since I am newbie, I stop here. I have both API Key and Secret Key, But I don't know how do I use it to make it Successful in iPhone Application.
So it's my request to you all to suggest me proper way. Maybe I will learn something new from you.
For other folks looking for sample iPhone applications for LinkedIn, I wrote a sample client which is on GitHub (which was presented at the Silicon Valley iOS Meetup last year):
https://github.com/synedra/LinkedIn-OAuth-Sample-Client
Please try LIExplorer for iOS. It seems to be a promising library which provides LinkedIn authentication and API calls. It also manages token caching.
https://github.com/vijayviswas/LIExplorer
Download a library from : https://github.com/NasirMalik/LinkedIn-iOS-Status
In this library .c file is also used that's why use compile source as: Objective-C (in build settings) instead of file type.
Write this code in your click event:
profileTabView=[[ProfileTabView alloc] init];
profileTabView.parentVC=self;
profileTabView.view.frame=CGRectMake(0, 0, profileTabView.view.frame.size.width, profileTabView.view.frame.size.height);
[self.view addSubview:profileTabView.view];
Is it possible to write a webapp, then embed it in a native app so it can be launched without data and sold through the app store?
The Pre makes it easy to reference files in the local file structure, so it's very easy to build a webapp (HTML, CSS and Javascript) and embed it into a native app.
Is it possible to take the same plain HTML, CSS and Javascript (no Mojo/Webos-specific code) and embed it in the same way into a native iPhone app? This would make it seem to the user as if the icon in the home menu launches a webapp, but the app can be accessed without any data and can be sold through the app store.
Thanks,
~J
Within my application, I have a complete HTML-based manual that I use a UIWebView to display. The HTML, CSS, and images are all stored locally in a Help directory within my application bundle. I simply load the first page using code like the following:
NSString *path = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:#"Help"];
NSURL *helpURL = [NSURL fileURLWithPath:[path stringByAppendingPathComponent:#"helpintroduction.html"]];
NSURLRequest *URLReq = [NSURLRequest requestWithURL:helpURL];
[webHelpView loadRequest:URLReq];
and everything loads and displays as if it were on a remote server.
To preserve the full directory structure of your HTML, etc. files, simply add those files to your Xcode project, dragging in directories where you can, and add a new Copy Files build phase. Make the destination Resources and the path whatever you want to use for the base of your web files (Help in the example above). Finally, drag all of the HTML, etc. resources you added to your project into this Copy Files build phase so that they end up bundled with your application.
I see no reason why this wouldn't work with more complex web applications, and I've seen no action by Apple against people doing this within their own applications.
I don't see why not, just give the UIWebView a baseUrl of your local stored bundle.
Look at PhoneGap (http://phonegap.com/)
I haven't used it but it may be a good solution for what you're trying to do.
Yes, it is perfectly doable. You just need to build the absolute path to your HTML files within your application bundle, using "file:///" as the protocol, and point the URL of a UIWebView to it. You can do a quick and dirty test using the iPhone OS simulator and writing something like "file:///foo/bar.html" on Safari.app, provided that HTML exists, it will load just fine.
The problem is packaging it. From what I can tell (and i could very well be totally wrong), apple just dumps all your files into one resources folder, regardless of directory structure in your project. So if you create a webpage that references images/logo.png and javascript/script.js, suddenly those files will be located in / instead of their respective folders. Given that, it might be feasible to create a web app with a completely flat structure from the start.
There's no technical reason I know of why this should be problem.
However, there's always the chance that Apple could reject the app for doing something like this — they certainly haven't been shy about rejecting apps for not "behaving properly" before, and web apps have some certain peculiarities which make them not feel like native apps.
Such a rejection could probably be resolved by resubmitting, since there's certainly no standard for this kind of thing, but it's certainly something to be aware of.
If you are not a coder and you are interested in iOS only, you can follow these steps:
Download xCode
Download simple web view app from https://github.com/nomtek/iOSWebViewApp
Open simple web view app within xCode
Add your HTMLs to the project file structure
Run your app and voila :)
This approach is good if you don't need access to any phone specific features, just a standard Web View. Loading time will be short as this approach doesn't load any extra libraries.