This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package in.preciseit.urlshortnernew; | |
import android.app.ProgressDialog; | |
import android.os.AsyncTask; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.text.ClipboardManager; | |
import android.util.Log; | |
import android.view.View; | |
import android.view.Window; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12-25 12:36:29.075 24965-25000/com.preciseit.trackusdown E/GMPM: getGoogleAppId failed with status: 10 | |
12-25 12:36:29.080 24965-25000/com.preciseit.trackusdown E/GMPM: Uploading is not possible. App measurement disabled | |
12-25 12:36:32.255 24965-25098/com.preciseit.trackusdown E/b: Authentication failed on the server. | |
12-25 12:36:32.255 24965-25098/com.preciseit.trackusdown E/Google Maps Android API: Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map. | |
12-25 12:36:32.259 24965-25098/com.preciseit.trackusdown E/Google Maps Android API: In the Google Developer Console (https://console.developers.google.com) | |
12-25 12:36:32.259 24965-25098/com.preciseit.trackusdown E/Google Maps Android API: Ensure that the "Google Maps Android API v2" is enabled. | |
12-25 12:36:32.259 24965-25098/com.preciseit.trackusdown E/Google Maps Android API: Ensure that the following Android Key exists: | |
12-25 12:36:32.259 24965-25098/com.preciseit.trackusdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12-25 12:12:19.257 29899-29930/com.preciseit.trackusdown E/GMPM: getGoogleAppId failed with status: 10 | |
12-25 12:12:19.259 29899-29930/com.preciseit.trackusdown E/GMPM: Uploading is not possible. App measurement disabled | |
12-25 12:19:31.463 29899-7698/com.preciseit.trackusdown E/b: Authentication failed on the server. | |
12-25 12:19:31.463 29899-7698/com.preciseit.trackusdown E/Google Maps Android API: Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map. | |
12-25 12:19:31.473 29899-7698/com.preciseit.trackusdown E/Google Maps Android API: In the Google Developer Console (https://console.developers.google.com) | |
12-25 12:19:31.473 29899-7698/com.preciseit.trackusdown E/Google Maps Android API: Ensure that the "Google Maps Android API v2" is enabled. | |
12-25 12:19:31.473 29899-7698/com.preciseit.trackusdown E/Google Maps Android API: Ensure that the following Android Key exists: | |
12-25 12:19:31.473 29899-7698/com.preciseit.trackusdown E/Google |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void urlShort(final String message) { | |
new AsyncTask<String, String, GooglShortenerResult>() { | |
@Override | |
protected GooglShortenerResult doInBackground(String... params) { | |
GoogleShortenerPerformer shortener = new GoogleShortenerPerformer(new OkHttpClient()); | |
String longUrl = message; | |
GooglShortenerResult result = shortener.shortenUrl( | |
new GooglShortenerRequestBuilder() | |
.buildRequest(longUrl)); | |
if (result.getStatus().equals("SUCCESS")) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion 23 | |
buildToolsVersion "23.0.1" | |
defaultConfig { | |
applicationId "com.preciseit.trackusdown" | |
minSdkVersion 14 | |
targetSdkVersion 21 | |
multiDexEnabled true |