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. ...
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...
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...
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...
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!
...
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...
===============================
*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...
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...
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...
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.
...
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...
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 "...
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;...
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...
# sqlite3 /data/data/com.moodme.android/databases/moodme
sqlite3 /data/data/com.moodme.android/databases/moodme
sqlite3: not found
...
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...
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?
...
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 ...
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 ...
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 ...