Is it possible to add additional options to the location info view in the iPhone maps app? - iphone

Currently, when I find a location in the Maps app on the iPhone, I can go to the info screen and click the phone number to call them, the website address to visit the website, etc. I would like to develop an app that adds additional options to this page. I suspect this is not possible, but I was hoping someone here on SO would tell me otherwise. Thanks!

Related

Is there a way to lock user inside an app so the main screen can not be accessed unless password entered

I am working on an app where the user will be able to hand their phone to someone to complete a survey. When they hand the phone over I would like to lock the other functions of the phone so the person they hand it to can not go to the main screen or access anything other than the app survey questions.
So far I have tried looking into systemchrome class but have not had any luck. Closest I got is...
SystemChrome.setEnabledSystemUIOverlays([]); This only hides the native nav bars but does not stop access of the main screen.
The feature you seek is further than an application feature. It's more like a OS policy. On android you can use Android Enterprise and kiosk apps to full-fill your requirement. This link will guide you through the process.
https://support.google.com/work/android/answer/6396012?hl=en

How to drop a pin on Google Maps iPhone app via web link?

I used to just be able to have a link to a coordinate on Google Maps, like https://maps.google.com/maps?q=35.7491455078125,139.382995605469
but now that Apple kicked out the original Maps app, and Google has re-launched another one, links like that no longer drop a pin on the maps of iOS users.
Is there a way to drop a pin on a visitor's Google Maps app with the click of a link?
Sounds like the official Maps URLs would work for you. In your example, this should work (and across platforms, too!):
https://www.google.com/maps/search/?api=1&query=35.7491455078125,139.382995605469
You can read the full documentation at https://developers.google.com/maps/documentation/urls/guide
Replace http://maps.google.com with http://maps.apple.com, hopefully that works!

Icon iphone apps

Is it possible to programmatically get access to the icon of other apps installed on an iPhone?
For example: if I need Instagram's icon, is it possible to display it in my app by accessing the icon in the Instagram bundle?
You're not allowed to access anything in other app bundles, but you can find the icons on the web if you know the URL. The icon images are in the app store page, which can be reached by (for example) here. The URL is subject to change, so saving a copy to your own app bundle would be the best way to ensure access to them.
http://a3.mzstatic.com/us/r1000/060/Purple/v4/76/94/e2/7694e29c-3060-9f8e-0135-cbeea67ec3af/mzl.qmyfwfsq.175x175-75.jpg
No you have to find the icon if you want to use it.
Nevertheless, you have an instagram-sdk for iOs. Maybe you should look at this.
You'll need to get the icon somewhere else. If it's specifically Instagram you can get it from their SDK, but for the mostpart, you'll need to find it on your own.
As far as I know you'll have to keep a set of icons in your own app, which you can show to the user at a certain point. But I'm sure you cannot access the icon of an app installed on the phone like that!

Android, Iphone app with JS and HTML

I have read some post about apps programming for Iphone and Android, but I have one question. Is it posible when there is a mobile website optimized for mobile phones, that I can create apps for Iphone, Android, Win 7 and Blackberry, that only statrts the browser as instance and display the mobile website? What do you think, is this ok? Do you have any ideas or examples for that kind of apps? I mean this is not an app, that should be has access to the hardware of the phone, only web app.
Thanks
Nik
This would work.
You could create an app that consists merely of a webview into which you load your content. The content could be loaded over the mobile network or be stored locally.
However most users (including yours truly) strongly dislike apps that merely present a single website to the user, because of the long delays if the content is loaded over the mobile network every time and because the UI is, in many cases, very different to what the he or she is used to from native apps.
Most users fail to see the need for a specialized app just to visit a website which they could as well keep as a favorite in their mobile browser. On the iPhone, you may even add favorite websites as icons on your homescreen, so there is no need for apps presenting a single website at all.
It's not only possible, such things are already done. One example I know of is cookd, a restaurant guide for Vienna. But there are some constraints; for example, cookd requires GPS data for the "Nearby" option; on my Android phone (HTC Legend), this is possible when I open the web page directly in the browser (the browser asks if I want to allow cookd.com to get this info); but the same webpage, running in an application that does nothing more than display the browser component, cannot do that. To fix that, they would have to build GPS reception into the app and forward this info to the browser component.
O'reilly has a fantastic article about this:
http://building-iphone-apps.labs.oreilly.com/
This is a little bit directed to iPhone only, but will give you a good overview about the topic and possibilities.

Google Adsense within native cocoa-touch iphone app

My planned iphone application will work a remote https web service quite hard so until a user decides to upgrade from the free to pro version of my app I need to generate a trickle of click revenue per free user.
I would like to embed a single line adsense widget within a native cocoa-touch iPhone application. The UI control I have in mind might not exist but would work something like this. The control would occupy a fixed portion of my application's default view and would be initialized by my code and provided with key words determined by my application. The control would then periodically ping Google's adsense system and display a single clickable advert link.
If the user was interested in a link a click would result in an exit of my application followed by the opening of the advertiser's link in Safari.
Has anything like this been done before?
You have to use a UIWebView with a Adsense unit inside it. I think when you are setting up a ad unit you can enter keywords.
This is most probably a violation of their terms, though. It may be a better idea to try using something else like http://www.admob.com/.
Since AdSense requires the content of the page it's on to serve up relevant ads, you're likely to get nothing but PSA ads, since Google can't crawl your app.
And like Isaac says, I'm sure it's against the AdSense terms.
Google's Mobile Adsense is on the run:
TechCrunch article