안드로이드97 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. 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. ViewPager MainAcivity.java import android.support.v4.app.FragmentStatePagerAdapter; import android.support.v4.view.ViewPager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import com.example.yujin.viewpager.Frgment.FirstFrgment; import com.example.yujin.viewpager.Frgment.SecondFragment; import com.example.yujin.viewpager... 2019. 9. 10. 이전 1 ··· 21 22 23 24 25 다음