Skip to content

Instantly share code, notes, and snippets.

View DINESHKARPE's full-sized avatar
🏠
Working from home

Dineshh Karpe DINESHKARPE

🏠
Working from home
View GitHub Profile
@DINESHKARPE
DINESHKARPE / AppConstant.java
Created January 12, 2019 18:38
Android fused location API with LocationCallback
public class AppConstant {
public static final long UPDATE_INTERVAL_IN_MILLISECONDS = 1000;
public static final long FASTEST_UPDATE_INTERVAL_IN_MILLISECONDS = UPDATE_INTERVAL_IN_MILLISECONDS / 2;
}
package me.dineshkarpe.wikitude;
import android.Manifest;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.design.widget.Snackbar;
import android.support.v4.app.ActivityCompat;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context=".Hellowikitude"
tools:showIn="@layout/hellowikitude">
@DINESHKARPE
DINESHKARPE / AndroidManifest.xml
Created November 20, 2017 14:29
AndroidManifest.xml, Create Android application using Android Studio, uses-permission & uses-feature in AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.dineshkarpe.hellowikitude"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="19" />
<uses-permission android:name=
@DINESHKARPE
DINESHKARPE / designer.html
Last active August 29, 2015 14:17
designer
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-profile.html">
<polymer-element name="my-element">
<template>
<style>
#topeka_profile {
width: 100%;
height: 100%;
@DINESHKARPE
DINESHKARPE / designer.html
Last active August 29, 2015 14:17
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-item/paper-item.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
#paper_input {
left: 300px;
top: 120px;
@DINESHKARPE
DINESHKARPE / designer.html
Last active August 29, 2015 14:17
designer
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;