Wednesday, June 27, 2018

KML file for Google Earth

So, you want to show your pictures on the map,
And you created nice KML file with the pictures, but it doesn't work on Google Earth

The problem is that Google currently, does not support links to its own photos service, nor embeding the photos in the KML file.
The solution is to put the pictures in Microsoft OneDrive, and use this link in the KML file.
You can continue to create the KML file using Earth pro:

Here is how the image should look in the KML file:

<img src="" width="1024" height="768" />

Here is the full my full KML file (you can also create it manualy without Earth pro):

Sunday, March 11, 2018

Friends Locator

Tips and Tricks

Basic Usage

Parental Control

With this feature you can lock your child's phone simply by sending to the phone in the group (the child must be part of the group), a "Pause Child phone" command.

To be able to do this, set the child's phone as as a "Child's phone" by clicking the top right ...
and selecting this option:

And give the overlay permission to the child's phone (only the child's phone needs this permission):

Now you can send the "Pause Child's Phone" command to the child's phone, by long click on the groups member, and selecting this option. note that you will need to fill the phone number the first time its used, since this command is sent via SMS:

You can unlock the child's phone by clicking on the "Resume Child phone" option. 

Force Location phone support

  • Enable permission to send and receive SMS on your phone device.
  • Long click on the contact select "Force Location", and add his/her phone number.

The number is save securely on your device (not on our servers).
We take privacy very seriously.
This is why when you reinstall the app on another device, the phone numbers will not exist on the app, and you will need to set them again.

  • After setting the number, an SMS with your friend location will get back to you (Make sure your friend also set the SMS and location permissions in can you have problems). and you can view it on the Map by clicking on the notification, or on the specific friend.

Force Location Android Wear support

  • After setting phone numbers for some friends, clicking on the "Force Location" button on your android wear device will get the locations of your friends with phone numbers.

  • Click on the notification to view the map on your android wear device.

Thursday, February 16, 2017

AsyncTask & multithreading

Android runs all async tasks in a single thread, which means, if one task is blocking, the other task will need to wait till it finishes.
In some cases you will need you async tasks to run simultaneously.
In such a case use:

Here is an example:
new SomeAsyncTask().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);

Tuesday, January 3, 2017

The Simplest Async Task possible

private class SomeAsyncTask extends AsyncTask<Void, Void, Void> {

    @Override    protected Void doInBackground(Void... voids) {
        Log.d(P.Tag, "doInBackground");
        return null;

Sunday, November 20, 2016

Activity does not have the latest intent information put in the pending intent extras

It happens when the activity is resumed.

You need to:

1. In the intent:
  PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent,

  If you have more then one notification at a time, set the request code uniquely

  PendingIntent pendingIntent = PendingIntent.getActivity(this, uniqueIntForName, intent, PendingIntent.FLAG_UPDATE_CURRENT);

  This way you will have the correct extras for the specific notification when lunching the 

2. In the Activity the pending intent is calling:

   public void onNewIntent(Intent newIntent) {
    Log.i(P.Tag, "===onNewIntent called===");

Friday, November 11, 2016

How to uninstall an app from wearable

Android wear connect via Bluetooth

adb forward tcp:4444 localabstract:/adb-hub
adb connect

Uninstall a standalone app

adb -s uninstall com.netcompss.fl_groups

If you want to uninstall a regular app, then just uninstall the phone app, and the wearable app will uninstall automaticly

Friday, October 28, 2016

OK Google beep sound fix

Google decided to remove the beep sound from the OK Google assistant.
Lots of users hate this decision, giving the Google app bad reviews, but Google will not fold.

Here is how to get the beep sound back in a few easy steps:

Setting, accessibility, switch access to on.

Here is a video that shows, the issue, and how to solve it: