Android :: How Do I Write Solo / Robotium Test Case / Uses Built-in Camera To Take Picture ?

Oct 1, 2010

From my activity I do startActivityForResult(MediaStore.ACTION_IMAGE_CAPTURE),and then I land in the builtin camera activity (in this case in the emulator).in my testcase, it does not find ANY button (null is found for index=0).How do I write a Solo/Robotium testcase that uses the builtin camera to take a picture ?

Android :: How do I write Solo / Robotium test case / uses built-in camera to take picture ?


Android :: Simulate A Date Picker With Robotium Solo Class?

Jun 24, 2010

I'm trying to test a date picker scenario on android. I have the date picker which comes up when I click a text view(with id say v) which has a label on it along with a hint "Enter Date".

The problem is that I'm trying to simulate this clicking of the text view and then selecting of the date from the date picker dialog. I cannot find an method call/option in Solo to get hold of the text view (ex:with id say x).
I've been trying to figure it out for the past three days.

Can anyone suggest me a way to go about it?.

View 2 Replies View Related

Android :: How Does A Solo / Small Group Of Developers Test On Multiple Devices?

Nov 10, 2010

First off, sorry if this is too subjective, I just didnt know how else/where to ask.Anyway, in the light of all my recent questions, I'm getting ready to release an Android app soon, and most of the testing has been done on my phone, the Droid. I really dont have the money to test on "multiple" devices, nor do I know anyone with an older phone that I could ask for help that would possibly get any kind of bug. Not to mention, when I do get a bug report, how would I go about fixing it for that particular phone without having to buy it to make sure it actually gets fixed, or that the person didnt just came across a one-time freakish accident of a glitch?

View 4 Replies View Related

Android :: Source Code - How To Test Built Version?

Jan 20, 2009

I want to ask a question about the android source code - after building the code how and where can I test the built version, and what files that I need from the built version.

View 2 Replies View Related

Android :: Can't Run Some Test Case In Instrumentation

Dec 8, 2009

I have added the "android.test.runner" user library and "android.test.InsturmentationTestRunner" in instrumentation. But when i run the test in Instrumentation, 0 test has been run.

My test class is as below: package com.android.ProjectTest.test;

CODE:................

View 2 Replies View Related

Android :: Problem In Running Test Case

Oct 20, 2010

I am working on android automation ,and i am new to this field , i went through the test example available at developer site and i am getting

11-05 14:43:14.509: WARN/TestGrouping(1485): Invalid Package: '' could not be found or has no tests

as error on running this code .

CODE:.................

View 2 Replies View Related

Android :: Abort Instrumentation Test Case

Feb 11, 2009

I have an instrumentation test case that is waiting for an incoming call. I would like to abort this test case after some time from outside of this test case. Is there any argument to "adb shell am instrument" command that will stop the on going instrument test case?

View 2 Replies View Related

Android :: Author Unit Test Case

Oct 23, 2009

I have downloaded donut branch and build for emulator. I am running the author test case in the following way cd /data;test_pvauthorengine -test 5 5 -video yuvtestinput.yuv - videoconfigfile mp4_config.cfg -audio amrtestinput.amr - audioconfigfile amr_config.cfg -output mp4.3gp Starting Test 5: AMR & YUV to AV using M4V Encoder .3gp Test PVSCHED:Scheduler 'PVAuthorEngineTestScheduler', Thread 0xafe43c24: Error! AO PvmiMIOFileInput Error 101 not handled PVSCHED:Scheduler 'PVAuthorEngineTestScheduler', Thread 0xafe43c24: Error! Reason 101

View 3 Replies View Related

Android :: How To Build Ctsand To Add And Run Your Test Case

May 13, 2010

From 2.0 the cts is freely downloadable from android's repository.

But there is no documents about it.

Does anyone can tell me:

How to build cts? Is there a standard procedure? How to run cts? How to add customized test case?

Here, share my experience. After repo sync all source, you can't directly run "make" to build all source.
You will get some errors.

Now, I'am trying to first build android source without cts, and then build cts alone.

Also, here are some reference for run cts:

