Programming/android2020. 6. 7. 11:59

UI에 onClick 함수 하나가 이름이 잘못되었을 뿐인데(!)

어떠한 버튼을 누르던 에러가 발생을 했다.

일단 에러 자체는 해당 함수를 찾을수 없다는 것인데

런타임에서 너무 광범위 하게 에러를 발생 시키는듯?

 

[링크 : https://dreamaz.tistory.com/225]

Posted by 구차니
Programming/android2020. 6. 7. 11:23

키즈카페에 와서 느긋하게 에러를 읽으면서 하는데 음.. 그러니까 0,0 으로 뛰니 제한을 걸어주면 되는건가 싶어서

 

메뉴를 찾아보니 해당 기능을 발견! 하나하나 지정해주니 에러는 사라진다.

 

constraint를 버튼 하나마다 위에서, 왼쪽에서 이런식으로 다 지정을 해주었더니

 

너.. 어디로 가니 -ㅁ-?

 

+

 

Posted by 구차니
Programming/android2020. 6. 7. 11:11

되긴 한데.. 경고가 뜨네?

이거 말고 이전에 MainActivity.java 에서 강제로 방향 설정할때도 경고 뜨던데.. 그냥 무시해도 되려나?

 

 

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.rpiremotecontrol">

    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity"
            android:screenOrientation="landscape"
            >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

[링크 : https://alvinalexander.com/.../how-do-i-make-my-android-app-display-landscape-mode-only/]

Posted by 구차니
Programming/android2020. 6. 7. 10:52

오전 10:47 Emulator: qemu-system-i386: warning: TSC frequency mismatch between VM (2494335 kHz) and host (2494333 kHz), and TSC scaling unavailable

 

위와 같은 에러가 발생해서 확인해보니

AVD Manager에서 Wipe Data 하면 된다고 한다.

일단 저장 공간이 4기가 먹던게 2.4로 줄어들고 처음부터 구동하더니 잘 된다.

 

[링크 : https://askubuntu.com/questions/1005268/qemu-frequency-mismatch-on-kubuntu]

Posted by 구차니
Programming/android2020. 6. 7. 10:50

요즘 개발을 안했더니 바보가 된 느낌?

일단 github에 저장소 생성하고

git remote에 등록을 한다고 해서 저장소가 끌려오는게 아닌데 착각을 해서 헤매는 중

 

안드로이드 스튜디오 git 사용하려면

 

github에서

1. git repository 생성

안드로이드 스튜디오에서

2. git remote 등록

3. git pull

4. git branch 실행 remote 의 origin/master 으로 rebase

5. git push

 

[링크 : https://comoi.io/235]

Posted by 구차니
Programming/android2020. 6. 3. 22:55

AndroidManifest.xml 에 internet 사용하도록 추가하는 위치

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.rpirc">

    <uses-permission android:name="android.permission.INTERNET"/>

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

[링크 : https://slobell.com/blogs/48]

 

build.gradle (Module: app) 에 추가해야 한다.

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'com.squareup.retrofit2:retrofit:2.6.1'
    implementation 'com.squareup.retrofit2:converter-gson:2.6.1'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}

[링크 : https://re-build.tistory.com/14]

 

일단은 빌드 까진 문제 없으니.. 됐고

이제 인터페이스 구현하면 되려나?

 

[링크 : https://medium.com/@joycehong0524/android-studio-retrofit2-기본-사용법-retrofit-의문점-풀어헤치기...d]

2020/05/29 - [Programming/android] - 안드로이드 retrofit 사용하기

Posted by 구차니
Programming/android2020. 5. 29. 18:58

만들려고 한게 여기 다 있네?

 

[링크 : https://www.instructables.com/id/A-Simple-Android-UI-Joystick/]

'Programming > android' 카테고리의 다른 글

android studio - git push rejected  (0) 2020.06.07
안드로이드 retrofit2 사용하기  (0) 2020.06.03
안드로이드 retrofit 사용하기  (0) 2020.05.29
android - layout  (0) 2020.05.28
android studio - git 연동  (0) 2020.05.28
Posted by 구차니
Programming/android2020. 5. 29. 18:34

인터넷 권한이 다 필요하다고들 나오는데.. 어디서 인터넷은 기본이라고 본것 같은데 좀 찾아 봐야겠네..

아무튼 retrofit을 어디서 내가 들었고 썼더라....

 

[링크 : https://freekim.tistory.com/6]

[링크 : https://re-build.tistory.com/14]

[링크 : https://hyongdoc.tistory.com/176]

[링크 : https://jungwoon.github.io/android/2019/07/11/Retrofit/]

'Programming > android' 카테고리의 다른 글

안드로이드 retrofit2 사용하기  (0) 2020.06.03
안드로이드 조이스틱 UI 만들기  (0) 2020.05.29
android - layout  (0) 2020.05.28
android studio - git 연동  (0) 2020.05.28
android studio - blueprint와 design  (0) 2020.05.28
Posted by 구차니
Programming/android2020. 5. 28. 18:31

 

[링크 : https://leeminki.github.io/android/2018/09/08/Android_3.html]

 

[링크 : https://lktprogrammer.tistory.com/136]

[링크 :  https://developer.android.com/reference/android/widget/GridLayout]

[링크 : https://developer.android.com/reference/android/widget/FrameLayout]

[링크 : https://developer.android.com/reference/android/widget/LinearLayout]

[링크 : https://developer.android.com/reference/android/widget/FrameLayout]

[링크 : https://developer.android.com/reference/android/widget/RelativeLayout]

[링크 : https://developer.android.com/reference/android/widget/TableLayout]

 

[링크 : https://developer.android.com/reference/androidx/constraintlayout/widget/ConstraintLayout]

 

+

2020.05.29

[링크 : https://offbyone.tistory.com/249] constraint layout?

[링크 : https://kimdohyeong.gitbooks.io/android_official_training_kr/content/constraintlayout-ui.html]

 

[링크 : https://developer.android.com/training/basics/firstapp/building-ui?hl=ko]

Posted by 구차니
Programming/android2020. 5. 28. 18:19

 

[링크 : https://namget.tistory.com/entry/안드로이드-Github에-안드로이드-소스-올리기]

[링크 : https://gamjatwigim.tistory.com/74]

 

git ignore

[링크 : https://goodtogreate.tistory.com/entry/Android-Studio-Project-gitignore-리스트]

 

+ 2020.06.07

github에서 초기 생성시 안드로이드용 gitignore를 생성하도록 지원을 하긴 하는데...

안드로이드 스튜디오에서 생성을 해주는것 같아서 충돌이 나는 듯..

 

'Programming > android' 카테고리의 다른 글

안드로이드 retrofit 사용하기  (0) 2020.05.29
android - layout  (0) 2020.05.28
android studio - blueprint와 design  (0) 2020.05.28
안드로이드 RESTful API 호출하기  (0) 2020.05.25
안드로이드 앱 버튼 배치  (0) 2020.05.25
Posted by 구차니