Android :: How To Test Performance Of An Phone Appl?
Dec 24, 2009How can I test an application for performance in Android? What is the support provided in Android and how do I use it?

How can I test an application for performance in Android? What is the support provided in Android and how do I use it?
I cannot test build Android application on my HTC Evo at all. I searched online for answers, but nothing helped, including updating all the software. The Eclipse launched Emulator doesn't recognize it as an external device either.
View 1 Replies View RelatedHow can i test the performance of an android application ? Is there any tool that i can make use of ?
View 2 Replies View Relatedwhat is intent action name(e.g. action name "android.media.action.IMAGE_CAPTURE" for launching camera appl) to launch the native map appl Is there intent available(documented or undocumented since above intent of capturing image is undocumented ) for launching maps appl?
I know one for launching maps for driving direction "this.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps? f=d&saddr=37.4,-121.9"+ "&daddr=Bellevue, WA&hl=en")));" but this goes to driving direction page of maps appl.
is there any way to launch maps appl which will open maps home page?
For launching a camera from appl which action requires?
If start a camera from my appl and captured image, how should I pick-up (retrieve) that current image to my appl from camera provider. what is process for this(which Uri).
I'm looking into writing an Android game, tough I don't curerntly own an Android device. For those of you who own a device, how does the performance on the emulator relate to real device performance? I'm especially interested in graphics related tasks.This obviously depends on both the machine running the emulator, and the specific device in question, but I'm talking rough numbers here.This question is a duplicate, but since that post is heavily outdated, I figured it's irrelevant by now.
View 3 Replies View RelatedMotorola CLIQ Over-the-Air Update
[Retail Partner Sales - T-Mobile Employees and Authorized Dealers]
February 19 Update
The over-the-air update for the Motorola CLIQ has been delayed to the week of February 22. An updated article will be available once a date has been determined.
On February 18, Motorola will begin sending over-the-air (OTA) software updates to Motorola CLIQ customers. The software update will improve device performance and resolve several known issues.
Improved Performance:
Improved battery life
Improved software performance and stability
Improved widget response
Decreased Force Close error messages
New Manage SIM Card application
Support of .WMA and .WAV media files
Removal of the imeem mobile application
Known Issues Resolved:
Accessories & Bluetooth
Error: 'Unable to pair' or 'Unable to connect to device'
Call functions
Can activate other functions while listening to visual voicemail
Call not ended by pressing the End key
Speakerphone turns on unexpectedly when answer incoming call
Plays ringtone or vibrates while on an active call
Unable to answer incoming call using �Slide to answer� feature
Accidentally opens Dialer or makes outbound while holding device
Device hardware (battery, keys, power, screen)
Battery indicator may not display accurate battery power
Call not eded by pressing the End key
Touch screen issues
Cannot answer incoming call using the Slide to answer feature
Incorrect keys registered using on-screen keyboard
Touch display appears to have �dead spots� that are unresponsive
Accidentally selects item when trying to flick through screens or menus
Messaging
Wrong message deleted
Phone may reset when turning Wi-Fi off in area with no Wi-Fi coverage
Customers can manually download the OTA on demand by going to Settings > About Phone > System Updates. Customers do not need to wait for a notification message to download.
Action Steps
Be aware of the fixes and enhancements included in the Motorola CLIQ update.
If customers are experiencing any Known Issue that will be resolved by the software update:
Do not file a handset exchange
Advise customers that the issue will be resolved by a software update on February 18.
Important Rebate Changes
[Retail Partner Sales - T-Mobile Employees and Authorized Dealers]
Customers eligible for rebates as part of new activations or upgrades must be advised they will receive their rebates in the form of a prepaid Visa card.
When customers take advantage of our new Early Upgrade or Early Upgrade Plus options, they are not eligible for upgrade rebate cards. These new upgrade options allow customers to take advantage of upgrades sooner and provide an instant discount, instead of having to wait for rebate cards.
To be eligible for an upgrade rebate card, customers must meet upgrade eligibility requirements.
Current, 1-year contracts: 11 or more active months since last discounted handset purchase.
Current, 2-year contracts: 22 or more active months since last discounted handset purchase.
Rebates on eligible purchases require contract extensions and a $9.99 or higher Data/Messaging feature.
Valid only on FlexPay plans with 1 or 2-year contracts.
Not valid for Even More Plus plans.
Active Months: The number of months in which the account has been in good standing and during which service has not been suspended.
Action Steps
Inform customers that Early Upgrade and Early Upgrade Plus are not eligible for upgrade rebate cards.
Advise customers eligible for rebates that they will receive their rebates in the form of a prepaid Visa card.
"With the purchase of your new handset, you can submit a rebate form to receive your rebate. The rebate will be in the form of a prepaid Visa card that can be used anywhere Visa is accepted. See the rebate form for additional details."
Trackball Replacement Program
[Retail Partner Sales - T-Mobile Employees and Authorized Dealers]
On February 24, T-Mobile will launch a Trackball Replacement program for BlackBerry Pearl 8100/8120 and BlackBerry Curve 8320 customers that are having trackball issues. This program will be available in T-Mobile retail stores only at this time.
Action Step
Refer customers to a T-Mobile retail store after February 24 for further assistance if they come in to your location looking to complete a trackball replacement.
First Connect for Dealers
[Retail Partner Sales]
First Connect for Dealers is an exciting class designed to help on-board and prepare Retail Partners to successfully sell T-Mobile products and services and provide differentiated customer experiences. This four hour class is conducted via the T-Mobile Live Virtual Classroom and covers the following:
Welcome to T-Mobile
Who is T-Mobile?
PCC
Differentiated Handsets
Differentiated Rate Plans
Service Excellence / Selling Skills
Tools and Resources
Customer On-Boarding
The attached flyer contains dates and times for these calls as well as registration details. ADRs should educate their locations about these calls and encourage them to attend.
To successfully be able to attend the training sessions, Retail Partners should have the following:
Computers with high speed Internet connections
The ability to play and hear video segments on the computer using speakers or headset
The use of a fully charged mobile phone to hear the audio portion of the conference call
Printer access to print Participant Workbook.
Action Steps
Share the attached flyer with your locations and encourage them to attend one of the scheduled calls.
I'm writing an Android JUnit test and want to copy/reset a test fixture file (it's an SQLite database file.) If I were within the main application, I know I could just place the file in the assets directory and use getResources().getAssets().open(sourceFile).However, this API appears to be unavailable from the ActivityInstrumentationTestCase2 class.Is there an easy way to copy a file over from the testing PC, or should I just keep a fresh copy of a test fixture on the device and copy it over a temporary file?
View 2 Replies View RelatedI am using ActivityInstrumentationTestCase2 to do some test for an activity. I get a button in the setUp() method like this: protected void setUp() throws Exception {super.setUp(); act = getActivity(); btn = Button)act.find ViewById ( R.id.bike_button ); // this button has been defined in layout} Then I use this button to perform a click in a test method like this: public void testBikeButton(){ //click the bike button btn.performClick();}
View 7 Replies View RelatedI have never used JUnit before, and now I'm trying to set it up on an Android project.My project under test is fairly complex, including some JNI, but my test project, at the moment, is completely trivial. I have found many examples (that look totally different) online of how to make a test project, but it seems that no matter which one I follow, I get the same results.Here's my JUnit project code:package com.mycompany.myproject.test;
import android.test.AndroidTestCase;public class SimpleTestCaseExample extends Android TestCase {public void test_testOne() {fail("Just Always Fail");When I run, I see the following in Logcat:
stdout INSTRUMENTATION_STATUS: numtests=2
stdout INSTRUMENTATION_STATUS: test=test_testOne
stdout INSTRUMENTATION_STATUS_CODE: 0
stdout INSTRUMENTATION_STATUS: id=InstrumentationTestRunner
stdout INSTRUMENTATION_STATUS: current=2
stdout INSTRUMENTATION_STATUS: class=com.mycompany.myproject.test.SimpleTestCaseExample
stdout INSTRUMENTATION_STATUS: stream=
stdout INSTRUMENTATION_STATUS: numtests=2
stdout INSTRUMENTATION_STATUS: test=testAndroidTestCaseSetupProperly
stdout INSTRUMENTATION_STATUS_CODE: 1
stdout INSTRUMENTATION_STATUS: id=InstrumentationTestRunner
stdout INSTRUMENTATION_STATUS: current=2
stdout INSTRUMENTATION_STATUS: class=com.mycompany.myproject.test.SimpleTestCaseExample
stdout INSTRUMENTATION_STATUS: stream=.
stdout INSTRUMENTATION_STATUS: numtests=2
stdout INSTRUMENTATION_STATUS: test=testAndroidTestCaseSetupProperly
stdout INSTRUMENTATION_STATUS_CODE: 0
stdout INSTRUMENTATION_RESULT: stream=
stdout Test results for InstrumentationTestRunner=..
stdout Time: 0.07
stdout OK (2 tests)
stdout INSTRUMENTATION_CODE: -1
But, I get the following in the Console:Launching instrumentation android.test. Instrumentation TestRunner on device emulator-5554 Collecting test information Test run failed: No test results I have tried a variety of different things, messing with the basic TestCase class, or the TestSuite class, or a variety of other options. I tried to just go for the most trivial example because I'm really still trying to learn how this works.Whatever I try, I see this error.
I'm working on a school project and I'm researching testing possibilities for Android applications. On this page: http: // developer . android . com/ resources / tutorials /testing /hello android. Google writes about a unit test. Is this really a unit test? A Unit test will not integrate all classes and will not test in his context. So my opinion is it is not a Unit Test but an Integration Test.
View 7 Replies View RelatedI am working on a compute intensive app for Android. I do not have any device yet to test performance. However, the performance on emulator is a bit slower than expected. I see an old question about some estimation of emulator vs device. What are your experiences while developing apps with recent SDK Froyo/2.2. Is performance observed on emulator is slower than actual device. Please share your experience and the specs of your dev machine and mobile devices, both.
View 3 Replies View RelatedBelow is a simple bench between Navive C and Dalvik Java, which is collected from Android SDK 1.1. Code...
View 3 Replies View RelatedOne more video about the fancy touchscreen of the Droid X. This one has happier results! Check it out at the link below.Droid X Touchscreen Test See you later. you'll know why this post is short when you read the blog. running downstairs!
View 5 Replies View RelatedI am implementing the client side of some java application for Android devices which requires a lot of user interaction, image loadings and JSON object parsing. I'm trying to decide whether to implement it with html5, flash or Android native code.
View 1 Replies View RelatedI have a project (that compiles and runs in the emulator.) I have a test project that tests part of this project. This test project also compiles with no problems, but when I try to run (test) it in the emulator, I get a NoClassDefFoundError exception on one of the classes my test class tests (I hope that made sense!) when it starts to run in the emulator. This is coming out of the adb log. I looked in the bin directory (of the test project) for the missing class, but could not find it... Should it be there? I found no reference (apk, etc) of the project I am trying to test either in the test projects bin directory. How does the test project get the classes it needs to test against (in the classpath, I assume.) How do the tested classes get moved to the emulator? I did try running the app before testing, so I know it is installed and runs correctly. BTW, I am using netbeans with the nbandroid plugin.
View 1 Replies View RelatedI plan to submit an app for the ADC II. I wanted to know if it is required that I test my app on the Andoird Dev Phone? If it runs on the emulator is it safe to assume that it runs on an actual phone? The phone is pretty costly and will be useless for me after the contest. Is there a place I can rent the Dev phone?
View 7 Replies View RelatedWhere do I copy the apk file on the Motorola Droid? Which directory? Are there any possible issues I need to be careful of, it's also my personal phone.
View 3 Replies View RelatedThis last weekend during the pre-release (7/30/2010) we learned a LOT about Froyo on the EVO by exhaustively searching down every problem. Here's the simple story for any number of bugs, erratic behavior and incessant up time. This is NOT to going to solve all problems for 100% of you - but - I'm very confident that it will for most of you, as in - OVER 95%.
It will NOT fix these classes or types of defects:Pandora / Slacker users.. Please star this bug.. GMail non-primary account not syncing/notifying in real timeThis one _might_ be solved with this workaround Google speaks up on GMail with Froyo. My personal approach to mail
Any apps that are known to have Froyo issues. This is usually the hard step, because it requires you to check the comments against your installed apps - that's not tough per se, but it can be time consuming if you have a lot of apps. Go to Market, your downloads, inspect each apps comments if you continue to have doubts and need to be sure. At least the new Market app gives a Comments tab, making this job easier. The worst case is starting over, installing apps one by one until the culprit is found. MANY users found Facebook 1.3 seems to have been the culprit on their machines - another user found it was a wallpaper app.
There is one pathological class that is making no sense that we're trying to track down; at least two people are finding a runaway CPU, takes-forever-charging, and no battery staying power EVEN AFTER FOLLOWING THIS METHOD - and in one case at least only using stock apps! This may or may not be limited only to PC-USB charging however.We're working together to solve this one.
My personal latest guess is on the SD card - but - I know this was seen and solved for 2.1 but I cannot find that thread for love nor money. Was it a reformat to FAT32 from a PC?
If you know the answer, please post it in this thread!
Found this! I'm not expert as to whether to format on phone or using PC - there's some controversy on this, but using the phone to format the SD card DOES make sense.
Possible Swype fixes - or anything specific to some app's idiosyncrasies
A corrupted 2.2 update file.This is insanely rare, but not unheard of, and has been reported to have happened at XDA.
This is insanely rare.
Here's the deal - the updates do not have a lot of defects - aside from the above list - it has essentially one big one.The cache / data areas are tangled up.
As you run things over time, your cache - the area where lots of things get worked from - has gotten all tangled up. Just like your web browser has a cache, Android has data and cache areas - once tangled up, all sorts of symptoms appear.
The solution is simple:
Backup
Factory reset / wipe data
Restore
1. Backup
Backup is important with every phone.First and foremost, ensure the Google servers are up to date with your contact and calendar data. Menu -> Settings -> Accounts & sync -> Sync all. If you are using any third party apps for this sort of thing, or corporate servers or Exchange accounts - be sure that your contacts and other information is appropriately synced.Verify that your contacts are on the Google server. Yes - do that!
If your chosen backup method will support it - next go to Menu -> Settings -> Personalize -> Scenes -> Menu and this will save your 7-desktop layout.
If you've got 5 bucks and you're not rooted, get MyBackup Pro, it should backup everything you care about. Another good alternative is Sprite Backup plus ASTRO used at the same time.
If you're rooted, use Titanium Backup - backup your user apps, desktop, Mail, and everything marked with "Titanium."
If you're not comfortable with the above, you can backup your apps for free using ASTRO File Manager, free from the Market. Once you have it, go to Menu-> Tools.Here's a thread on ASTRO, wish I'd found it earlier!I'm leaving AppBrain.
If you've never done this before - NOW at this point would be a good time to back up your SD card to your PC. Simple select all, then drag and drop into a clean folder onto your PC via USB should do the trick. This isn't required - but you can never have too much backup protection.
2. Factory reset
Once you have your backup, goto Menu-> Settings-> SD & phone storage -> Factory reset.You WILL lose your installed apps.You WILL lose your local logins and accounts unless you use a better backup than free - but you're likely to not lose much. (If you're synced to the google servers - and you should be - you'll still have your contacts and calendar entries.)
You will NOT lose your SD card contents. (But be safe and back it up to a PC as noted above.)You will NOT lose your 2.2 update.Do the factory reset.
3. Restore CORRECT Behavior *and then* Your Stuff
When finished - download the free Network app from the Market. (Network by Philipp Mangelow)Start it, and scroll down until you see "CDMA auto (PRL)" - change it to "GSM auto (PRL)" - exit Network; re-start Network then change back to "CDMA auto (PRL)" - and finally, go to Menu-> Settings-> System updates-> Update PRL
This sounds like majick snake oil but it's not - it's an idiosyncrasy of the phone's hardware and firmwareDepending upon your particular apps and backup tool, you may be required to add this step, so now is a good time (if you're uncomfortable with this, you can do it if and when required):
Menu -> Settings -> Applications -> Unknown sources (check on to allow non-Market apps)
Now, go to the Market and download again the tool you used for your backup.
NOW restore your backups by reversing your chosen tool.
DO NOT re-install full Flash 10 for 2.1 if you had that before.
Consider NOT re-installing LED Light, the included Flashlight is really better.
DO NOT re-install any task killers or cleaners.
At least one user has found that if this doesn't work and issues remain, then power up your phone while holding down the volume-down key. This gives a menu that includes an option to Wipe/Clear all data from the phone. Use that by navigating with the volume buttons and selecting it with the power button. Use the menu to reboot when done.
4. Stock Browser Note
When you're done, you may still notice browser slowdowns from before.
This is easily fixed.Menu-> ... More -> Settings -> Clear cache
Settings -> Enable plugins :: change from always on to just on-demand. This will prevent your browser from caching all of the Flash content it can find. This will also require you to tap on a green icon in flash videos and that sort of thing.
This is a user-choice for how you want YOUR browser to behave.
5. Et cetera, et cetera
It seems that when you do this, Talk may be set back to auto-login on startup. If you're not a big Talk believer, you might want to shut that off to conserve battery life. You'll find it in your app drawer.
Likewise ou can also turn off Background data under Settings -> Accounts & sync. The cool thing now is there is a widget, available under Shortcut -> Settings for your desktop that'll take you right to that page whenever you want, conveniently, like when you want to go to the Market, for example.
Talk has some controversy as to whether it can impede instant notifications for GMail - and many people are uncomfortable with background data for any number of reasons - I'm just no longer sure, so this is more "customization how-to" rather than strict advice or anything.
By the way - there's a Sync All widget now, under Widgets, for your desktop that does just what the name says. Best of all - you can have background data and auto-sync off, use that new Sync All widget from time to time - and they stay off.
I'd also like to note this specific advice if your Sense launcher is force closing and not letting you get anywhere -
FIX: "The Application HTC Sense (process com.htc.launcher) has stopped unexpectedly"
Note well that the article ends suggesting you may have to follow this post's procedure. Yes, do.
There's also a note at XDA warning to turn off your LED notifications. That's under Settings -> Display. The new default is for all of them to be on - and this is said to cause some process to run, draining some battery life.
Settings -> Wireless & networks -> Mobile networks - ensure that "Enable always-on mobile data" is not enabled (not checked).
Settings -> Wireless & networks -> Mobile networks -> Roaming -> Sprint only
And finally - Sprint Zone - turn off its auto-login and any notifications it wants to send, unless you really have some use for it.
6. Summary
I've started this thread to help out with the many threads for people with problems.
Please keep this thread clean, and only respond if you're having trouble with the procedure.
From the smallest bug to the largest - this is best advice you're likely to ever get with your EVO.
Finally - and this is VERY important:
If you're using a task killer or cleaner, stop for the moment, and uninstall it.
The task-killing protocols for Froyo are NOT the same as they were for 2.1.
And Froyo is so much better at memory management - AFTER you've done a factory reset and cleaned out your cache / data tangles - you're not going to believe.
Try your new Froyo for a few days like this and then and only then if you're still convinced that you need a task killer, go for it. But not because of the number of tasks running - wait and see if you don't already have better performance than before.
Hope this helps, thanks in advance for your help in keeping this thread clean.
PS - This advice is the result of the efforts of too many people to name individually who pulled together in this forum since last Friday's pre-release of Froyo. They know who they are, and without their efforts this knowledge would not have been possible. I thank them, one and all, on my behalf and yours.
PPS - This advice is for the HTC EVO 4G on Sprint and may not apply to all devices.
Definitely do NOT follow this procedure if you're using a Motorola Droid X and are on Verizon.
I am unable to integrate Junit with Android. I am using Junit 3, I have also tried Junit4.
package* com.android.test;
import* com.android.MyActivity;
import* android.app.Activity; *
import* android.test.ActivityInstrumentationTestCase2;
public* *class* TestMyView *extends *
ActivityInstrumentationTestCase2<MyActivity> {
Activity myActivity ;
*public* TestMyView(String pkg, Class<MyActivity> activityClass) {
*super*(pkg, activityClass);
myActivity = getActivity() ;
I've just released Squibble Lite, a game i've been developing for android. I've had access to a nexus1, a desire, and a samsung galaxy s to test on. Unfortunately, these are all pretty fast phones with 1ghz processors. Just wondering if someone with a 600mhz phone would be willing to give it a go, and let me know how it plays performance- wise?
View 6 Replies View RelatedI'm planning a mini road trip this weekend and I want to use it as a way to test out the GPS capabilities on the phone? I'd like to be able to replace my Magellan entirely. The maps are a bit out of date and it would be nice to have one less device to carry around.
I tried both NDrive and GMaps. I was unimpressed with both of them. Both were much more difficult to program than my Magellan when I tried programming them manually. NDrive was confusing to set up in the first place. GMaps worked quite nicely with voice programming, but I have no clue what commands I've got beyond that. NDrive didn't support this at all. On my Magellan I can give voice commands and have it pull up the POIs at the next exit so I can see not only where the next gas station is, but where the next gas station is after that. (Extremely useful if you're on an eighth of a tank and don't know if you must stop at this exit or if there's another gas station 2 miles down the road.) The voice for GMaps is extremely annoying.
I prefer free of course, but I'm more than willing to pay for a quality app if I can test it out before hand and make sure it does what I need it to do. Ideally I want the following:
Voice programming - I want to be able to say "Go to 1234 Main st" or something similar and it go.
Easy manual programming - I want to be able to easily enter destinations manually.
Trip planning - I want to be able to program multiple destinations. I recently went to Chicago. With my Magellan, I was able to program all the places I wanted to go before hand so I just had to click on the tourist trap I wanted to see and it directed me there.
Voice activation while driving - I drive alone most times. I'd like to be able to not have to take my eyes/attention off the road to search for the closest fast food place or gas station.
Integration with the other parts of the OS - I want it to do the standard things like mute the music when it gives voice prompts and turn it back up when it's done, mute voice prompts when the phone rings, etc. Any ideas on apps that will do all this?
I am new to Android test frameworks ,Would like to know the differences between existing test frameworks : Monkey , CTS ,Instrumentation Framework & Robotium ?
View 1 Replies View RelatedWhen we build and install the test application from eclipse, it is able to launch the test application and show the running of tests. However, we wish to launch the test application from the phone directly. Is this possible. As test application does not have any activity it does not have main icon displayed. Could any one point us to right approach this regards Regards, Raja Nagendra Kumar, C.T.O www.tejasoft.com -Mobile Enterprise Applications Development Excellence
View 5 Replies View RelatedWe are building a complex Android application consisting of many screens and workflows spread across many Activities. Our workflows are similar to what you might see on a Bank's ATM machine, for example, there is an Activity to login in that transitions to a main menu Activity which can transition to other activities based on the user's choices. Since we have so many workflows we need to create automated tests that span multiple activities so we can test a workflow from end to end. For example, using the ATM example, we would want to enter a valid PIN, verify that sends us to the main menu, choose withdraw cash, verify that we are on the withdraw cash screen, etc., etc., and eventually find ourselves back on the main menu or "logged" out. We've toyed with the test APIs that come with Android (e.g. ActivityInstrumentationTestCase2) and also with Positron, but neither seem capable of testing beyond the bounds of a single Activity, and while we can find some utility in these tools for some unit testing, they won't meet our needs for testing scenarios that cut across multiple Activities. We are open to an xUnit framework, scripting, GUI recorders/playbacks, etc. and would appreciate any advice.
View 9 Replies View RelatedSorry if this is a bit of a vague question, however im struggling to find a single solid example on how to do unit testing (isolated testing) with Android. So one project contains models and logic, then another project contains tests for said library. There is no front end or UI, so I want to do the bare minimum to just be able to test that my methods all work in isolation.
View 1 Replies View RelatedI was wondering if someone could help me with improving my speed and performance on htc hero.
View 4 Replies View RelatedAnyone buy it? How well does it run on our little hero?
View 1 Replies View RelatedI am new to android development. Why is it that the screen looks great on a test avd but when I deploy the app to my Droid everything is off and really small?
View 3 Replies View RelatedI am a tester, is there a way to control the Android phone or do the automated testing using a remote PC? Or how can I dev such a automted tools, Use which technology? thanks.
View 14 Replies View Related