Skip to content

Instantly share code, notes, and snippets.

View er-abhishek-luthra's full-sized avatar
🎯
Focusing

abhishek luthra er-abhishek-luthra

🎯
Focusing
View GitHub Profile
@er-abhishek-luthra
er-abhishek-luthra / Atomic_Habit_privacy_policy.md
Last active September 18, 2023 11:44
Atomic_Habit_Tracker_privacy_policy

Privacy Policy

Abhishek Luthra built the Atomic Habit Tracker app as an Ad Supported app. This SERVICE is provided by Abhishek Luthra at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at Atomic Habit Tracker unless otherwise defined in this Privacy Policy.

@er-abhishek-luthra
er-abhishek-luthra / gist:ed163ee1a8119ba3b0c5e457b4dbb159
Created January 26, 2023 13:45
This is the privacy policy of Jadoo AI chat app
Our app, Jadoo Chat, collects certain information in order to provide you with the best possible experience.
Information collected automatically: Our app collects information such as device type, operating system, and app usage data. This information is used to improve the app's functionality and to personalize the user experience.
Information collected through the chatbot: Our app uses the ChatGPT-3 language model to power the chatbot feature. Any information you provide to the chatbot, such as text input, will be sent to OpenAI for processing and may be used for research and development purposes.
Data Security: We take the protection of your data very seriously and will take all reasonable measures to protect your information from unauthorized access, alteration, or destruction.
Third-Party Services: Our app uses third-party services such as Google Analytics to collect and analyze usage data. These services may collect information such as device type and IP address.

Android 12 Restricted on Background Services

Apps that target Android 12 or higher can't start foreground services while running in the background, except for a few special cases. If an app attempts to start a foreground service while running in the background, an exception occurs (except for the few special cases).

Chargingwatts Battery Alarm needs to work in background to work properly. Because of this Android 12 users must remove Chargingwatts Battery Alarm from the Battery Optimization.

On main page of Chargingwatts Battery Alarm, when you click "Charge Alarm" button, you will see the dialog.

Privacy Policy

Abhishek Luthra built the Internet Blocker - No Root Android App and it does not collect any information at all.

Internet Blocker - No Root Android App forwards traffic of allowed connections directly to its destination and does not use a remote VPN server.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

@er-abhishek-luthra
er-abhishek-luthra / VisibilityDemonstration.java
Created September 5, 2020 13:57
Practical explanation to volatile keyword -
public class VisibilityDemonstration {
private static int sCount = 0;
public static void main(String[] args) {
new Consumer().start();
try {
Thread.sleep(100);
} catch (InterruptedException e) {
return;

Privacy Policy

Abhishek Luthra built the ChargingWatts Battery Alarm app as an Ad Supported app. This SERVICE is provided by Abhishek Luthra at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at ChargingWatts Battery Alarm unless otherwise defined in this Privacy Policy.

Privacy Policy

Chargingwatts Pvt Ltd built the Chinese Apps Detector app as a Free app. This SERVICE is provided by Chargingwatts Pvt Ltd at no cost and is intended for use as is.

This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.

If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. we will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Chinese Apps Detector unless otherwise defined in this Privacy Policy.

@er-abhishek-luthra
er-abhishek-luthra / ApplicationInjector.kt
Last active August 22, 2019 14:34
ApplicationInjector - Android Dagger 2 Helper class to automatically inject fragments if they implement [Injectable].
package com.chargingwatts.di
import android.app.Activity
import android.app.Application
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.fragment.app.FragmentManager
import com.chargingwatts.ChargingApp
@er-abhishek-luthra
er-abhishek-luthra / LiveDataSharedPreferences.kt
Last active April 4, 2023 11:21
LiveData implementation of SharedPreferences in Android. Get value associated in SharedPreferences corresponding to a particular key with an additional ability to observe changes made to shared preferences using LiveData
package com.chargingwatts.livedata.sharedpref;
import android.content.SharedPreferences
import androidx.lifecycle.LiveData
abstract class SharedPreferenceLiveData<T>(val sharedPrefs: SharedPreferences,
val key: String,
val defValue: T) : LiveData<T>() {
init {
@er-abhishek-luthra
er-abhishek-luthra / DetectPhoneCallState.md
Last active April 26, 2024 08:10
DetectPhoneCallState.md

PhoneCallReceiver

Due to the design of Android, PhoneCallReceiver have to be a BroadcastReceiver. It can’t be a reciever registered with one app because the receiver may be run without our app being run, so we’d have to register in manifest. But I want the heavy lifting to be done by a library class(which we will be creating below)- I just want to derive from something and override a few functions. So ideally we have something like:

public abstract class PhonecallReceiver extends BroadcastReceiver {
protected void onIncomingCallStarted(Context ctx, String number, Date start);
protected void onOutgoingCallStarted(Context ctx, String number, Date start);