반응형

ide/androidstudio 38

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

android SQLite DB 열기

[안드로이드] 내부 SQLite3 데이터베이스 보기 안드로이드 SQLite DB파일 열기 View contents of database file in Android Studio SQLSCout Pull adb pull /data/data/com.android.test/databases/testdb.db ~/. Pull 권한이 안된다면 adb shell $ run-as com.domain.package $ chmod 777 databases $ chmod 777 databases/databse_name Shell adb shell sqlite3 /data/data/com.domain.test/databases/testdb.db SQLite version 3.x.xx yyyy-mm-dd H:i:s Enter..

ide/androidstudio 2017.01.17
반응형