Android :: Testing GPS Applications In Android Using Emulator
Dec 29, 2009How do you test GPS applications in Android? Can we test it using the Android emulator?
View 3 RepliesHow do you test GPS applications in Android? Can we test it using the Android emulator?
View 3 RepliesHow to buy a phone for testing applications, can anyone suggest. Other phones in market are way to expensive.
View 11 Replies View RelatedCan I install and test the applications directly on G1 ( purchased from T-Mobile ) or I should purchase the developer version of G1 ( available from google ). Btw, I already registered for android market.
View 2 Replies View RelatedIs there any way to test the performance of the apk files or to automate the behavior of the the applications which are developed in android?
View 2 Replies View RelatedI'm trying to make my application (compiled against 2.1) compatible with the 1.5 platform. I've handled all of the res/ folder issues, and have been able to run the app on all platforms without problems. I can run it fine on all emulators, and all devices/OS systems running 1.6 or higher. But on the only 1.5 device I have (HTC Hero), I get intermittent problems.
The only 1.5 device I have is an HTC Hero phone I got free at the Sprint developer conference a few months ago. When I test the app on that device, I have occasionally encountered a bug I've not seen anywhere, and can't find any information about.
I can install the application via the adb install command (although I get two messages about unknown commands), but after installing the app, the icon can disappear from the home screen, replaced either with a different icon or no icon.
When the app is launched in this state, rather than seeing my application name in the title bar, it reads "60.0dip". I don't use this value anywhere in my application.
I have never observed this problem on any other phone I've tested on (G1, myTouch, two Motorola Droids, Nexus One), but as I said I've only got one device running 1.5.
Can any one help with how to test sensor events like shake on Android Emulator.I have found some posts pointing to openintents but can anyone explain how to use it in android 2.0 avd.
View 1 Replies View RelatedI have a new android app I put on the marketplace a few days ago. I did quite a bit of testing on my moto droid before publishing it and tried to be very thorough. Well, I got some negative comments back on how it didnt run right on someone's EVO 2.2 or X10 (didnt even know what that was at first). Well, it runs perfect on my phone.
Any advice on how I'm supposed to fix or support an app that runs on like 100 different phones?
How are other developers approaching this? (without actually buying every phone out there).
testing applications on non developer's-devices. Is there a way to do that?
View 7 Replies View RelatedI have 1.0 r2 and it takes garbage pictures, and crashes when trying to view any saved image (I've only saved images taken from the emulator's "camera" so I don't know if it shows images that were pushed via adb properly.)
I'll try the 1.1 SDK, and failing that, an earlier version.
Is this a known issue, sort of a "well, if you're really going to work with pictures, you should be using a G1 anyhow..." kind of thing?
I was wondering if there is a way to manipulate the emulator to simulate telephony signal strength changes.
I would like to test code that uses TelephonyManager.listen() with LISTEN_SIGNAL_STRENGTHS.
I'd like some feedback from your experiences on the best option to test GPS based applications. I've been developing apps and in the middle of this will have to ship out to Afghanistan for a 1 year tour. Perfect opportunity to concentrate on the apps in the down-time (nothing to do stuck on a base most of the time in a 10x15 shippping container). This is bad (with bad being a relative term) from the standpoint that there are no "data" plans in Afghanistan for GSM phones. I can get GSM service but no "data" plans. If i buy a Android OS phone I'm concerned about how I can update it with new firmware and load apps. I will have wifi access, but from what I've read this will not enable a "push" of the new firmware update to the phone as if I was with T-Mobile. Any suggestions on what phone i should buy and how to "test' my applications where I can update my firmware and load my apps onto the phone?
View 2 Replies View RelatedI need to run unit tests for code that references SQLiteDatabase for my Android code; however all my attempts to instantiate this object outside the emulator (on my desktop machine) have failed. JDBC on Android is not being recommended on the Net, hence it's out of the question (I could have provided mock objects very easily that way).
View 2 Replies View RelatedWhat is the easiest way to create some kind of test harness for Android apps and to be able to visualize (even on the emulator) what is going into the db? I want to test things like constraints, look at the data, unit test methods, etc. Is there any kind of GUI tool that I can hook up to the emulator to be able to look at the db of a particular app while I'm developing/testing, or are my only options the adb shell and creating test Activities within my app?
View 1 Replies View RelatedWhat are the third party tools available for benchmarking mobile applications. I mean stress testing, measuring how many users it can handle or the complexity of my application.
View 5 Replies View RelatedI wrote a simplest test based on android.test.ActivityInstrumentationTestCase2.
CODE:..............
I'm currently testing my application in the SDK emulator, Great everything works perfectly. The next step was to try the same application loaded on to the G1. After loading the app, I'm getting some strange behaviour. Some Activities seem to be called by intents multiple times, when in the emulator they only appear once. Looking at the code I can't see what could be wrong.
View 4 Replies View RelatedOk here's my problem. I'm very new to the AndroidSDK. I've ran sdparted to convert my ext3 to ext4 and just tonight I learned how to open the emulator.I used the Android development site to learn how to do all this. I ran this: emulator -avd my_android1.6 -t 2 The emulator opened up but, it looks nothing like my phone nor does it have any of the apps that my Magic 32B has. This is my question. I'd like to be able to run an application that is currently installed on my phone on my computer to enter in a bunch of data into that application to use on my phone. It's much easier to type everything out on my computer than using the keyboard on my phone. Is this possible to do with the emulator and if I can how? I'm rooted and using Cyanogen 4.2.5.
View 1 Replies View RelatedIs there any way of running 2 (or potentially more) applications on the emulator at the same time?
I have an application that obtains its data from another application, therefore I want to modify data in application A and then see how application B handles it.
I'm intending to have some kind of "slider" on application A, therefore I need them both to be running at the same time to see the "slider" on application B update.
I've been exploring the Android test package and I'm very confused on how to implement functional testing for endpoint-to-endpoint.
Consider the example below, I have 4 activities: 1. A Contact List Activity 2. A View Contact Activity 3. An Add/Edit Contact Activity 4. A Sync Contact List activity
I want to automate a few tests that will go through multiple test cases simulating a user experience: From launching the application, to selecting 'Add contact;' opening the add contact activity, entering data, saving it, going back to the list activity, and verifying the new contact was saved properly.
As I understand it, ActivityInstrumentationTestCase<T extends Activity> and ActivityUnitTestCase<T extends Activity>, are only useful for testing single activity functionality.
But what if I need to switch between 2 or more activities inside a single functional test case?
None of my apps work in the emulator. I am running Ubuntu 9.10 and everytime I try to access my UI, the app crashes. All I get is an "Sorry! The application ... has stopped unexpectedly". For EVERY app this happens.
package com.mohit.helloandroid;
import android.app.TabActivity; import android.content.Intent;
import android.content.res.Resources; import android.os.Bundle; import android.widget.TabHost;
public class HelloAndroid extends TabActivity {
/** Called when the activity is first created. */
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); setContentView(R.layout.main);
Resources res = getResources(); //Resource object to get drawables
TabHost tabHost = getTabHost(); //The activity tabhost
TabHost.TabSpec spec; //Reusable tab spec Intent intent;
intent = new Intent().setClass(this, HelloAndroid.class);
spec = tabHost.newTabSpec("artists").setIndicator("Artists", res
.getDrawable(R.drawable.tab_artists)) .setContent(intent);
tabHost.addTab(spec); } }
I don't know how this code could possibly throw a message like that.
Is it possible to download and run android market applications on the emulator. I read on the android market website that apps can be downloaded from a real phone only. So as my emulator provides the environment for any market app to run on it, so can i run any android marketplace app on my emulator?
View 3 Replies View RelatedI don't know if this is kosher, but I wanted to see if anyone would want to test an app I built. I don't want to release an app to the market without getting out all the bugs I can, but I'm a lone developer trying to build apps on the side in my free time. I don't know many people with Droids, so I'm trying to reach out to the community. I built an app I call "Next Track on Shake". Not a good name, (and I'm up for suggestions for a better name) but I can't think of anything else to explain its function. I listen to alot of music, usually on shuffle, and I hate having to wake the phone up, unlock the screen, open the music player, and change the track. The new versions of Android require PIN or Password when you use a corporate account, and that adds another step in changing tracks. I built an app that allows you to shake the phone, whether awake or not, and it will move to the next track for you. I also added the ability to customize the shake; you can set how hard or how fast you need to shake the phone to change the track. The default shake is a good setting for most people, but alot of people jog with the phone on their arm or hip and would need to adjust the strength of the shake so as to not accidentally change tracks. I've also added the ability to stop/start the service when needed, and I display an ongoing notification when the service is running. When the phone is rebooted, the app checks the preferences, and only starts the app if you had the service running before reboot.
View 3 Replies View RelatedI have created an app which needs some testing done. I have tested it on the HTC Hero (UK version) and the HTC Tattoo. Worked well on both the devices. I wanted to test it on the newer android phones like the Droid or the Nexus One. If anyone could help me out with the testing, there is a link to the .apk file below. This app does functions like silencing the ringtone when the phone is flipped, switching on the speakerphone when in call etc.
http://dl.dropbox.com/u/556550/FlipShake.apk.
I created a sqlite database to store playlists for a media player I am developing because of extended feature (rather than using the Content Provider). It works perfectly on the 1.6 emulator but FCs on anything higher than 2.0... what has changed that I need to know about as far as opening databases in SDK 2.0+? Here is the logcat.
CODE:.............
Here is the dbhelper class
CODE:................
why can't stackoverflow just use tags like a normal syntax highlighter.
Unable to play youtube videos on SDK 1.5 emulator - but playing well on SDK 1.0 emulator. Can you update the source....
View 7 Replies View RelatedFinally strace gave me this:
CODE:................
And several other attempts to call "link" that also fail (sshfs does not support hard links).
Is it possible to change the emulator's behavior to create lock files somewhere in /tmp (using some hash of image path as lock file name)? I am OK to try this myself: which repositories from https://android.git.kernel.org/ are necessary to rebuild the emulator alone, and where in the sources is the code responsible for image locks?
I need to run several emulator instances to test my application. When i try to run instances using emulator -data <path> option, the emulator crashes.
I got a MS Visual Studio window informing that emulator throws a "unhandled win32 exception".
The exception message in the debugger (MS Visual Studio 2008) is: "Unhandled exception at 0x77c4706c in emulator.exe: 0xC0000005: Access violation reading location 0x03216848"
The emulator runs normally without "-data" option.
I am getting the following error when I try running my program in the emulator:
emulator: ERROR: the user data image is used by another emulator. aborting`
I'm prepping my first app for publishing and am a bit confused about how to properly test my <uses-permission> tags.. if i don't specify any permissions my app runs with no complaints on my G1. I tried installing it via "adb install" as well as with the eoeAppInstaller (as somebody had recommended). Also, the app is signed with my own certificate (not the debug cert). given that it works fine with no permissions (btw, it accesses camera and sd card), how will I know if I've set all of the proper <uses- permission> tags?
View 5 Replies View RelatedIs there anything to test the UI of an Android app like Jemmy for Swing?
View 3 Replies View Related