Skip to content

Instantly share code, notes, and snippets.

View AhmedBadrSayed's full-sized avatar
💻
Online

Ahmed Badr AhmedBadrSayed

💻
Online
View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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=".MainActivity"
tools:showIn="@layout/activity_main">
package com.mondiamedia.ahmedbadr.audioplayerdemo
import android.content.ComponentName
import android.os.Bundle
import android.os.Handler
import android.os.SystemClock
import android.support.v4.media.MediaBrowserCompat
import android.support.v4.media.MediaMetadataCompat
import android.support.v4.media.MediaMetadataCompat.METADATA_KEY_DISPLAY_TITLE
import android.support.v4.media.session.MediaControllerCompat
package epicsyst.com.beacontest;
import android.Manifest;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothManager;
import android.bluetooth.le.BluetoothLeScanner;
import android.bluetooth.le.ScanCallback;
import android.bluetooth.le.ScanFilter;
import android.bluetooth.le.ScanResult;
@AhmedBadrSayed
AhmedBadrSayed / Favorites.java
Created April 4, 2016 12:03
Favorites Shared Prefrence
package com.projects.ahmedbadr.moviesapp.DataStore;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import java.util.Comparator;
/**
* Created by Ahmed Badr for MoviesApp on 28/3/2016.
@AhmedBadrSayed
AhmedBadrSayed / PostersAdapterlistener.java
Created March 15, 2016 18:30
PostersAdapterlistener Interface
package com.projects.ahmedbadr.moviesapp.Interfaces;
import com.projects.ahmedbadr.moviesapp.Adapters.MoviesGridAdapter;
/**
* Created by Ahmed Badr on 15/3/2016.
*/
public interface PostersAdapterlistener {
public void listen(MoviesGridAdapter adapter);
package com.projects.ahmedbadr.moviesapp.Adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
package com.projects.ahmedbadr.moviesapp.Screens;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.preference.PreferenceManager;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;