Android missing option for geo uri - java

I'm developing an app using Ionic Framework. Within this app I have some geo uri encoded location links. In the upcoming Android-system option dialog where to choose an appropriate app to handle this intent it provides the following apps: Google Maps and Earth. As I have also OsmAnd installed it should also provide this as an option. Using 'geo:uri' intents from a native Android app does provide this option.
Does anyone has a clue why that happens and how to get this option?
Added
Within the ionic app I have this link:
Show
Angular is configured with:
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|geo):/);
This is what it looks like (my app using geo uri) and what it should look like (wiki entry with geo uri):

Related

Deep link for SonyLiv and Diseny + Hotstar Android apps using Intents

I am creating a recomendations app for android TV.
This will redirect users from my app to multiple streaming apps.
I have found most of the links but not able to find the APIs for "SonyLiv" and "Disney + Hotstar" application.
I am using "start activity intent" to launch the application.
How can I find the required API/URL links to these apps. These do not seem to have any documentation provided.
I tried to go through the Android Manifest file but did not get anything useful.

Adding updates to android app programatically to update the app when ever the user comes online

I have an android app that the features may keep updating from time to time. Those features are hard coded into the app and I feel that if like 100 users download the app and when some features of the app is updated and re-upload to the play store those users who have installed the app prior now may have lost out on some of the latest features uploaded to the play store.
To tackle this issue I arrived at this solution as described in the url but yet to implement it in the onCreate method
Intent intent = new Intent(Intent.ACTION_VIEW ,Uri.parse("market://details?id=com.package.name"));
startActivity(intent);
Is there a way to automatically update application on Android?
I want to be guided properly please, if this approach will solve my doubts. Kindly assist!
if you used web serivce then pass your app version to web team.
and then getting first web service call one flag for app is old or not
and you can manullay set dialog when app is open. and then redirect appp to playsotre.
The solution you are looking for is REACT NATIVE APPS.
React Native apps allows you to change and add many features without uploading the app to play store.
https://facebook.github.io/react-native/showcase.html
UPDATE
But If you want to use android native development then.
Make an API in your backend which will return the latest version of your app in its response like:
{
appVersion: "4.2.1"
}
Then in your android app on the first activity make a call to this API and compare the version of your application with the API version.
String currentVersion = BuildConfig.VERSION_NAME;
If it doesn't match then show a message to the user to update the app from play store and give a button which will redirect to your app link on google play store.
Whenever you update your app in play store change the version in your API.
You can also maintain versions for major and minor update.
{
majorVersion:4
minorVersion:1
patchVersion:2
}
Then in your app:
String majorVersion = android.optString("majorVersion");
String minorVersion = android.optString("minorVersion");
String patchVersion = android.optString("patchVersion");
String[] ab = BuildConfig.VERSION_NAME.split("\\.", 3);
String appMajorVersion = ab[0];
String appMinorVersion = ab[1];
And use if else to check whether you need to force update or not.

Turn on location services automatically in Android 3.1 and above

I know that from android 3.1 and above you can't turn on location services manually. But in Google maps it simply shows an dialog which prompts me to switch it on. This directly switches it on (In android 5.1 - Lollipop). So how does google do it? Is it some Google location services API I can use or should I direct the user to the location services settings screen?
Thanks.
The are making use of theSettingsApi It allows you to check if the location services are available on the device and there is a complete example provided by google on github that shows how to use this API. The sample code will prompt the user to enable location if it's switched off. The dialog that pops up when you fire the intent is similar to what you see in Google Maps.

How to send address in Android Application to Google Maps

Is there a way to set an address in an application so when it is clicked it automatically opens it in Google Maps? I may end up implementing Maps into my application but it is a simple reference app simply to find the address.
You do this via an Intent.
The various URI formats you can use are:
geo:latitude,longitude
geo:latitude,longitude?z=zoom
geo:0,0?q=my+street+address
geo:0,0?q=business+near+city
See http://developer.android.com/guide/appendix/g-app-intents.html for more details.
You build the URI, and pass it to the intent, like this.
String uri = "geo:latitude,longitude";
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri));
intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
startActivity(intent);
You might also want to make sure that the Google Maps application is actually installed on the device, described here, so you don't run afoul of devices that don't have Google Maps installed (Amazon Kindle, Barnes & Noble Nook, etc.).

GoogleMaps 5.0 in android

hi i want to use googlemaps 5.0 (3D view(Street view) )in my android app .is it possible .please share some resources or tutorial that how to use them
Have you already checked out googles official documentation?
http://code.google.com/android/add-ons/google-apis/maps-overview.html
No, it is not possible. The Google Maps app and the maps add-on for app development are separate. The only thing you can do is open Google Maps to a given location via the geo or google.streetview URI schemes.

Categories

Resources