ide 105

Unable to start activity ComponentInfo, on a null object reference

Issues with Loading AdMob Ads on App Android google ads error (null reference ?) Error java.lang.RuntimeException: Unable to start activity ComponentInfo{com.domain.sub/com.domain.sub.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.ads.AdView.loadAd(com.google.android.gms.ads.AdRequest)' on a null object reference 해당 activity 에서 R.id.a..

ide/androidstudio 2017.01.25

Android 광고, ANDROID_ID

Firebase 타켓팅 안드로이드 개발 유니크 아이디, 디바이스아이디 시리얼 넘버 관련 Is there a unique Android device ID? [Android] 단말기 고유 값 구하는 방법(Android UniqueId) AdMob 광고 코드 MobileAds.initialize(getApplicationContext(), getString(R.string.banner_ad_unit_id) ); AdView mAdView = (AdView) findViewById(R.id.adView); AdRequest request = new AdRequest.Builder() .addTestDevice(AdRequest.DEVICE_ID_EMULATOR) // All emulators .addTestDe..

ide/androidstudio 2017.01.24

초기화 값 저장/호출 SharedPreferences

개발자/Android 안드로이드개발 값 저장, 호출하는 방법 / SharedPreferences 사용 public class MainActivity extends AppCompatActivity { ... @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); init(); } @Override protected void onResume() { SharedPref..

ide/androidstudio 2017.01.23
반응형