http://i-miss-erin.blogspot.com/2010/05/how-to-add-test-plan-package-to-android.html
www.mentby.com/chenny/how-does-cts-work-where-can-i-get-the-test-streams.html
www.jxva.com/?act=blog!article&articleId=157

1st time Update @ 5-13 18:39 +8:00

I do the following steps:

1.build android source without cts (move cts out of the $SDK_ROOT).

2.build cts (move cts back).

both jdk1.5 and 1.6 have the following errors:

CODE:.....................

View 1 Replies View Related

Failed Android Test Case With Nullpointer

Mar 18, 2012

I am adding an android testcase for the UI. I have been following the tuto for the Spinner Test.Unfortunately I have a nullpointerexception on a object medtSalePercent.setText("10"); which has been initialised.

Code:
import jle.base.WorkActivity;
import android.test.ActivityInstrumentationTestCase2;
import android.widget.EditText;
import android.widget.TextView;
[code]...

There is no exception on medtPriceValue.setText("50");.but there is one on the screen for medtSalePercent.setText("10");

View 4 Replies View Related

KitKat 4.4 :: Can 4.4.2 In-Built Apps Write To SD Card Or Not

Jun 3, 2014

I have a Samsung Galaxy S4 running 4.4.2 KitKat. I tried to set the default image, video and documents directories to a folder on the SD card by going to MyFiles -> Settings -> SDCard path. I am taking photos & videos using the default app, not a 3rd party app. Although it is showing me the default is set to the SD card, the images I take using the default camera app all seem to save to the default internal storage /storage/emulated/0/DCIM/Camera.

getting the default image directories to be on the SD card?

View 3 Replies View Related

Motorola Droid :: Where To Get Case For Phone With A Screen Protector Built In?

May 16, 2010

I'm looking for a case for a droid

looking for one with a screen protector built in

and it to fit a belt clip or a belt clip included

View 9 Replies View Related

Android :: Start / Bind A Service From Test Case?

Sep 8, 2009

How to start/bind a service from a test case. I tried using the ServiceTestCase and somehow I am getting the context as null and the test is not launching/starting the service.

View 2 Replies View Related

Android :: Pass Bundle To An Activity On An Instrumentation Test Case

Jan 29, 2009

When implementing an ActivityInstrumentationTestCase, how do you start the activity with a Bundle of saved state?

View 2 Replies View Related

Android :: Running Junit Test Case For APIDemo In Eclipse?

Jan 28, 2009

I am trying to run Junit test case for the android APIDemo project under eclipse. I create an eclipse project from the APIDemo source, it compiles fine and then I did: 1. Debug->Run as Junit tests

But I get this error: 'Lanuching AllTests' has encountered a problem. Cannot connect to VM...................

View 9 Replies View Related

Android :: Error Occur When Try To Run Junit Test Case On Emulator?

Jan 9, 2010

After following some instructions on Diego Torres blog I am able to test my classes using the regular Eclipse JUnit test-runner, however I also want to be able to run my unit tests from within the emulated android environment. For now this should make no real difference since the classes I am working on do very basic numerical or networking tasks, but obviously anything which involves the UI or Android API specific functions can only ever be tested on the emulator.

I set up a new run configuration of type AndroidJUnitTest wich uses the ndroid.test.InstrumentationTestRunner, however whenever I fire up the test I get the following error in the console:

[2010-01-09 00:45:23 - Pal1]Uploading Pal1.apk onto device 'emulator-5556'....................

View 1 Replies View Related

Android :: How Can I Launch Built-in Picture Viewer App From My App?

Feb 9, 2009

I don't want to re-invent the wheel and would like to use the existing android picture viewer.I've found some intents to launch built-in android app such as the dialer but have not found one for launching the picture viewer.How do I launch the android built-in picture viewer app?

View 8 Replies View Related

Android :: Android Eclipse Test Projects Cannot Be Used With A Project Being Built

Mar 24, 2010

An Android Java project placed in a git repository and built in an Android tree in /packages/apps needs to have the project files located at the root of the git repository.This is problematic for creating a complementary Test project, which should ideally be included in the same git repository so commits are atomic for both code and tests. Eclipse gets very unhappy if you include the Test project as a subdirectory.Is there an appropriate approach for dealing with this other than creating a second repository?

