분류 전체보기210 SharedPreferences (간단한 정보저장) MainActivity.java import android.content.SharedPreferences; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.EditText; import android.widget.TextView; public class MainActivity extends AppCompatActivity { private TextView textView1; private EditText editText; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanc.. 2019. 9. 10. 비콘감지 MainActivity.java import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.altbeacon.beacon.Beacon; import org.altbeacon.beacon.BeaconConsumer; import org.altbeacon.beacon.BeaconManager; import org.altbeacon.beacon.BeaconParser; import org.altbeacon.beacon.MonitorNotifier; import org.altbeacon.beacon.RangeNotifier; import org.altbeacon.beacon.Region; import andr.. 2019. 9. 10. EditText/TextView/ImageView/Button/Radio/RadioGroup/URI/Intent MainActivity.java import android.content.Intent; import android.media.Image; import android.net.Uri; import android.support.annotation.IdRes; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.ImageView; import android.widget.RadioButton; import android.widget.Rad.. 2019. 9. 10. Image ViewPager import android.content.Context; import android.support.annotation.NonNull; import android.support.v4.view.PagerAdapter; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import java.util.ArrayList; class ViewPagerAdapter extends PagerAdapter { private Context mContext; private ArrayList imageList; public ViewPagerAdapter.. 2019. 9. 10. 이전 1 ··· 49 50 51 52 53 다음