I was developing an Android app under the jQuery mobile framework using phoneGap technology. The app included Google maps.
The problem is, it is too slow .... really slow.. I tested it on several android devices and found the same issue everywhere.
I'd like for maps to run like they do on the native Android Google Maps (default). Is this a common issue using the mentioned framework, or perhaps something I'm doing wrong?
One thing you can do is fire an Intent to make the native Maps application take care of your mapping needs, if that works for you.
For example, if you want to show the user a map of a given address, you can fire a android.action.VIEW Intent, with a URI like:
geo:0,0?q=1234+foo+bar+qux+avenue
More info on available system intents:
http://developer.android.com/guide/appendix/g-app-intents.html
You should take a look at this:
https://github.com/phonegap/phonegap-plugins/tree/master/Android/WebIntent
Related
I have searched a lot regarding In App search in android, What i ended up http://developer.android.com/training/app-indexing/index.html
https://developers.google.com/app-indexing/
and few application on Play store like Andro search. But what I am looking for is precise search in internal application installed on my phone. Say, there is linkedIn, some News app, or any image editor app, or dropbox then the search should be able to fetch the result from inside these apps.
Any help would be much appreciated.
Maybe it might be useful to search for the application you want from Google. Google also shows the applications on the phone.
I'm in the same quest? Looks like Android don't have anymore this feature, I can't find this feature on the new released Android 10. Only the Samsung Galaxy seems to have this feature in the world of Androids, this is very sad.
I want to invoke the native device maps app to show some directions between the current position of a user and another location.
In iOS 6 it's working this way:
But how is this working on other platforms e.g. on android?
In Android, you can use a geo: url to achieve this.
Have a look at the Android documentation for the parameters.
Basically it goes
My place
It may be that this fires the application selector on the user's device, as the user may have installed more than "maps" kind of app.
Sorry if I sound too naive.
We intend to develop a native app using Phonegap and Sencha Touch. One of the requirements are to have a Sat Nav feature in where you could give a post code and it will guide you to there. However, I assume that feature is too costly to develop at it's own and would also mean we would be making a wheel of our own. The thought is and this is the actual question, if we could invoke Android's native Sat Nav (that comes built-in) from our app.
If anyone can help, I will be grateful, also if you guys have any other ideas, kindly suggest.
I don't think there's any way of doing this using the built in Google Maps application, and I'd avoid using it anyway (it doesn't have offline map storage, so if you drive into an area with no mobile coverage you lose navigation). But there are a couple of APIs you can purchase to do this kind of thing: http://www.copilotlive.com/uk/enterprise/ and http://www.sygic.com/en/business:buy-now both appear to be able to do what you want.
If you mean launching the Google Maps app with directions, look here
https://stackoverflow.com/q/2663565/984393
Basically you send a request in the form of an Intent for android to star the maps application.
I am planning to create an application in android which has following features
Show Source to Destination Route
Show Reverse Route
Show Traffic Data
Show alternate Route
Store user data
apart from that i want to use some android native controls such as image button , textbox , dialog over the map.
Now after reviewing this link i am bit confuse in choosing the approach among
Google Maps API V3 in the Browser
Google Maps API V3 in a Browser Embedded in a Native Application
Native Google Maps APIs
Can anyone please help me out in choosing the right approach ?
Well, there's no simple answer to that. Every approach has its pros and cons.
Now let me state few insights that might help you in your decision (based on the idea that you want the map as a part of a native android app, not just a html5 app - correct me if I'm wrong):
You need to store user data.
If you want to store the data in the app, then I guess you can leave out the first solution. It would be very difficult (or even impossible) for you to properly maintain your data with map in a browser. The best way to maintain data is then to directly communicate with a server from the webpage and store data on the server (so you need a server backend). You can also pass some data from the webpage to an activity by registering an intent filter for your own url schema.
You don't have such problems using approach 2 and 3, where you can use android code (if you are embedding the map in a webview you can access android code by binding javascript code to android code).
You want to use android native controls.
Now you can also leave out the 1st solution, you are using browser controls there. In the 2nd solution, you can use both (the map needn't fill the entire screen and you can also place controls over the webview).
Google Maps API v3 is frequently updated and currently much more comfortable than native API. Native API wasn't much updated (not sure if it was updated at all) since Android 1.6.
From these 3 points I would prefer embedding Google Maps API V3 in a webview. Of course, I might have missed some important features of your app.
I would like to do two things within my Android app :
Check if the Google Finance app is installed on the device. Should be pretty straighforward, isn't it ?
If yes, launch an intent to Open up Google Finance, displaying a graph on a particular Stock. So I also need to pass the stock ticker to Google Finance in some way... but is this even possible ?
Any other alternative I could use to display Stock Charts (let's say a 5 days intraday chart) on any stock ?
Thanks for your help.
I am not aware of there being any publicly-documented packages or Intents to achieve your aim, let alone an Intent that would meet your specific open-a-graph-on-a-stock request.
Since I am assuming you are looking for something that is free, I would look into launching the Browser (or perhaps using the WebView widget) on some existing Web-based finance site.
Unfortunately, very few intents with parameters are published and documented.
OpenIntents tries to collect some of them http://www.openintents.org/
Another way of finding available intents is to look at the AndroidManifest.xml of the deployed application (usually only compressed, not encrypted). Of course, this method discovers intents that may not be public and will change over time.
Recently came across ManifestExplorer https://www.isecpartners.com/manifest_explorer.html which I have built into an .apk at http://dl.dropbox.com/u/4379928/android/ManifestExplorer.apk
It allows you to see the AndroidManifest.xml of all installed applications.
The manfiest of com.google.android.apps.finance doesn't include any relevant intents.
However, it is interesting that it contains a data scheme for http://finance.google.com so that if you use the browser to navigate to this page it asks if you want to open it in the finance app instead.
Best way would probably be to follow the advice from CommonsWare