Skip to content

Instantly share code, notes, and snippets.

View Ravinnpawar's full-sized avatar

Ravindra Pawar Ravinnpawar

View GitHub Profile
@Ravinnpawar
Ravinnpawar / MAinactivity
Created January 7, 2016 06:23
url shortner new code
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;
@Ravinnpawar
Ravinnpawar / New error
Created December 25, 2015 07:07
Error log
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
@Ravinnpawar
Ravinnpawar / log file
Created December 25, 2015 06:50
error log
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
@Ravinnpawar
Ravinnpawar / ShortUrl
Created December 24, 2015 12:39
make url short
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")) {
@Ravinnpawar
Ravinnpawar / build.gradle
Created December 24, 2015 10:18
gradle file
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.preciseit.trackusdown"
minSdkVersion 14
targetSdkVersion 21
multiDexEnabled true