Skip to content

Instantly share code, notes, and snippets.

View Ahmedomarpro's full-sized avatar
🎯
Focusing

Ahmed omar Ahmedomarpro

🎯
Focusing
View GitHub Profile
@Ahmedomarpro
Ahmedomarpro / What are the most effective ways for two Android applications on the same device to securely communicate with each other?
Created November 13, 2024 08:58
What are the most effective ways for two Android applications on the same device to securely communicate with each other?
all the possible ways for communication between two Android applications on the same device,
including Socket.IO, Intents, Broadcasts, Content Providers, Bound Services, and more.
Each method will be clearly explained with code examples,
specifying which parts go into Application A and Application B.
Overview of Communication Methods
1. Explicit Intents
2. Implicit Intents
3. Broadcast Receivers
@Ahmedomarpro
Ahmedomarpro / Upload Image
Created September 4, 2020 04:28
Upload Image
package com.ao.alkhalilprojectjava.appUtils.filesUpload;
import android.annotation.SuppressLint;
import android.content.ContentUris;
import android.content.Context;
import android.content.CursorLoader;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;