Skip to content

Instantly share code, notes, and snippets.

🌴
On vacation

Agus Ibrahim agusibrahim

🌴
On vacation
View GitHub Profile
@agusibrahim
agusibrahim / testgist1.java
Created Jul 3, 2017
Test Post with java Android
View testgist1.java
import id.agusibrahim.test.*;
// test file 1, generate at 3 Jul 2017 11.21.30 - 1499055690358
@agusibrahim
agusibrahim / testgist1.txt
Created Jul 3, 2017
Test Post with java Android
View testgist1.txt
test file 1, generate at 3 Jul 2017 11.18.36
@agusibrahim
agusibrahim / testgist.txt
Created Jul 3, 2017
Test Post with java Android
View testgist.txt
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.menu_login:
String token=gauth.getAccessToken();
if(token==null) doLogin();
else mPerformEdit.setDefaultText("Has Login, Token: "+token);
break;
case R.id.menu_settings:
if(gauth.getAccessToken()!=null){
doPost();
View AdapterList.java
package com.zadi.volley;
/**
* Created by Muh. Zadi on 6/9/2017.
*/
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@agusibrahim
agusibrahim / ConnectionStatus.java
Last active Jul 3, 2017
Check Network Connectivity available or not
View ConnectionStatus.java
package ai.agusibrahim.kepooto;
import java.net.Socket;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import android.os.AsyncTask;
import ai.agusibrahim.kepooto.ConnectionStatus.*;
import android.content.Context;
import android.net.ConnectivityManager;
View cuaca_MaterialDesign_agusibrahim.xml
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:background="#E01C54"
android:layout_width="match_parent">
<View
android:layout_height="match_parent"
android:layout_width="match_parent"
View cuaca_materialDesign.xml
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="match_parent"
android:background="#E01C54"
android:layout_width="match_parent">
<View
android:layout_height="match_parent"
android:layout_width="match_parent"
View dualbtn.java
alert.getButton(AlertDialog.BUTTON1).setEnabled(false);
alert.getButton(AlertDialog.BUTTON1).setEnabled(false);
View buttonsamole.java
alert.getButton(AlertDialog.BUTTON1).setEnabled(false);
You can’t perform that action at this time.