adb

Creating an intent in application without Activity

I am quite new to Android I use Instrumentation and adb shell commands to launch tests from my apk file on target. I wish to create an intent from Command Line and make some operation in code on target upon it. I know that I need to add an intent filter within my Manifest.xml file but can I add it if I have no activity in manifest. ...

My class extands from InstrumentationTestCase class, it seems like I will not have an Activity

Hi All I quite new to Android I created a class that extends Android class this way: public class MyClass extends InstrumentationTestCase I looked the chain of InstrumentationTestCase and found that there is no Activity class in this chain. So I didn't create a activity. Also in my manifest I see no activity tag. No I wish t...

Need an example of how to use class -> SingleLaunchActivityTestCase<T extends Activity>

Hi All I ask again this question and add more info, I simply couldn't find a way to add comment to the guy that answered me (iandisme) I am quite new to Android and Java I am looking for example of how to use class: SingleLaunchActivityTestCase Till now I am using class InstrumentationTestCase but the problem is that for each launche...

What can be the Activity, I am using

Hi All I am new to Android Few words before I ask a question: We developing a selolar solutions based on Android os. I use internal libraries that are not a part of standard sdk A question: My class extends from InstrumentationTestCase class I perform the next operation: mPhone = PhoneFactory.getDefaultPhone(); I use mPhone for t...

adb forward remote port to local machine

Hi, This is a query regarding the usage of adb on android. Is there a way to forward the remote port i.e. port on the android device/emulator to the local machine to which the device is connected? $ adb forward tcp:port1 tcp:port2 # forwards the local port port1 on the machine to port2 on the device. Thanks in advance! ...

How to use ADB to send touch events to device using sendevent command?

Hi I am trying to send touch events to a device using AndroidDebugBridge, so that I can do some basic automation for UI tests. I have followed the discussion in LINK. I am able to use sendevent to simulate touch on emulators, but unable to do the same on a device. Like in above link the emulator seems to send out 6 events for each tou...

Android development : ddms from command line not seeing devices.

=============================== *SOLVED * : see answer below I dont want to use Eclipse. From the command line: An emulator is running. adb server is running. "adb devices" lists correctly and I can see my instance on an avd in the output. However when I manually start DDMS from the command line it just keeps trying to connect. I ca...

shell/ batch scripting to direct commands to adb shell

I am trying to write a batch(for win) and a shell script for linux to automate key and touch events on a android UI. At the moment in a windows batch file I am starting a adb shell for each event for eg :again adb shell am start -a android.intent.action.MAIN -n com.q.me.fui.activity/.InitActivity sleep 15 adb shell sendevent /dev...

Debug With DROID 1 Crashes ADB.exe

Using the up to date drivers provided from the SDK I installed my DROID 1 onto my Windows XP PC. When I plug the phone into the computer it connects correctly and it displays as "Android Composite ADB Interface" under device manager. A few seconds after plugging it into the computer ADB crashes with the following error: adb.exe has en...

Android adb logcat time filter

Does anyone know how to filter out the logcat ('adb shell logcat') so that it only shows the log statements after current date and time ? Thanks in advance. ...

Connecting android emulator in another machine

I need to test my android app 24h day and I have 3 ubuntu boxes to do it. I would like to connect my development system (MOTODEV Studio 1.3) to a Remote Device. Well, the interface ask me about ip for machine and port to connect to. But it doesn't. I found that the adb sever on remote seems not to listen to external ports, only intern...

ADB Connection problem

This question is on Android ADB. I am fairly new on Android / ADB. My requirement is to have a synchronous / "continuous data transfer" kind of connection using ADB (with the device and hosted PC). Currently i need to invoke the ADB shell each and every time when i want to send some data/file to the device, Is it possible to have a "...

CreateProcess for android adb start-server?

When I use CreateProcess to create process adb.exe, It will Block in ReadFile. void KillAdbProcess() { DWORD aProcesses[1024], cbNeeded, cProcesses; unsigned int i; if ( !EnumProcesses( aProcesses, sizeof(aProcesses), &cbNeeded ) ) return; cProcesses = cbNeeded / sizeof(DWORD); for ( i = 0; i < cProcesses;...

Why does sqlite3 command using the android adb shell return "permission denied"?

Specifically, I was trying to use the sqlite3 command with the adb shell to run some queries on the database of the Android application I'm building. I kept getting "sqlite3: permission denied". I'm developing on a Nexus One that I purchased from Google. Does my phone need to be rooted or something? Thanks in advance. $ sqlite3 /da...

Why do I get a "sqlite3: not found" error on a rooted Nexus One when I try to open a database using the adb shell?

# sqlite3 /data/data/com.moodme.android/databases/moodme sqlite3 /data/data/com.moodme.android/databases/moodme sqlite3: not found ...

Unable to cd do sdcard with adb after update to Froyo

My application takes a picture and saves to the sdcard. It worked fine on Android 2.1, but I just upgraded to Froyo and now I'm getting: ERROR/CameraPreview(28216): Problem taking picture WARN/System.err(28216): java.io.FileNotFoundException: /mnt/sdcard/silviaterra/temp.jpg (Permission denied) WARN/System.err(28216): at org.apache...

Android emulator sound - ubuntu

Using Ubuntu 10.04 64 bits for Android development and everything goes well except sound. I've using -audio option and -audio-out one with alsa as backend parameter, but without luck. ¿Any idea? ...

adb controls G1 keyboard LEDs, terminal emulator doesn't?

At the moment the LEDs that light up the keyboard of the G1 (HTC Dream) are very quick to turn off, I time it at six seconds. This is a pain when using the phone in the dark as you must press a button in order to turn the lights back on if you look away even for a very short time. Since my G1 is rooted I have access to the system files ...

Using adb logcat with a real phone (and not the emulator)

Hello, when I'm using the Android emulator I can do "adb logcat" to see output messages (log / system.out.println) originated from my code. It also shows the stack trace of exceptions which happen during execution. But, when I'm using a real phone, "adb logcat" does not do / show anything. I also tried "adb -d logcat" which also does ...

Deleting application database from emulator

I'm testing an application I'm working on and I wanted to delete the database my application creates so I could read all the data from my web server back in to a fresh one. I launched adb, went to data/data/my.applicaton.package/databases and did a "rm mydatabase". This deleted the database (note: I've done this many many times before ...