Creating an app to provide user with offline map and offline routing using Android Studio - android-studio

I am trying to create a mockup of application that will allow user to use the app to navigate in a city.
The reason the map needed to be online is that my application needs to modify the mockup traffic light in the map based on traffic.
Currently I tried to OSM since Google map doesn't provide any traffic light data.
My problem is I have no idea how to create an offline map, by using OSMAnd, I am able to create an OBF file using OsmAndMapCreator, after that I have no idea how to implement it (I cannot find any tutorial online).
I also don't know which offline routing service to used, I have find that OSMAnd can be used to provide navigation but I don't know how to implement it in a new app.
I am sorry if this is off topic or being a vague question, but I have no more choice.
Thank you.

Related

Nodejs send metrics of how many people are using my app

So i'm designing a new application with Nodejs and packaging into an executable then putting a release in github, I want to be able to monitor how many people are using my executable?
I was thinking about creating an api server and my application just make a call to that API service but I thought there might be something already out there any help?
The easiest way is to connect third party services that do that. The most famous one is Google Analytics
You just need to create your developer account and embed a few lines of tracking code. After that you can see full info about your visitors including their location.

Set up Google Analytics to track a command line Node app

I'd like to use Google Analytics to track usage of a command line Node app. Tracking will be strictly opt-in. I'd like to track basic usage, plus which operating system and version of Node was used.
I've found the Measurement Protocol, but I'm wondering whats the best way to set up Google Analytics.
You can choose from Web or App - App seems the best fit, but then I'm sent to Firebase to set up an iOS, Android or Web app. None of these are correct. So is 'Web' the best way to track my app usage? Or is Google Analytics not the right approach?
Seems like the best approach is Google Measurement Protocol. There's a Node library for it.
Really Google Analytics is completely designed around web apps and more recently mobile apps, it has concepts like "page views" which don't make sense for CLIs, and Firebase Analytics is only for Android and iOS.
You might be able to shoehorn he CLI use case for some purposes. Alternatively, you could consider using a cloud database like Firebase real-time DB to capture your own events.
Google analytics really isnt designed for something like this. You have only two options web app where everything is page based. http://example.com/hello.php vs using a mobile app where everything is screen based. Home, about, help.
I have done this before with several console applications, a custom SSIS task (dll) and an arduino project. I chose mobile application mainly because i thought it was closer. I know of someone who did the same with an actions on google project.
In the end what you use will be up to you. Just consider what it is you want to track exactly and lay it out before you start.
If you choose mobile make sure you send Screen views and not page views. The Google analytics website is split you cant mix and match the hit type.
Workaround for createing moble account without firebase.
create a new web property on Google analytics type Web
create a new view under that web property type mobile.
We made Console Cat for this exact purpose! It's built from the ground up to track telemetry / analytics for CLIs including things like flags, command duration, version, etc.

Problems with the Google Places API AddPlaceRequest - Android Studio

I'm in the process of creating an application on Android Studio which allows a user to select a location on a map and add some details to that location - E.g. Select a football pitch and add some details to it such as 5 a side football match on Sunday at 12 o'clock.
Once these details are saved that location is saved onto the map along with those details.
I've decided to use the Google Places API as it has the AddPlace feature. Instead of adding a business to the map like the API was intended for, I want to tweak it so it can add an event instead.
However, the example found here at:
https://developers.google.com/places/android-api/add-place
Does not work in my application.
Here are the screenshots:
Code Snippet
Any help would be greatly appreciated - Thank you
G
The Add A Place function of the Places API isn't a good fit for what you're trying to do. Add Place is designed to allow users to add places that don't currently exist in Google Maps' database. It sounds like what you want to do is attach some metadata to a place that has meaning only to your app.
So, you'll need some persistent server storage for this metadata. There are lots of ways to do this but you might want to look at Firebase Realtime Database as a solution.
Also, from the screenshot, it looks like your error comes from not having defined mGoogleApiClient in in your app.
When you want to make a connection to one of the Google APIs provided in the Google Play services library (such as Google Sign-In, Games, or Drive), you need to create an instance of GoogleApiClient ("Google API Client"). See here: https://developers.google.com/android/guides/api-client

White-Label a UWP Application

I am about to start development on an UWP Application. One of the last minute requirements was to be able to support white-labeling the application for our partners. Does anyone have any experience doing this using the Universal Windows Platform that would be willing to give me some insight on resources I should be looking at?
Some basic questions I have is:
Is it possible? I read about it being done with iOS and Android.
How do you create the AppPackage for each partner?
Localization differences? Where one localization may refer to it as one product, but another refers to it as the other product.
Or is this something where I would bundle everything up and send it to the partner to create their own upload? If this is the case, is there a how-to on that?
Some of these might be basic questions, but this is the first time I have created a white-label application, so it is all new to me.
Have just replied to another one topic and looks that screenshot is still needed)
When you submit App to store you can find option:
This way you can make your app visible only to your partners. And you can also register as many apps as you like (each one for separate partner)
Or you can distribute your app thrue Windows Store for Business.
Take a look also at this link, it might be helpful for you
Distribute LOB apps to enterprises

Azure Mobile services : using shared libraries in Custom API

Azure Mobile services (node.js backend) : I remember vaguely sometime back I had read somewhere that the shared libraries cannot be used in Custom API, however I don't remember where exactly I read that. Tried googling, searching here in SO, but didn't find anything. Now that I started coding my Custom API, I need to know this for sure, whether what I remember vaguely is really true or not; if someone has any idea about this, I'll much appreciate if you can confirm.
many thanks.
Yes you can create shared scripts and use them from your mobile service custom API scripts.
See this link for enabling source control and getting a local copy so you can create and push your scripts: http://azure.microsoft.com/en-us/documentation/articles/mobile-services-store-scripts-source-control/#use-npm
Then take a look at this link for more on using some of the "native" node modules or helper functions: http://azure.microsoft.com/en-us/documentation/articles/mobile-services-how-to-use-server-scripts/#shared-code

Resources