Skip to content

Instantly share code, notes, and snippets.

View MohamedAbdelrazek's full-sized avatar
☂️

Mohamed Abdelrazek MohamedAbdelrazek

☂️
  • Orange Egypt
View GitHub Profile
V Expos IOS
* Side Menu
- Menu icons localization & text alignment is not correct
- Inventory/launches is missing from Menu
- Home is extra added, (need to remove it from Menu)
- Sort Menu item like that from top to bottom(Media, Offers, Conference Hall, Enter Expo, Inventory/launches, Notifications, My account, Language, Logout)
* Home
- Doesn’t support large screen.
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME}#end
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.AsyncListDiffer
import androidx.recyclerview.widget.DiffUtil
#parse("File Header.java")
@MohamedAbdelrazek
MohamedAbdelrazek / CheckConnectivity.java
Created May 18, 2019 22:28
Check Network Connectivity in android
package com.mobotechnology.bipinpandey.mvp_hand_dirty.main_activity.broadCastReciever;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.AsyncTask;
import android.util.Log;
@MohamedAbdelrazek
MohamedAbdelrazek / task.java
Last active September 27, 2017 22:47
Mercury Engineering and Consultation Task
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javaapplication4;
import java.util.ArrayList;
/**
// These two need to be declared outside the try/catch
// so that they can be closed in the finally block.
HttpURLConnection urlConnection = null;
BufferedReader reader = null;
// Will contain the raw JSON response as a string.
String forecastJsonStr = null;
try {
// Construct the URL for the OpenWeatherMap query