You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'
.
Consider something like:
java -cp "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.2\plugins\java-decompiler\lib\java-decompiler.jar" org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler -dgs=true . src |
This Blog is all about memory management in Android. It provides information about how you can analyze & reduce memory usage while developing an Android app.
Memory management is a complex field of computer science and there are many techniques being developed to make it more efficient. This guide is designed to introduce you to some of the basic memory management issues that programmers face.
Android is a Linux based operating system. It uses native open source C libraries which power Linux machines. All the basic operating system operations like I/O, memory management and so on are handled by the Linux kernel. Like Java and .NET, Android uses its own run time and virtual machine to manage application memory. Unlike either of these frameworks, the Android run time also manages the lifetime processes. Each Android application runs in a separate process within its own Dalvik instance, relinquishing all responsibility for memo
import com.sun.tools.attach.VirtualMachine; | |
public class AttachClient { | |
public static void main(String[] args) throws Exception { | |
String pid = args[0]; | |
VirtualMachine vm = VirtualMachine.attach(pid); | |
System.out.println("vm = " + vm); | |
vm.detach(); | |
} |
package codepath.com.recyclerviewfun; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class Contact { | |
private String mName; | |
private boolean mOnline; | |
public Contact(String name, boolean online) { |
import com.squareup.okhttp.OkHttpClient; | |
import java.security.cert.CertificateException; | |
import javax.net.ssl.HostnameVerifier; | |
import javax.net.ssl.SSLContext; | |
import javax.net.ssl.SSLSession; | |
import javax.net.ssl.SSLSocketFactory; | |
import javax.net.ssl.TrustManager; | |
import javax.net.ssl.X509TrustManager; | |
public class OkHttpUtils { |
import android.annotation.TargetApi; | |
import android.content.Context; | |
import android.os.Build; | |
import android.text.SpannableStringBuilder; | |
import android.text.method.LinkMovementMethod; | |
import android.text.style.ClickableSpan; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.view.ViewTreeObserver; | |
import android.widget.TextView; |
package com.example.glidetest.app; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.util.Log; | |
import android.widget.ImageView; | |
import android.widget.ProgressBar; | |
import com.bumptech.glide.Glide; | |
import com.bumptech.glide.integration.okhttp.OkHttpUrlLoader; |
# Define a function that switches iterm profile | |
iterm2_profile() { echo -e "\033]50;SetProfile=$1\a"; } | |
# Change profile by $HOUR | |
# You'll need to change name of profiles to Light and Dark | |
HOUR=`date +"%H"` | |
if [ $HOUR -gt 6 ] && [ $HOUR -lt 18 ]; | |
then iterm2_profile Light; | |
else iterm2_profile Dark; | |
fi |