SD Card with Eclipse/Emulator

Similar documents
Installing and configuring an Android device emulator. EntwicklerCamp 2012

Tutorial on Basic Android Setup

Tegra 250 Development Kit Android Setup Experience

How to Demonstrate Junos Pulse L3 VPN - Android

Lab 4 In class Hands-on Android Debugging Tutorial

ECOM 5341 Mobile Computing(Android) Eng.Ruba A. Salamah

Around Android. Essential Android features illustrated by a walk through a practical example

Galaxy Note Root Guide. by Max Lee

MalaRom flashing Guide

Android Development Tools = Eclipse + ADT + SDK

How to Set up Eclipse and Android SDK Manager Environment You need to download the following

Developing Android applications in Windows

IBM BlueMix Workshop. Lab D Build Android Application using Mobile Cloud Boiler Plate

Wirtschaftsinformatik Skiseminar ao. Prof. Dr. Rony G. Flatscher. Seminar paper presentation Dennis Robert Stöhr

BECOMING MORE EFFECTIVE WITH THE ANDROID EMULATOR

If you don t have the JDK, you will need to install it. 1. Go to

Basic Android Setup for Machine Vision Fall 2015

Lab 1: Getting Started With Android Programming

Chapter 2. Operating-System Structures

Installing and Configuring Xitron RIP Software and Ohio GT RIP Plug-In

Mobile and Wireless Systems Programming

Install ADB on Windows

NVIDIA DEBUG MANAGER FOR ANDROID NDK - VERSION 8.0.1

TeslaSCADA2 Runtime(Android) User Manual. Version

Manual Android Virtual Device Failed To Load Error

POOSL IDE Installation Manual

Lab Android Development Environment

Lab 3: Using Worklight Server and Environment Optimization Lab Exercise

Android System Development Training 4-day session

CSCI 201 Lab 1 Environment Setup

Android Debug Framework

Building graphic-rich and better performing native applications. Pro. Android C++ with the NDK. Onur Cinar

TangeloHub Documentation

TinyNet. Creating Virtual Machines

Programming Concepts and Skills. Creating an Android Project

BCA 6. Question Bank

Finalizing the Project

Department of Computer Science and Engineering, Sri Jayachamarajendra College of Engineering, Mysore, Karnataka

ELET4133: Embedded Systems. Topic 3 Eclipse Tour & Building a First App

CS260 Intro to Java & Android 04.Android Intro

Manual Android Virtual Device Failed To Load Click Details

CSCI 161: Introduction to Programming I Lab 1b: Hello, World (Eclipse, Java)

Compile and Run WordCount via Command Line

Presentation Outline 10/16/2016

Setting up FT3000 and version on Windows 7. This is a step by step guide for setting up the FT3000 on a new Windows 7 or 8 PC

ncsa eclipse internal training

Configuring the Android Manifest File

Android Eclipse You May Want To Manually Restart Adb From The Devices View

AT&T Developer Program

Open Lecture Mobile Programming. Command Line Tools

Paraben s Photo Backup Stick V2.1. User Manual

PadFone Infinity. Standard Operating Procedure for Upgrading the Firmware to Android Kit Kat

X1 Augmented Reality SmartGlasses Developer Guide

1080P P2P Wifi Pinhole Hidden Alarm Clock Camera

CS Fundamentals of Programming II Fall Very Basic UNIX

7-1. This chapter explains how to set and use Event Log Overview Event Log Management Creating a New Event Log...

15. Creating a Samba Server in Knoppix v.3

Mobile OS. Symbian. BlackBerry. ios. Window mobile. Android

Application Development Setup Guide

XenMobile Logs Collection Guide

RWT Network System Installation Guide

Android AOSP Overview. Karthik Dantu and Steve Ko

Contents. 1 Introduction... 2 Introduction to Installing and Configuring LEI... 4 Upgrading NotesPump to LEI...

Install and Configure Ubuntu on a VirtualBox Virtual Machine

1900AC. Digital TV box. User Manual.

Task On Gingerbread On Ice Cream Sandwich Notification bar on lock screen Notification bar is not accessible on the lock screen.

DEVELOPERS MANUAL. Philip SUPER HAPPY FUN FUN INC Research Blvd. Suite C-220 Austin, TX, 78759

package import import import import import import import public class extends public void super new this class extends public super public void new

IT-G400 Series. Android 6.0 Quick Start Guide. This document is a Development Guide Book for IT-G400 application developers. Ver 1.

When talking about how to launch commands and other things that is to be typed into the terminal, the following syntax is used:

FAQ for KULT Basic. Connections. Settings. Calls. Apps. Media

Content. 1. Overview Setup Demonstration Linux Application Project on DE10-Nano Android Application Project...

Silk Test Testing Mobile Applications

1) What is the difference between Mobile device testing and mobile application testing?

User documentation. BEEM v1.0 January 2010

1 Installation (briefly)

ES E 3 3 L a L b 5 Android development

Programmazione di sistemi mobili e tablet

Specifications. What s Inside The box

7-1. This chapter explains how to set and use Event Log Overview Event Log Management Creating a New Event Log...

