Mit 에뮬레이터 - mit emyulleiteo

Android provides an emulator so you can test apps on a virtual phone without downloading them to an actual Android device. App Inventor's interactive testing process works with the emulator. Instead of connecting a phone using the USB port, just start up an emulator and then click "Connect to Phone" from the App Inventor Blocks Editor. Your app will load in the emulator and you can test it from there.

You'll need to download the Java Android SDK to use the emulator. Instructions are below:

Downloading the Java Android SDK and the Emulator

1. Download the Android SDK on to your computer.   http://developer.android.com/sdk/index.html

Think you already have it? Open a terminal and type "android". If it's there, the Android SDK and AVD Manager will appear. Skip down to 5.

2. Place the android SDK in a suitable location (e.g., /Applications on the Mac)

3. You may need to change your path. Here's one way to do it:

   open .bash_profile in your home directory (or create if it doesn't exist)

        export PATH=${PATH}:/Applications/android-sdk-mac_86/tools 

   (assuming SDK folder is named android-sdk-mac_86 and its in /Applications)

    At a terminal, enter "source .bash_profile". This will run the export command.

4. From a terminal, enter "android" to open the Android SDK and AVD Manager.

5. In the manager, choose "Available Packages" and select the 1.6 version and any others you want. These downloads are a bit slow so you may not want to download all of them.

6. In Virtual Devices, click new and name the new avd "basic". Select one of the targets that appear.

7. Choose a virtual device and click Start to run the emulator.

Testing an App Inventor app with the emulator

1. Disconnect any phones from your computer.
2. In the App Inventor Blocks Editor, choose "Connect to Phone". Your app should appear within the emulator within 30-40 seconds.

Download and running an app in the emulator

1. In the App Inventor Designer, choose   Package for Phone | Download to Computer

Download the app to your computer. This will create a file with the extension .apk (an android package).


b. Open a different terminal window than the one that started the emulator and run the install command. If you downloaded the app (.apk file) into the Downloads folder, you'll type:

    adb install -r Downloads/Purr.apk

c. Be careful the second time you download the same app-- on some systems it will be given a different name such as Purr(2).apk. The abd install program doesn't allow parenthesis in file names, so you'll probably want to rename it on your computer before installing it on the emulator.

Old command-Line method of creating avds

These instructions are for the emulator that comes with the older version of the SDK (1.5x).
An AVD is an emulator instance for a particular version (e.g., 1.6) of the phone.

Enter the commands below in the terminal:

This will show you a numbered list of the 'targets' that come as part of your sdk. For me, android 1.5 came as #2.

Get full access to Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps and 60K+ other titles, with free 10-day trial of O'Reilly.

There's also live online events, interactive content, certification prep materials, and more.

If you do not have an Android phone or tablet, you can still build apps with App Inventor. App Inventor provides an Android emulator, which works just like an Android but appears on your computer screen. So you can test your apps on an emulator and still d

appinventor.mit.edu

Mit 에뮬레이터 - mit emyulleiteo

Companion Version Check

컴패니언 버전 확인

 

Your Companion App is out of date. Click "OK" to start the update.

Watch your emulator's screen because you will be asked to approve the update

컴패니언 앱이 오래되었습니다. 업데이트를 시작하려면 "확인"을 클릭하십시오.

업데이트를 승인하라는 메시지가 표시되므로 에뮬레이터의 화면을 확인하십시오.

 

Software Update

소프트웨어 업데이트

 

The update is now being installed on your device. Watch your device(or emulator) screen and approve the software installation when prompted.

이제 업데이트가 장치에 설치됩니다. 장치 (또는 에뮬레이터) 화면을보고 메시지가 표시되면 소프트웨어 설치를 승인합니다.

IMPORTANT: When the update finishes, choose "DONE" (don't click "open"). Then go to App Inventor in your web browser, click the "Connect" menu and choose "Reset Connection". Then reconnect the device.

중요 : 업데이트가 완료되면 "완료"를 선택하십시오 ( "열기"를 클릭하지 마십시오). 그런 다음 웹 브라우저에서 App Inventor로 이동하여 "연결"메뉴를 클릭하고 "연결 재설정"을 선택합니다. 그런 다음 장치를 다시 연결하십시오.

 하지만 아무래도 외형도 그렇고 꼬질꼬질하네요... 하지만 앱 인벤터 에뮬레이터의 장점은 아무래도 앱 인벤터랑 즉시 연결되기 때문에 블록을 바꾸면 바로 에뮬레이터에 적용이 된답니다. 확실히 개발 속도 측면에서 압도적이기 때문에 빠른 개발에는 이걸 사용하는 게 좋긴 한 것 같아요. 그리고 최종 테스트는 안드로이드 스튜디오의 에뮬레이터를 사용한다던지 하면 좋을 것 같습니다.

 또한 초반에는 앱을 업데이트하라는 말이 나올 수 있습니다.