Posts

Showing posts with the label Android

Fix error retrieving pid file on termux apache

Image
Solution to "error retrieving pid file" - Termux and apache Apache errors overview: (20014) Internal error (specific information not available): AH00058: Error retrieving pid file var / run / apache2 / httpd.pid AH00059: Remove it before continuing if it is corrupted. This mistake seems while summoning apachectl either with start or with stop and here and there happens when running on Previous Install XAMPP apache on android termux . Solution Stop apache first apachectl stop Change dir: cd /data/data/com.termux/files/usr/var/run/apache2 Then delete the httpd.pid file: rm httpd.pid Or using this script: # # This script is part of the video, # Cómo instalar Apache Web Server en Android: https://youtu.be/cwp63pJMy_A and # it's intended to be used on Termux Android 32 bits in order to fix

Fix apache wont run on android

Image
Previous Install XAMPP apache on android termux Fix error starting apache on android Open httpd.conf nano /data/data/com.termux/files/usr/etc/apache2/httpd.conf Find the lines that contain LoadModule . Comment the following line with hash(#) : LoadModule mpm_worker_module libexec/apache2/mod_mpm_worker.so to # LoadModule mpm_worker_module libexec/apache2/mod_mpm_worker.so Then uncomment the following line (remove hash[#]): # LoadModule mpm_prefork_module libexec/apache2/mod_mpm_prefork.so to LoadModule mpm_prefork_module libexec/apache2/mod_mpm_prefork.so Preview:

Install XAMPP/LAMPP On Android (Non-Root)

Image
php apache setup on android with Termux (without root) Download Termux (allow installation from unknwon sources and install the termux app) Termux Setup Steps update packages (If it asks you, choose yes in both cases.) apt update -y && apt upgrade -y Install Apache and PHP 7 There is as of now a bundle that serves to introduce these two things together. That is, through apache PHP documents are prepared. To introduce our LAMPP on Android we will run: apt install php-apache That will install apache, PHP and a few libraries that will permit us to join the two things. configure apache to process the PHP files We are going to configure the httpd.conf file. Attention here, because the route is important. The apache configuration file is in /data/data/com.termux/files/usr/etc/apache2/httpd.conf You can change to that folder with: cd /data/ data /com.ter

build.gradle with custom repository

Fix missing dependencies from your gradle project (android, maven, etc) with this build.gradle. insert into YOUR_PROJECT_GRADLE/build.gradle // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { maven { url "https://maven.google.com" } jcenter() maven { url "https://jitpack.io" } maven { url "https://dl.bintray.com/android/android-tools" } maven { url "https://plugins.gradle.org/m2/" } maven { url "https://maven.fabric.io/public" } mavenCentral() mavenLocal() } dependencies { classpath 'com.android.tools.build:gradle:3.2.1' } } allprojects { repositories { maven { url "https://maven.google.com" } jcenter() maven { url "https://jitpack.io" } maven { url "https://dl.bintray.com/android/android-tools"

Cara mengetahui produk android melalui fastboot

reboot ke fastboot mode ketik fastboot devices fastboot getvar product

Android Studio Fix Issues

Image
Unsupported Modules Detected in Android Studio File -> Invalidate Caches / Restart. Close the project and Android Studio. Remove the .idea directory and all .iml files. Reopen Android Studio and import your project. If it doesn't help could you please try to reproduce this issue on the empty project and let me know about results.

Project lists for beginner

Movies App (Flutter Project)

Android Studio Set Weight Layout Programatically

Image
LinearLayout.LayoutParams param = new LinearLayout.LayoutParams( LayoutParams.MATCH_PARENT, //OR WRAP_CONTENT -> layout_width LayoutParams.MATCH_PARENT, //OR WRAP_CONTENT -> layout_height 1.0f // layout_weight 1 ); YOUR_VIEW.setLayoutParams(param);