Tutorial How to upgrade firmware on Phison S8 controller MyDigitalSSD using a Windows PE environment

Allowing access to Outlook 2000 folders Version 1.00

Hitchhiker s Guide to VLSI Design with Cadence & Synopsys

An introduction to Linux Part 4

Print Audit 6. Print Audit 6 Documentation Apr :07. Version: Date:

12.1 Introduction OpenCV4Android SDK Getting the SDK

Chapter 2: Operating-System Structures

ModeChanger

Programming in Android. Nick Bopp

Note: If QT is not installed you get the following error and the file is still not saved:

Droid Transfer - User Guide

Quick Install and License Setup

Configuring Ethernet Audio on Microsoft Windows Server 2012


Tutorial How to upgrade firmware on Phison S8 controller MyDigitalSSD

Sun VirtualBox Installation Tutorial

SPSS Tutorial - How to Perform an Offline License Activation on a Windows Computer

As CCS starts up, a splash screen similar to one shown below will appear.

Reports/Invoices/Work Orders/Purchase Orders Do Not Show When Printing

This tutorial will guide you how to setup and run your own minecraft server on a Linux CentOS 6 in no time.

Transcription:

SD Card with Eclipse/Emulator

Creating the SD Card "image" file (a file representation of a physical SD Card) Assume Cygwin bash shell: $ cd c: $ mkdir sdcards $ cd sdcards $ Android\android-sdk\tools\mksdcard -l mysdcard 32M sdcard1 ( size <8M will give warning that card cannot be used with emulator, but it will still create the card. You will receive a warning if you try to start an emulator with it: $ emulator -avd MyEmulator-sdcard sdcard1 ### WARNING: SD Card files must be at least 9MB, ignoring 'sdcard1' ) $ ls sdcard1.img

Android Debug Bridge (adb) Overview ADB - Android Debug Bridge - http://developer.android.com/guide/developing/tools/adb.html -Server -Clients (shell utils, DDMS, ADT plugin) -A daemon, running as a background process on each emulator or device instance. client - shell, [script] Emulator (5554): 5555 (virtual sdcard) client - DDMS ADB - Server: 5037 Ports 5555-5585 Eclipse - ADT plugin Device (5556): 5557 (physical sdcard not available w/usb?) The ADB manages communication between clients and devices. This is why you can kill eclipse and the emulator keeps running. They are independent processes communicating through adb. It also explains why DDMS can get a little flaky. You might have to get the clients/server to start talking with each other again and there can be a lag.

Ways to add sd card to emulator 1) Command line emulator launch: $ emulator -avd MyEmulator -sdcard C:\sdcards\sdcard1 OR $ emulator @MyEmulator -sdcard C:\sdcards\sdcard1 (If path to card is wrong: "...ignoring non-existing SD Card image" on emulator startup)

Ways to add sd card to emulator 2) Eclipse AVD Manager: Edit... SD Card: File: C:\sdcards\sdcard.img

Ways to add sd card to emulator 3) Eclipse: RunConfigurations... Select your app Target Tab "Additional Emulator Command Line Options": < -sdcard C:\sdcards\card1.img > Next step is to push some data to the card...

Pushing Data to the sdcard on a running emulator with the Dalvik Device Manager Server * This can be a little flaky if DDMS is already running when you start the emulator. Remember the client server relationship between the clients (DDMS, shell), adb and the emulator daemon. If all else fails, restart Eclipse with emulator still running to get this to work 1) Open DDMS perspective in Eclipse 2) Open mnt folder 3) Open sdcard folder (Note the permissions to the right of the folder: d---rwxr-x) 4) Select the "Push a file onto the device" icon 5) Browse and select a file to push to the card Interesting: Open DDMS before you start the emulator. Watch the initialization of the emulator in DDMS. You will see the mount points, etc come online over time. It's a good visual way to understand that it may be sometime before everything is available to your app.

DDMS - Dalvik Device Manager Server

Pushing Data to the sdcard (with adb) -Probably the easiest way $ adb push c:/pics/device.png /sdcard/listview.png ^--This is the actual mounted file sys on the device. This shows as /mnt/sdcard in DDMS, but it's accessible here as /sdcard. // After issuing this command you will see listview.png in the DDMS listing of files under /mnt/sdcard, // but...i had to restart the emulator for the image to be available in the device's gallery. To "pull" a file from the device's card: $ adb pull /sdcard/listview.png Note: This did not remove the file from the card, it just pulled a copy. To remove I had to go through DDMS or the device itself.

Things to Consider Something maintains a lock on the pictures directory. Not sure what. I had to bounce Eclipse/Emulator to get the sd card to be recognized. Remember client-server nature of adb Try the "reset adb" button in DDMS (not sure it works, but it's in the dropdown menu next to the screen capture button. The real SD Card on your physical device will not be available when you have your device connected to your PC with USB cable. A real pain for testing. Workaround anyone? Open AVD Manager, start the emulator- note the start up emulator components in DDMS, observer how sdcard takes some time to mount Make sure sdcard in DDMS has write permissions When pushing files to sdcard in DDMS: "Failed to push the item(s). null" - There is a pathing/naming issue to the sdcard's location