View 2 Replies View Related

Android :: Emulator's Camera Built-in App Buggy In Froyo / 2.2

Jun 1, 2010

The Emulator's camera worked fine for taking pictures in 2.1 Eclair. What did not work was recording videos, obviously.

Now running an app which worked merely flawless on 2.1 Emulator causes the camera app to crash. I fire up an intent to launch it:

CODE:...................

This starts the camera app but after a few seconds it crashes.

The output is:

CODE:.................

Actually I just wanted to see if the bug which made you receive a small image from the camera even though EXTRA_OUTPUT was specified has been fixed in FroYo. Unfortunately, I don't even get to test it.

View 2 Replies View Related

General :: Application Using Built-in Camera?

Nov 18, 2012

I have installed Eclipse. Hello world app working fine. My question is how I can use built-in camera in my application? I already gave permission. Where should I write code etc and what? My knowledge about programming is also very poor.

View 1 Replies View Related

Android :: Built-in Camera Use Folder Called DCIM To Store Captured Images?

Nov 13, 2010

I am developing an app which uses the phone's default camera application to capture an image and then allow the user to perform some basic editing.I want the image captured to be saved in a location that is consistent with the stock camera application. Can I use the DCIM folder and assume all phones will use that location?

View 1 Replies View Related

Android :: Write An Application For Holding Camera

Jun 29, 2010

Writing an application to invoke the camera can be done but I want to write an application to hold on to the camera resources. Meaning while this application is running, camera cannot be accessed by other applications. Is this possible? The aim is as long as the application is running camera cannot be used.

View 5 Replies View Related

HTC Incredible :: Anyone Else Test Out Different Camera Effects?

May 28, 2010

Just wondering if anyone had taken the time to try out the different camera effects, a quick search of this forum did not produce many results. My guess is some of you have some really cool looking shots using these different settings. So, here ya go, 2 of my favorites, using the Negative and Solarize settings

View 6 Replies View Related

General :: Read And Write Camera Registers Via I2C?

Mar 25, 2014

how to pull and push registers to i2c devices? (Especially camera)

I'm using RootTools to get the list of the devices: "busybox find /sys/devices/i2c*/*/*/ -name name"

View 3 Replies View Related

KitKat 4.4 :: Camera App That Will Write Photos Directly To SD Card?

Mar 27, 2014

I just got a GPE LG Pad 8.3 and I have not seen an option in the stock camera app to save photos and video to the SD card. Is there any camera app that can write photos and videos to the SD card? It seems like a waste of an SD card if I can't have my photo's and videos go directly to the card.

View 4 Replies View Related

Android :: Instrumentation Testing Called Robotium

Feb 22, 2010

I found a tool for Instrumentation Testing called Robotium.It is easy and simple for black box testing of android applications.
We can use it as follows:

CODE:........

How can we use it for webviews and listviews etc.

View 4 Replies View Related

HTC EVO 4G :: Test Video Of The Front 1.3 Mp Camera - Mirror Image

May 26, 2010

HTC EVO 4G front-facing camera test: good, but it records a mirror image | Google Android Blog

First off I have to say the quality from just the camera itself is excellent for a webcam IMO.

The weird thing is that it seems to record a mirror image meaning if something is on the right in real life it's actually on the left in the video. The article explains it. You think it's something that can corrected through an update?

View 21 Replies View Related

Android :: How To Take Picture Using Camera App?

Oct 26, 2010

How to take a picture using the Camera App and have it NOT appear in the Gallery?

View 7 Replies View Related

Android :: Synchronization In Robotium - Setting Timeout Manually

Jun 16, 2010

How long does robotium wait for a new activity to show up? Is it possible to set the timeout manually for the Solo instance?

View 1 Replies View Related

Android :: Taking Picture - Use Camera In Sdk 1.6

Sep 19, 2009

I tried an old(er) example / tutorial to capture a picture from the camera. But "android.hardware.CameraDevice;" cannot be resolved. Has the name changed or have somebody a good tutorial for android 1.6 and the camera? If I press a button, I want to open the Camera and make a picture. After that i want to save the picture on a sdcard and go back to my activity.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved