Skip to content

Instantly share code, notes, and snippets.

AndroidMad / Mushtaq M A androidmads

Block or report user

Report or block androidmads

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@androidmads
androidmads / AppDelegate.cs
Created Mar 25, 2018 — forked from dannycabrera/AppDelegate.cs
Get notified when user takes screenshot on Xamarin.iOS
View AppDelegate.cs
using Foundation;
using UIKit;
namespace YourApp
{
[Register ("AppDelegate")]
public partial class AppDelegate : UIApplicationDelegate
{
NSObject _screenshotNotification = null;
@androidmads
androidmads / AppHelper.java
Created Jan 28, 2018 — forked from anggadarkprince/AppHelper.java
Upload file with Multipart Request Volley Android
View AppHelper.java
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import java.io.ByteArrayOutputStream;
/**
* Sketch Project Studio
* Created by Angga on 12/04/2016 14.27.
*/
public class AppHelper {
@androidmads
androidmads / Main.java
Created Sep 29, 2017 — forked from rubenlagus/Main.java
Example of sending a SendMessage method using Telegram API with ReplyMarkupKeyboard
View Main.java
package org.telegram.example.SendMessage;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONArray;
import org.json.JSONObject;
import java.io.IOException;
View SSLByPassSnippet.cs
//...
// Self Signed Certificate
ServicePointManager.ServerCertificateValidationCallback =
delegate (object sender2,
X509Certificate certificate,
X509Chain chain,
SslPolicyErrors sslPolicyErrors)
{
return true;
};
@androidmads
androidmads / AndroidManifest.xml
Last active Aug 11, 2016
Snippet to avoid restarting activity when Screen Orientation changes on android
View AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.androidmads.avoidrestart">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
You can’t perform that action at this time.