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 구차니