Skip to content

Instantly share code, notes, and snippets.

View sakibguy's full-sized avatar
🎯
p.java

Sakibur Rahman sakibguy

🎯
p.java
View GitHub Profile
@sakibguy
sakibguy / MainActivity.java
Created October 29, 2021 07:03 — forked from udacityandroid/MainActivity.java
Android for Beginners : Menu Starter Code
package com.example.android.menu;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
public class MainActivity extends AppCompatActivity {
@Override
@sakibguy
sakibguy / ImageView.java
Created October 27, 2021 05:26 — forked from udacityandroid/ImageView.java
Android for Beginners : Simplified ImageView class
/**
* Displays an image, such as an icon.
*/
public class ImageView extends View {
// Resource ID for the source image that should be displayed in the ImageView.
private int mImageId;
// Context of the app
private Context mContext;
@sakibguy
sakibguy / TextView.java
Created October 27, 2021 05:25 — forked from udacityandroid/TextView.java
Android for Beginners : Simplified TextView class
/**
* Displays text to the user.
*/
public class TextView extends View {
// String value
private String mText;
// Text color of the text
private int mTextColor;
@sakibguy
sakibguy / Method 1
Created October 25, 2021 10:24 — forked from udacityandroid/Method 1
Android Development for Beginners : Define a Method
/**
* Get the email account name.
*
* @return the name of the account.
*/
private String getAccountName() {
return "[email protected]";
return "[email protected]";
}
@sakibguy
sakibguy / AdbCommands
Created October 21, 2021 15:58 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
/**
* This method displays the given text on the screen.
*/
private void displayMessage(String message) {
TextView priceTextView = (TextView) findViewById(R.id.price_text_view);
priceTextView.setText(message);
}
@sakibguy
sakibguy / writable-avd.md
Created October 15, 2021 14:13 — forked from interference-security/writable-avd.md
How to make AVD system and file-system writable?
@sakibguy
sakibguy / encodeCredentials.html
Created October 4, 2021 11:55 — forked from zapalote/encodeCredentials.html
Credential obfuscation and encryption to store then on a database
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js"></script>
<script>
// used to obfuscate and encrypt the credentials
const saltCredentials = "jf02heg9u64a{%m<83#@;Pxrjg17uyr#@&*%^Y";
// encode credentials before storing
function encodeCredentials(crds){
// json object expected e.g. {'api-id':'K0xf56g', 'pwd':'Some.Pa$$w0rd'}
const crd = JSON.stringify(crds);
@sakibguy
sakibguy / Android.mk
Created April 11, 2021 12:12 — forked from BoldBigflank/Android.mk
android/jni/
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := game_shared
LOCAL_MODULE_FILENAME := libgame
LOCAL_SRC_FILES := hellocpp/main.cpp \
../../Classes/AppDelegate.cpp \
#ifndef MACROS_IN_C_H
#define MACROS_IN_C_H
/* Function prototypes */
#endif // MACROS_IN_C_H