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="https://c7amuq.ch.files.1drv.com/y4mPm_VnoG3MeH0jVOZCv8iHvKENW4xw9BTJCYIieN6S0NbIsovbxymYVhFIec0J5ifu-DABItKTE7_JQzi8OGM5gtoRF7alrs0v4sbgw65UBynFVUO5vzGT8Qvtfmng5lHeY-zdev1TzvmBVpzCVd8EFX7bwcSQjQdHvVODDsxxIXLa5G89vT04vAsu-tkzDJsbpNgLEolthfiMKoviOkuuQ?width=1024&height=768&cropmode=none" width="1024" height="768" />


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

https://drive.google.com/open?id=1-OpLPBgavkrMTgVjMhj-D3oDska9arH7

Sunday, March 11, 2018

Friends Locator

Tips and Tricks

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:
AsyncTask.THREAD_POOL_EXECUTOR

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:
    intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP);
  PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent,
        PendingIntent.FLAG_UPDATE_CURRENT);


  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 
  Activity. 




2. In the Activity the pending intent is calling:

   @Override
   public void onNewIntent(Intent newIntent) {
    Log.i(P.Tag, "===onNewIntent called===");
    this.setIntent(newIntent);
   }

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 127.0.0.1:4444


Uninstall a standalone app


adb -s 127.0.0.1:4444 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:

https://youtu.be/NFws1vnKJ0M