β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ Versatile Python Keylogger: Radium :
The so-called keyboard recording usually refers to recording the key operations performed by the user on the keyboard, that is, recording which keys the user has pressed. This keyboard recording activity is usually performed quietly in the background, so users who use the keyboard usually do not realize that their typing operations have been illegally monitored. In addition, the attacker can also use keyboard records to understand the habits of the target user using the computer.
pinterest.com/UndercOdeOfficial
ππΌππ πππΈβπ :
1) Radium, a keylogger with multiple functions. This tool is written in Python and has many functions as shown below:
-Application and keylogger
-Screenshot record
-Send keyboard records via email
-Recover password for Chrome, Mozilla, Filezilla, Core FTP, CyberDuck, FTPNavigator, WinSCP, Outlook, Putty, Skype and more
-Cookie stealing
-Automatic update function
-Collect system information, including internal / external IP addresses, Ipconfig and / all output, and platform version.
π¦Dependent component
1) PyHook
2) PyWin32
3) MicrosoftVisual C ++ Compiler for Python
4) PyInstaller
π¦ Tool use:
-Download dependent libraries
-Set Gmail email username and password to minimize Gmail security settings to allow all connections;
-Set up FTP server, including IP, username and password, and the directory where new version of Radium needs to be stored;
-Remember to use base64 encoding for passwords;
-Set the originalfilename variable in copytostartup (), which is the name of the exe file;
-Use Pyinstaller to make exe files;
-After recording 300 (modifiable) user keystrokes, a keyboard record is automatically sent to the attacker via email;
-After recording 500 (modifiable) user keystrokes, screenshots will be taken automatically;
-Remember, when you convert Radium to exe format, you need to modify the originalfilename and coppiedfilename variables in the copytostartup () function.
ENJOY WITH UndercOde Tutorials
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ Versatile Python Keylogger: Radium :
The so-called keyboard recording usually refers to recording the key operations performed by the user on the keyboard, that is, recording which keys the user has pressed. This keyboard recording activity is usually performed quietly in the background, so users who use the keyboard usually do not realize that their typing operations have been illegally monitored. In addition, the attacker can also use keyboard records to understand the habits of the target user using the computer.
pinterest.com/UndercOdeOfficial
ππΌππ πππΈβπ :
1) Radium, a keylogger with multiple functions. This tool is written in Python and has many functions as shown below:
-Application and keylogger
-Screenshot record
-Send keyboard records via email
-Recover password for Chrome, Mozilla, Filezilla, Core FTP, CyberDuck, FTPNavigator, WinSCP, Outlook, Putty, Skype and more
-Cookie stealing
-Automatic update function
-Collect system information, including internal / external IP addresses, Ipconfig and / all output, and platform version.
π¦Dependent component
1) PyHook
2) PyWin32
3) MicrosoftVisual C ++ Compiler for Python
4) PyInstaller
π¦ Tool use:
-Download dependent libraries
-Set Gmail email username and password to minimize Gmail security settings to allow all connections;
-Set up FTP server, including IP, username and password, and the directory where new version of Radium needs to be stored;
-Remember to use base64 encoding for passwords;
-Set the originalfilename variable in copytostartup (), which is the name of the exe file;
-Use Pyinstaller to make exe files;
-After recording 300 (modifiable) user keystrokes, a keyboard record is automatically sent to the attacker via email;
-After recording 500 (modifiable) user keystrokes, screenshots will be taken automatically;
-Remember, when you convert Radium to exe format, you need to modify the originalfilename and coppiedfilename variables in the copytostartup () function.
ENJOY WITH UndercOde Tutorials
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦Internet- Top Firefox Addon choosed by UndercOde :
instagram.com/UnderCodeTestingCompany
#adblock_plus
https://addons.mozilla.org/firefox/downloads/file/808841/adblock_plus-3.0.2-an+fx.xpi?src=dp-btn-primary
#gnome_shell_integration
https://addons.mozilla.org/firefox/downloads/file/854306/gnome_shell_integration-10-an+fx-linux.xpi?src=dp-btn-primary
#IP Address and Domain Information
https://addons.mozilla.org/firefox/downloads/file/689443/ip_address_and_domain_information-4.0.0-fx.xpi?src=dp-btn-primary
#New Hackbar
https://addons.mozilla.org/firefox/downloads/file/831304/new_hackbar-1.0.4-an+fx.xpi?src=dp-btn-primary
#HackBar (F12)
https://addons.mozilla.org/firefox/downloads/file/851494/hackbar-1.1.7-an+fx.xpi?src=dp-btn-primary
#Proxy SwitchyOmega
https://addons.mozilla.org/firefox/downloads/file/848109/proxy_switchyomega-2.5.10-an+fx.xpi?src=dp-btn-primary
#Show External IP
https://addons.mozilla.org/firefox/downloads/file/776591/show_external_ip-1.0.6-an+fx.xpi?src=dp-btn-primary
#Show Server IP
https://addons.mozilla.org/firefox/downloads/file/739407/show_server_ip-2.3-an+fx-linux.xpi?src=dp-btn-primary
#Tampermonkey
https://addons.mozilla.org/firefox/downloads/file/813574/tampermonkey-4.5.5660-an+fx.xpi?src=dp-btn-primary
#Site Stacks extension
https://addons.mozilla.org/firefox/downloads/file/745343/sitestacks_for_firefox_instant_tech_lookup-1.0.1-fx-linux.xpi?src=dp-btn-primary
#Wappalyze(baned-or adress changed)
https://addons.mozilla.org/firefox/downloads/file/852547/wappalyzer-5.4.6-an+fx.xpi?src=dp-btn-primary
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦Internet- Top Firefox Addon choosed by UndercOde :
instagram.com/UnderCodeTestingCompany
#adblock_plus
https://addons.mozilla.org/firefox/downloads/file/808841/adblock_plus-3.0.2-an+fx.xpi?src=dp-btn-primary
#gnome_shell_integration
https://addons.mozilla.org/firefox/downloads/file/854306/gnome_shell_integration-10-an+fx-linux.xpi?src=dp-btn-primary
#IP Address and Domain Information
https://addons.mozilla.org/firefox/downloads/file/689443/ip_address_and_domain_information-4.0.0-fx.xpi?src=dp-btn-primary
#New Hackbar
https://addons.mozilla.org/firefox/downloads/file/831304/new_hackbar-1.0.4-an+fx.xpi?src=dp-btn-primary
#HackBar (F12)
https://addons.mozilla.org/firefox/downloads/file/851494/hackbar-1.1.7-an+fx.xpi?src=dp-btn-primary
#Proxy SwitchyOmega
https://addons.mozilla.org/firefox/downloads/file/848109/proxy_switchyomega-2.5.10-an+fx.xpi?src=dp-btn-primary
#Show External IP
https://addons.mozilla.org/firefox/downloads/file/776591/show_external_ip-1.0.6-an+fx.xpi?src=dp-btn-primary
#Show Server IP
https://addons.mozilla.org/firefox/downloads/file/739407/show_server_ip-2.3-an+fx-linux.xpi?src=dp-btn-primary
#Tampermonkey
https://addons.mozilla.org/firefox/downloads/file/813574/tampermonkey-4.5.5660-an+fx.xpi?src=dp-btn-primary
#Site Stacks extension
https://addons.mozilla.org/firefox/downloads/file/745343/sitestacks_for_firefox_instant_tech_lookup-1.0.1-fx-linux.xpi?src=dp-btn-primary
#Wappalyze(baned-or adress changed)
https://addons.mozilla.org/firefox/downloads/file/852547/wappalyzer-5.4.6-an+fx.xpi?src=dp-btn-primary
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ small tools install-for kali
1) LinuxοΌ
sudo apt-get install screenfetch
sudo apt-get install neofetch
2) Sl
sudo apt-get install sl
3) rev
sudo apt-get install rev
4) fortuneοΌ
sudo apt-get install fortune
5) figlet
sudo apt-get install figlet
6) toilet
sudo apt-get install toilet
7) cowsay :
sudo apt-get install cowsay
8) xcowsay
sudo apt-get install xcowsay
9) cmatrixοΌ
sudo apt-get install cmatrix
10) oneko
sudo apt-get install oneko
11) lolcatοΌ
sudo apt-get install lolcat
12) postfix
apt-get -y install postfix
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ small tools install-for kali
1) LinuxοΌ
sudo apt-get install screenfetch
sudo apt-get install neofetch
2) Sl
sudo apt-get install sl
3) rev
sudo apt-get install rev
4) fortuneοΌ
sudo apt-get install fortune
5) figlet
sudo apt-get install figlet
6) toilet
sudo apt-get install toilet
7) cowsay :
sudo apt-get install cowsay
8) xcowsay
sudo apt-get install xcowsay
9) cmatrixοΌ
sudo apt-get install cmatrix
10) oneko
sudo apt-get install oneko
11) lolcatοΌ
sudo apt-get install lolcat
12) postfix
apt-get -y install postfix
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ Secure your Termux app with Termux Login
t.me/UndercOdeTesting
πππ€π₯πππππ€ππ₯ππ π & βπ¦π :
1) apt update
2) apt install git -y
3) git clone https://github.com/htr-tech/termux-login.git
4) cd termux-login
5) chmod +x *
6) sh install.sh
7) exit
THATS ALL
π¦ Tested by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ Secure your Termux app with Termux Login
t.me/UndercOdeTesting
πππ€π₯πππππ€ππ₯ππ π & βπ¦π :
1) apt update
2) apt install git -y
3) git clone https://github.com/htr-tech/termux-login.git
4) cd termux-login
5) chmod +x *
6) sh install.sh
7) exit
THATS ALL
π¦ Tested by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ Android GUI (graphical user interface) development 2020:
Part 1 :
twitter.com/UndercOdeTC
1) The Android system provides rich visual interface components, including menus, buttons, dialog boxes, and so on. The Android system uses UI design ideas in Java programming, including event handling mechanisms and layout management methods.
2) All UI classes in the Android system are based on View and ViewGroup. All subclasses of View are called Widgets, and all subclasses of ViewGroup are called Layout.
3) Activity is the interface between the Android application and the user. Each screen view corresponds to an Activity.
4) The activity itself cannot be displayed on the screen, it is more like a container for displayable components. It's like a JSP page. It doesn't display anything. It is responsible for displaying various HTML tags in the JSP page. A JSP page is like a container that loads these expressions
π¦ So in the Android application, who is really responsible for the display? The answer is View and ViewGroup, where ViewGroup is a subclass of View.
1) The Android UI interface is a combination of View (View) and ViewGroup and their derived classes.
2) View is the base class for all UI components. Basically, all advanced UI components are implemented by inheriting the View class, such as TextView (Text Box), Button, List, EditText (Edit Box), Checkbox, etc. A View occupies a rectangular area on the screen and is responsible for rendering this rectangular area. It can also handle events that occur in this rectangular area, and can set whether the area is visible and get focus.
3) ViewGroup is a container that holds these components. It is also derived from View. It inherits from Android.view.View. Its function is to load and manage the next level of View object or ViewGroup object, which means that it is a container for other The element container is responsible for the management and layout of the added View and ViewGroup.
4) ViewGroup can contain one or any number of views (views), and it can also contain sub-ViewGroups as lower levels, and sub-ViewGroups can contain View and ViewGroup of leaf nodes in the next level. This flexible hierarchical relationship can form complex UI layouts.
5) The user interface UI formed during development generally comes from direct or indirect subclasses of the View and ViewGroup classes.
> For example, the direct subclasses derived from View are AnalogClock, ImageView, KeyboardView, ProgressBar, Space, SurfaceView, TextView, TextureView, ViewGroup, ViewStub, and so on.
6) The direct subclasses derived from ViewGroup are AbsoluteLayout, FragmentBreadCrumbs, FrameLayout, GridLayout, LinearLayout, RelativeLayout, SlidingDrawer, etc.
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ Android GUI (graphical user interface) development 2020:
Part 1 :
twitter.com/UndercOdeTC
1) The Android system provides rich visual interface components, including menus, buttons, dialog boxes, and so on. The Android system uses UI design ideas in Java programming, including event handling mechanisms and layout management methods.
2) All UI classes in the Android system are based on View and ViewGroup. All subclasses of View are called Widgets, and all subclasses of ViewGroup are called Layout.
3) Activity is the interface between the Android application and the user. Each screen view corresponds to an Activity.
4) The activity itself cannot be displayed on the screen, it is more like a container for displayable components. It's like a JSP page. It doesn't display anything. It is responsible for displaying various HTML tags in the JSP page. A JSP page is like a container that loads these expressions
π¦ So in the Android application, who is really responsible for the display? The answer is View and ViewGroup, where ViewGroup is a subclass of View.
1) The Android UI interface is a combination of View (View) and ViewGroup and their derived classes.
2) View is the base class for all UI components. Basically, all advanced UI components are implemented by inheriting the View class, such as TextView (Text Box), Button, List, EditText (Edit Box), Checkbox, etc. A View occupies a rectangular area on the screen and is responsible for rendering this rectangular area. It can also handle events that occur in this rectangular area, and can set whether the area is visible and get focus.
3) ViewGroup is a container that holds these components. It is also derived from View. It inherits from Android.view.View. Its function is to load and manage the next level of View object or ViewGroup object, which means that it is a container for other The element container is responsible for the management and layout of the added View and ViewGroup.
4) ViewGroup can contain one or any number of views (views), and it can also contain sub-ViewGroups as lower levels, and sub-ViewGroups can contain View and ViewGroup of leaf nodes in the next level. This flexible hierarchical relationship can form complex UI layouts.
5) The user interface UI formed during development generally comes from direct or indirect subclasses of the View and ViewGroup classes.
> For example, the direct subclasses derived from View are AnalogClock, ImageView, KeyboardView, ProgressBar, Space, SurfaceView, TextView, TextureView, ViewGroup, ViewStub, and so on.
6) The direct subclasses derived from ViewGroup are AbsoluteLayout, FragmentBreadCrumbs, FrameLayout, GridLayout, LinearLayout, RelativeLayout, SlidingDrawer, etc.
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ Android uses XML files to define user interface 2020 develope your own android :
instagram.com/UndercOdeTestingCompany
π¦ ππΌππ πππΈβπ
Before building a user interface with XML, we need to revisit the directory structure of the Android project.
1) taking HelloAndroid as an example, the project view lists the directory structure of the project.
(check picture by UndercOde)
π¦ Here is a brief introduction to the Android directory:
1) At .the beginning of the catalog is AS generated directory assistance, without user intervention.
2) The HelloAndroid folder is a module directory, and the programming work is mainly concentrated in this directory, which is equivalent to the project folder built using Eclipse, which contains folders such as build, src, and res.
3) The res directory is the resource directory used in the Android project. The resources involved in the user UI are basically placed in this directory.
4) For each resource file in the res directory, AAPT (Android Asset Packaging Tool) generates a corresponding public static final ID number for it, and places it in the R.java file in the build directory. To access the corresponding resources.
5) The build directory is automatically generated by AS and does not need to be modified by the user.
6) The res / drawable / directory is used to store the image files used in the project. After the drawable, hdpi, ldpi, and mdpi are used to place high-resolution, low-resolution, and medium-resolution images to accommodate different resolution phones.
7) The Android system will Automatically select a picture file with the appropriate resolution according to the configuration information of the user's mobile phone, without the need for programmer intervention.
The res / layout / directory stores XML files that define UI layout files.
8) The default file name is main.xml.
9) The res / values ββ/ directory stores files used to store some string information used in the project. The default file name is strings.xml.
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ Android uses XML files to define user interface 2020 develope your own android :
instagram.com/UndercOdeTestingCompany
π¦ ππΌππ πππΈβπ
Before building a user interface with XML, we need to revisit the directory structure of the Android project.
1) taking HelloAndroid as an example, the project view lists the directory structure of the project.
(check picture by UndercOde)
π¦ Here is a brief introduction to the Android directory:
1) At .the beginning of the catalog is AS generated directory assistance, without user intervention.
2) The HelloAndroid folder is a module directory, and the programming work is mainly concentrated in this directory, which is equivalent to the project folder built using Eclipse, which contains folders such as build, src, and res.
3) The res directory is the resource directory used in the Android project. The resources involved in the user UI are basically placed in this directory.
4) For each resource file in the res directory, AAPT (Android Asset Packaging Tool) generates a corresponding public static final ID number for it, and places it in the R.java file in the build directory. To access the corresponding resources.
5) The build directory is automatically generated by AS and does not need to be modified by the user.
6) The res / drawable / directory is used to store the image files used in the project. After the drawable, hdpi, ldpi, and mdpi are used to place high-resolution, low-resolution, and medium-resolution images to accommodate different resolution phones.
7) The Android system will Automatically select a picture file with the appropriate resolution according to the configuration information of the user's mobile phone, without the need for programmer intervention.
The res / layout / directory stores XML files that define UI layout files.
8) The default file name is main.xml.
9) The res / values ββ/ directory stores files used to store some string information used in the project. The default file name is strings.xml.
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ Android uses XML files to define user interface 2020 develope your own android :Part 2
instagram.com/UndercOdeTestingCompany
π¦ ππΌππ πππΈβπ
1) each directory can store multiple XML files, which can be created by the developer. It can be seen that the user UI design used in the Android project and the strings involved in the user UI are stored by XML files. The Android system uses XML files to define user views.
2) Click to open the string.xml file under the values ββfolder, which displays the following code:
<? xml version = "1.0" encoding = "UTF-8"?>
<resources>
<string name = "hello" > Hello Android! </ string>
<string name = "app_name" > HelloAndroid </ string>
</ resources>
The first part of the file <?xml version="1.0" encoding="utf-8"?>defines the version number and character encoding of the XML. This part will be present in all XML files. It is automatically added by the system and does not need to be modified.
3) The <resources> tag defines two variables, hello and app_name, which can be used directly by HelloAndroid projects. When the file is modified, the R.java file in the gen directory will be updated accordingly.
4) Double-click the main.xml file, the code is as follows:
<? xml version = "1.0" encoding = "utf-8"?>
<LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android"
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: orientation = "vertical" >
<TextView
android: id = "@ + id / textView1"
android: layout_width = "fill_parent"
android: layout_height = "wrap_content"
android: text = "@ string / hello" />
</ LinearLayout>
5) You can add various UI components between <LinearLayout ...> and </ LinearLayout> and set related properties of the components, such as the height, width, and content of the components. The usage methods of various common components will be described in detail later.
6) What is added to the HelloAndroid instance is a TextView component, which is equivalent to a label that displays the content. The Android SDK provides a @[<package_ name>:]<resource_type>/<resource_name>way to access project resources from an XML file.
7)Let's briefly introduce the properties in TextView:
android: layout_width = "fill_parent" specifies that its width covers the width of the full container.
android: layout_height = "wrap_content" specifies that its height changes with its display content.
android: id = "@ + id / textView1" indicates that the TextView's ID value is a member constant of the ID class textView1 in the R.java file.
android: text = "@ string / hello" indicates that the content displayed by this TextView component is the content of the hello variable defined in the resource file string.xml.
The android: text attribute can also directly specify the string to be displayed, but this method is discouraged in the actual project development process. Instead, you should use variables in the resource file because it is convenient for project maintenance and internationalization.
8) In this tutorial, in order to save space, some components with simple display content use the method of direct string assignment.
9) The resource files used in the Android project will generate corresponding entries in R.java in the gen directory. The system assigns each resource a hexadecimal integer value that uniquely identifies each resource.
π¦ Android uses XML files to define user interface 2020 develope your own android :Part 2
instagram.com/UndercOdeTestingCompany
π¦ ππΌππ πππΈβπ
1) each directory can store multiple XML files, which can be created by the developer. It can be seen that the user UI design used in the Android project and the strings involved in the user UI are stored by XML files. The Android system uses XML files to define user views.
2) Click to open the string.xml file under the values ββfolder, which displays the following code:
<? xml version = "1.0" encoding = "UTF-8"?>
<resources>
<string name = "hello" > Hello Android! </ string>
<string name = "app_name" > HelloAndroid </ string>
</ resources>
The first part of the file <?xml version="1.0" encoding="utf-8"?>defines the version number and character encoding of the XML. This part will be present in all XML files. It is automatically added by the system and does not need to be modified.
3) The <resources> tag defines two variables, hello and app_name, which can be used directly by HelloAndroid projects. When the file is modified, the R.java file in the gen directory will be updated accordingly.
4) Double-click the main.xml file, the code is as follows:
<? xml version = "1.0" encoding = "utf-8"?>
<LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android"
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: orientation = "vertical" >
<TextView
android: id = "@ + id / textView1"
android: layout_width = "fill_parent"
android: layout_height = "wrap_content"
android: text = "@ string / hello" />
</ LinearLayout>
5) You can add various UI components between <LinearLayout ...> and </ LinearLayout> and set related properties of the components, such as the height, width, and content of the components. The usage methods of various common components will be described in detail later.
6) What is added to the HelloAndroid instance is a TextView component, which is equivalent to a label that displays the content. The Android SDK provides a @[<package_ name>:]<resource_type>/<resource_name>way to access project resources from an XML file.
7)Let's briefly introduce the properties in TextView:
android: layout_width = "fill_parent" specifies that its width covers the width of the full container.
android: layout_height = "wrap_content" specifies that its height changes with its display content.
android: id = "@ + id / textView1" indicates that the TextView's ID value is a member constant of the ID class textView1 in the R.java file.
android: text = "@ string / hello" indicates that the content displayed by this TextView component is the content of the hello variable defined in the resource file string.xml.
The android: text attribute can also directly specify the string to be displayed, but this method is discouraged in the actual project development process. Instead, you should use variables in the resource file because it is convenient for project maintenance and internationalization.
8) In this tutorial, in order to save space, some components with simple display content use the method of direct string assignment.
9) The resource files used in the Android project will generate corresponding entries in R.java in the gen directory. The system assigns each resource a hexadecimal integer value that uniquely identifies each resource.
The R.java file code in the HelloAndroid project is as follows:
Plain Text Copy
package introduction . android . helloandroid ;
public final class R {
public static final class attr {
}
public static final class drawable {
public static final int ic_launcher = 0x7f020000 ;
}
public static final class id {
public static final int textView1 = 0x7f050000 ;
}
public static final class layout {
public static final int main = 0x7f030000 ;
}
public static final class string {
public static final int app_name = 0x7f040001 ;
public static final int hello = 0x7f040000 ;
}
}
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
Plain Text Copy
package introduction . android . helloandroid ;
public final class R {
public static final class attr {
}
public static final class drawable {
public static final int ic_launcher = 0x7f020000 ;
}
public static final class id {
public static final int textView1 = 0x7f050000 ;
}
public static final class layout {
public static final int main = 0x7f030000 ;
}
public static final class string {
public static final int app_name = 0x7f040001 ;
public static final int hello = 0x7f040000 ;
}
}
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ Part 3 android develop;
1) As can be seen from this file, R is a static final class. The public static final class layout represents the contents of the res / layout folder, and each integer constant of the layout class represents an XML layout file under the folder.
2) For example, public static final int main represents the main.xml file, and 0x7f030000 is an integer value generated by the system's main.xml file. Find the main.xml file based on this value in the Android project. public static final class string represents the res / values ββ/ strings.xml file, and each integer constant member in the string class represents a variable defined in the strings.xml file. For example, public static final int app_name represents the app_name variable defined in strings.xml, and public static final int hello represents the hello variable defined in the sts.xml file.
3) During project development, you can access any resource defined in R through [<package_name>.] R. <resource_type>. <Resource_name>. among them:
package_name is the package path where the resource file is placed, and can be omitted in general.
resource_type is the resource type, such as layout, string, color, drawable, menu, etc.
resource_name refers to the name of the integer constant defined in the class for the resource file.
4) Consider the following example:
setContentView (R.layout.main);
5) In this line of code, the layout file main.xml is found through R.layout.main, and it is set as the view of the current Activity through the setContentView method. To find a component from a view, you need to use the findViewById method to get the component's object by the component ID.
6) For example, to get the TextView component object in main.xml, you need to execute the following code:
TextView textview = (TextView) findViewById (R.id.textView1);
π¦ Keep tunning with undercode we have all parts ready to sent later
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ Part 3 android develop;
1) As can be seen from this file, R is a static final class. The public static final class layout represents the contents of the res / layout folder, and each integer constant of the layout class represents an XML layout file under the folder.
2) For example, public static final int main represents the main.xml file, and 0x7f030000 is an integer value generated by the system's main.xml file. Find the main.xml file based on this value in the Android project. public static final class string represents the res / values ββ/ strings.xml file, and each integer constant member in the string class represents a variable defined in the strings.xml file. For example, public static final int app_name represents the app_name variable defined in strings.xml, and public static final int hello represents the hello variable defined in the sts.xml file.
3) During project development, you can access any resource defined in R through [<package_name>.] R. <resource_type>. <Resource_name>. among them:
package_name is the package path where the resource file is placed, and can be omitted in general.
resource_type is the resource type, such as layout, string, color, drawable, menu, etc.
resource_name refers to the name of the integer constant defined in the class for the resource file.
4) Consider the following example:
setContentView (R.layout.main);
5) In this line of code, the layout file main.xml is found through R.layout.main, and it is set as the view of the current Activity through the setContentView method. To find a component from a view, you need to use the findViewById method to get the component's object by the component ID.
6) For example, to get the TextView component object in main.xml, you need to execute the following code:
TextView textview = (TextView) findViewById (R.id.textView1);
π¦ Keep tunning with undercode we have all parts ready to sent later
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦Lets send some gd scripts for beginers
2020 updqated script :You can use setupTermuxArch.bash , to install Arch Linux in Amazon, Android, Chromebook and Windows
instagram.com/UndercOdeTestingCompany
πππ€π₯πππππ€ππ₯ππ π & βπ¦π :
1) git clone https://github.com/SDRausty/TermuxArch
2) cd TermuxArch
3) setupTermuxArch.bash
4) startarch
THats all!
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦Lets send some gd scripts for beginers
2020 updqated script :You can use setupTermuxArch.bash , to install Arch Linux in Amazon, Android, Chromebook and Windows
instagram.com/UndercOdeTestingCompany
πππ€π₯πππππ€ππ₯ππ π & βπ¦π :
1) git clone https://github.com/SDRausty/TermuxArch
2) cd TermuxArch
3) setupTermuxArch.bash
4) startarch
THats all!
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
GitHub
GitHub - SDRausty/TermuxArch: You can use setupTermuxArch.bash π² to install Arch Linux in Amazon, Android, Chromebook and Windows.β¦
You can use setupTermuxArch.bash π² to install Arch Linux in Amazon, Android, Chromebook and Windows. https://sdrausty.github.io/TermuxArch/docs/install - SDRausty/TermuxArch
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦Five Android layouts: FrameLayout, LinearLayout, AbsoluteLayout, RelativeLayout, and TableLayout: Part 1
>The Android SDK defines multiple layouts to facilitate user design of the UI. The various layout methods are subclasses of the ViewGroup class, and the structure is shown in picture after this chat
twitter.com/UndercOdeTC
π¦ ππΌππ πππΈβπ
1) FrameLayout
> FrameLayout, also known as single frame layout, is the simplest layout among the layout methods provided by Android. It specifies a blank area on the screen and fills a single object in the area. For example pictures, text, buttons, etc.
2) Application developers cannot specify specific fill positions for components filled in FrameLayout. By default, these components will be fixed in the upper left corner of the screen, and components placed later will be placed on the previous component to cover and fill, forming a part. Block or block all.
3) Developers can make appropriate modifications to the component location through the component's android: layout_gravity property.
4) An example FrameLayoutDemo demonstrates the layout effect of FrameLayout. There are 4 TextView components in the layout. The first 3 components are placed in the layout by default. The fourth component is placed in the layout after modifying the gravity property
π¦Part of code of the layout file main.xml in the example FrameLayoutDemo is as follows:
Plain Text Copy
<? xml version = "1.0" encoding = "utf-8"?>
<FrameLayout xmlns: android = "http://schemas.android.com/apk/res/android"
android: layout_height = "fill_parent"
android: layout_width = "fill_parent" >
<TextView
android: id = "@ + id / text1"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: textColor = "# 00ff00"
android: textsize = "1OOdip"
android: text = "@ string / first" />
<TextView
android: id = "@ + id / text2"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: textColor = "# 00ffff"
android: textsize = "70dip"
android: text = "@ string / second" />
<TextView
android: id = "@ + id / text3"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: textColor = "# ffOOOO"
.....
...
</ FrameLayout>
among them:
android: layout_width = "wrap_content"
....
π¦ LinearLayout
> LinearLayout, also known as linear layout, should be the most commonly used layout in Android view design. This layout allows the components placed in it to be arranged neatly horizontally or vertically. The specific arrangement is specified by the android: orientation property, and the weight of each component in the layout is set by the weight property.
>The strings.xml file code in the example LinearLayoutDemo is as f ollows:
Plain Text Copy
<? xml version = "1.0" encoding = "UTF-8"?>
<resources>
<string name = "app_name" > LinearLayoutDemo </ string>
<string name = "red" > red </ string>
<string name = "yellow" > yellow </ string
...
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦Five Android layouts: FrameLayout, LinearLayout, AbsoluteLayout, RelativeLayout, and TableLayout: Part 1
>The Android SDK defines multiple layouts to facilitate user design of the UI. The various layout methods are subclasses of the ViewGroup class, and the structure is shown in picture after this chat
twitter.com/UndercOdeTC
π¦ ππΌππ πππΈβπ
1) FrameLayout
> FrameLayout, also known as single frame layout, is the simplest layout among the layout methods provided by Android. It specifies a blank area on the screen and fills a single object in the area. For example pictures, text, buttons, etc.
2) Application developers cannot specify specific fill positions for components filled in FrameLayout. By default, these components will be fixed in the upper left corner of the screen, and components placed later will be placed on the previous component to cover and fill, forming a part. Block or block all.
3) Developers can make appropriate modifications to the component location through the component's android: layout_gravity property.
4) An example FrameLayoutDemo demonstrates the layout effect of FrameLayout. There are 4 TextView components in the layout. The first 3 components are placed in the layout by default. The fourth component is placed in the layout after modifying the gravity property
π¦Part of code of the layout file main.xml in the example FrameLayoutDemo is as follows:
Plain Text Copy
<? xml version = "1.0" encoding = "utf-8"?>
<FrameLayout xmlns: android = "http://schemas.android.com/apk/res/android"
android: layout_height = "fill_parent"
android: layout_width = "fill_parent" >
<TextView
android: id = "@ + id / text1"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: textColor = "# 00ff00"
android: textsize = "1OOdip"
android: text = "@ string / first" />
<TextView
android: id = "@ + id / text2"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: textColor = "# 00ffff"
android: textsize = "70dip"
android: text = "@ string / second" />
<TextView
android: id = "@ + id / text3"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: textColor = "# ffOOOO"
.....
...
</ FrameLayout>
among them:
android: layout_width = "wrap_content"
....
π¦ LinearLayout
> LinearLayout, also known as linear layout, should be the most commonly used layout in Android view design. This layout allows the components placed in it to be arranged neatly horizontally or vertically. The specific arrangement is specified by the android: orientation property, and the weight of each component in the layout is set by the weight property.
>The strings.xml file code in the example LinearLayoutDemo is as f ollows:
Plain Text Copy
<? xml version = "1.0" encoding = "UTF-8"?>
<resources>
<string name = "app_name" > LinearLayoutDemo </ string>
<string name = "red" > red </ string>
<string name = "yellow" > yellow </ string
...
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦PART 2 Five Android layouts: FrameLayout, LinearLayout, AbsoluteLayout, RelativeLayout, and TableLayout:
twitter.com/UndercOdeTC
π¦ ππΌππ πππΈβπ
1) The first LinearLayout layout sets the layout to a horizontal linear arrangement via the android: orientation = "horizontal" attribute.
2) The second LinearLayout layout sets the layout to vertical linear arrangement via the android: orientation = "vertical" attribute.
3) Four TextViews are placed in each LinearLayout layout, and the proportion of each component in the layout is set by the android: layout_weight property, that is, the components are the same size.
> layout_weight is used to define the importance of a component in a linear layout. All components have a layout_weight value, which defaults to 0.
> This means how much screen space is needed to display as many views as possible. If the value is greater than 0, the available space is divided. The size of the division depends on the ratio of the current layout_weight value to the layout_weight value of other spaces.
4) For example, if there are two buttons in the horizontal direction, and the layout_weight value of each button is set to 1, then the two buttons divide the width equally; if the first is 1, and the second is 2, then one third of the space Give the first and two-thirds to the second
π¦RelativeLayout :
1) RelativeLayout is also called relative layout. As can be seen from the name, this layout is a layout that allows components to be placed relative to the container or to another component in the container.
2) The RelativeLayout layout provides some commonly used layout setting properties to determine the relative position of the component in the view. The following lists the RelativeLayout related properties and their meanings.
RelativeLayout layout common properties
Attributes description
android: layout_above = "@ id / xxx" Place the control on top of the given ID control
android: layout_below = "@ id / xxx" Place the control under the given ID control
android: layout_toLeftOf = "@ id / xxx" Align the right edge of the control to the left edge of the given ID control
android: layout_toRightOf = "@ id / xxx" Align the left edge of the control with the right edge of the given ID control
android: layout_alignBaseline = "@ id / xxx" Align the baseline of the control to the baseline of the given ID
android: layout_alignTop = "@ id / xxx" Align the top edge of the control to the top edge of the given ID control
android: layout_alignBottom = "@ id / xxx" Align the bottom edge of the control to the bottom edge of the given ID control
android: layout_alignLeft = "@ id / xxx" Align the left edge of the control with the left edge of the given ID control
android: layout_alignRight = "@ id / xxx" Align the right edge of the control with the right edge of the given ID control
android: layout_alignParentLeft = "true" Align the left edge of the control to the left edge of the parent control
android: layout_alignParentTop = "true" Align the top edge of the control to the top edge of the parent control
android: layout_alignParentRight = "true" Align the right edge of the control to the right edge of the parent control
android: layout_alignParentBottom = "true" Align the bottom edge of the control with the bottom edge of the parent control
android: layout_centerInParent = "true" Place the control in the center of the parent control
android: layout_centerHorizontal = "true" Center the control in the horizontal direction
android: layout_centerVertical = "true" Center the control in the vertical direction
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦PART 2 Five Android layouts: FrameLayout, LinearLayout, AbsoluteLayout, RelativeLayout, and TableLayout:
twitter.com/UndercOdeTC
π¦ ππΌππ πππΈβπ
1) The first LinearLayout layout sets the layout to a horizontal linear arrangement via the android: orientation = "horizontal" attribute.
2) The second LinearLayout layout sets the layout to vertical linear arrangement via the android: orientation = "vertical" attribute.
3) Four TextViews are placed in each LinearLayout layout, and the proportion of each component in the layout is set by the android: layout_weight property, that is, the components are the same size.
> layout_weight is used to define the importance of a component in a linear layout. All components have a layout_weight value, which defaults to 0.
> This means how much screen space is needed to display as many views as possible. If the value is greater than 0, the available space is divided. The size of the division depends on the ratio of the current layout_weight value to the layout_weight value of other spaces.
4) For example, if there are two buttons in the horizontal direction, and the layout_weight value of each button is set to 1, then the two buttons divide the width equally; if the first is 1, and the second is 2, then one third of the space Give the first and two-thirds to the second
π¦RelativeLayout :
1) RelativeLayout is also called relative layout. As can be seen from the name, this layout is a layout that allows components to be placed relative to the container or to another component in the container.
2) The RelativeLayout layout provides some commonly used layout setting properties to determine the relative position of the component in the view. The following lists the RelativeLayout related properties and their meanings.
RelativeLayout layout common properties
Attributes description
android: layout_above = "@ id / xxx" Place the control on top of the given ID control
android: layout_below = "@ id / xxx" Place the control under the given ID control
android: layout_toLeftOf = "@ id / xxx" Align the right edge of the control to the left edge of the given ID control
android: layout_toRightOf = "@ id / xxx" Align the left edge of the control with the right edge of the given ID control
android: layout_alignBaseline = "@ id / xxx" Align the baseline of the control to the baseline of the given ID
android: layout_alignTop = "@ id / xxx" Align the top edge of the control to the top edge of the given ID control
android: layout_alignBottom = "@ id / xxx" Align the bottom edge of the control to the bottom edge of the given ID control
android: layout_alignLeft = "@ id / xxx" Align the left edge of the control with the left edge of the given ID control
android: layout_alignRight = "@ id / xxx" Align the right edge of the control with the right edge of the given ID control
android: layout_alignParentLeft = "true" Align the left edge of the control to the left edge of the parent control
android: layout_alignParentTop = "true" Align the top edge of the control to the top edge of the parent control
android: layout_alignParentRight = "true" Align the right edge of the control to the right edge of the parent control
android: layout_alignParentBottom = "true" Align the bottom edge of the control with the bottom edge of the parent control
android: layout_centerInParent = "true" Place the control in the center of the parent control
android: layout_centerHorizontal = "true" Center the control in the horizontal direction
android: layout_centerVertical = "true" Center the control in the vertical direction
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ Android developpements part 4:
instagram.com/UndercOdeTestingCompany
π¦ ππΌππ πππΈβπ
π¦ AbsoluteLayout:
1) AbsoluteLayout is also called absolute layout. Components placed in this layout need to specify their exact coordinate values ββthrough the two properties android: layout_x and android: layout_y and display them on the screen.
2) In theory, AbsoluteLayout can be used to complete any layout design, and it has great flexibility, but it is not recommended in actual engineering applications. Because using this layout not only needs to accurately calculate the size of each component, increase the amount of calculation, but also produces different effects when the application runs on mobile phones with different screen sizes.
3) An example AbsoluteLayoutDemo demonstrates the use of AbsoluteLayout layout
> check picture about this chat
π¦ The TableLayout layout provides several special properties that can achieve the following special effects.
1) android: shrinkColumns property: This property is used to set shrinkable columns. When the collapsible column is too wide for other columns in the layout to display completely, the collapsible column will stretch vertically, compressing the space it takes up so that the other columns can be fully displayed. android: shrinkColumns = "1" means that the second column is set as a shrinkable column and the number of columns starts from 0.
2) android: stretchColumns property: This property is used to set stretchable columns. Stretchable columns automatically expand to fill all available space. android: stretchColumns = "1" means set the second column as a stretchable column.
3) android: collapseColumns property: This property is used to set hidden columns. android: collapseColumns = "1" means the second column is hidden and not displayed.
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦ Android developpements part 4:
instagram.com/UndercOdeTestingCompany
π¦ ππΌππ πππΈβπ
π¦ AbsoluteLayout:
1) AbsoluteLayout is also called absolute layout. Components placed in this layout need to specify their exact coordinate values ββthrough the two properties android: layout_x and android: layout_y and display them on the screen.
2) In theory, AbsoluteLayout can be used to complete any layout design, and it has great flexibility, but it is not recommended in actual engineering applications. Because using this layout not only needs to accurately calculate the size of each component, increase the amount of calculation, but also produces different effects when the application runs on mobile phones with different screen sizes.
3) An example AbsoluteLayoutDemo demonstrates the use of AbsoluteLayout layout
> check picture about this chat
π¦ The TableLayout layout provides several special properties that can achieve the following special effects.
1) android: shrinkColumns property: This property is used to set shrinkable columns. When the collapsible column is too wide for other columns in the layout to display completely, the collapsible column will stretch vertically, compressing the space it takes up so that the other columns can be fully displayed. android: shrinkColumns = "1" means that the second column is set as a shrinkable column and the number of columns starts from 0.
2) android: stretchColumns property: This property is used to set stretchable columns. Stretchable columns automatically expand to fill all available space. android: stretchColumns = "1" means set the second column as a stretchable column.
3) android: collapseColumns property: This property is used to set hidden columns. android: collapseColumns = "1" means the second column is hidden and not displayed.
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦Adnroid developpements Customize views :
> Here is a brief introduction to the units of size types commonly used in the Android system.
1) Pixel: Abbreviated as px. Represents physical pixels on the screen.
2) Pounds: points, abbreviated as pt. 1pt equals 1/72 of an inch and is often used in the printing industry.
3) Zoom in on pixels: sp. It is mainly used for font display. Android uses sp as the font size unit by default.
4) Density Independent Pixel: Abbreviated as dip or dp. This size uses a 160dp screen as a reference, and then uses this screen to map to the actual screen. There will be corresponding scaling effects on screens with different resolutions to apply to screens with different resolutions. If you use px, 320px occupies the width of HVGA. On WVGA, you can only take up less than half of the screen. It must not be what you want.
Millimeter: mm.
π¦ WebView
1) The WebView component is a subclass of AbsoluteLayout and is used to display Web pages. With WebView, you can easily develop your own web browser. Only the basic usage of WebView is introduced here, and it will be further explained in the later study of Web App.
2) Create a project WebViewDemo and add Internet access to it in the AndroidManifest.xml file:
<uses-permission android: name = "android.permission.INTERNET" />
2) Add a WebView component to the layout file main.xml. The content of Main.xml is as follows:
<? xml version = "1.0" encoding = "utf-8"?>
<LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android"
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: orientation = "vertical" >
<WebView
android: id = "@ + id / webView1"
android: layout_width = "match_parent"
android: layout_height = "match_parent" />
</ LinearLayout>
The code of the Activity file WebViewDemoActivity.java in the example WebViewDemo is as follows:
Plain Text Copy
package introduction . android . webView ;
import android . app . Activity ;
import android . os . Bundle ;
Import Android . WebKit . WebView ;
public class WebViewDemoActivity extends Activity {
private WebView webView ;
/ **
* Called when the acctivity is first crested .
* /
@Override
public void onCreate ( Bundle saveInstanceState ) {
super . onCreate ( saveInstanceState );
the setContentView ( R & lt . layout . main );
the webView = ( the WebView ) the findViewById ( R & lt . ID . webView1 );
webView . getSettings (). set JavaScript Enabled ( true );
webView . loadUrl ( "http://www.google.com" );
}
}
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β
π¦Adnroid developpements Customize views :
> Here is a brief introduction to the units of size types commonly used in the Android system.
1) Pixel: Abbreviated as px. Represents physical pixels on the screen.
2) Pounds: points, abbreviated as pt. 1pt equals 1/72 of an inch and is often used in the printing industry.
3) Zoom in on pixels: sp. It is mainly used for font display. Android uses sp as the font size unit by default.
4) Density Independent Pixel: Abbreviated as dip or dp. This size uses a 160dp screen as a reference, and then uses this screen to map to the actual screen. There will be corresponding scaling effects on screens with different resolutions to apply to screens with different resolutions. If you use px, 320px occupies the width of HVGA. On WVGA, you can only take up less than half of the screen. It must not be what you want.
Millimeter: mm.
π¦ WebView
1) The WebView component is a subclass of AbsoluteLayout and is used to display Web pages. With WebView, you can easily develop your own web browser. Only the basic usage of WebView is introduced here, and it will be further explained in the later study of Web App.
2) Create a project WebViewDemo and add Internet access to it in the AndroidManifest.xml file:
<uses-permission android: name = "android.permission.INTERNET" />
2) Add a WebView component to the layout file main.xml. The content of Main.xml is as follows:
<? xml version = "1.0" encoding = "utf-8"?>
<LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android"
android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: orientation = "vertical" >
<WebView
android: id = "@ + id / webView1"
android: layout_width = "match_parent"
android: layout_height = "match_parent" />
</ LinearLayout>
The code of the Activity file WebViewDemoActivity.java in the example WebViewDemo is as follows:
Plain Text Copy
package introduction . android . webView ;
import android . app . Activity ;
import android . os . Bundle ;
Import Android . WebKit . WebView ;
public class WebViewDemoActivity extends Activity {
private WebView webView ;
/ **
* Called when the acctivity is first crested .
* /
@Override
public void onCreate ( Bundle saveInstanceState ) {
super . onCreate ( saveInstanceState );
the setContentView ( R & lt . layout . main );
the webView = ( the WebView ) the findViewById ( R & lt . ID . webView1 );
webView . getSettings (). set JavaScript Enabled ( true );
webView . loadUrl ( "http://www.google.com" );
}
}
Written by UndercOde
β β β ο½ππ»βΊπ«Δπ¬πβ β β β