Android :: How Can I Reliably Test Alarm Manager On Device?

Aug 5, 2010

I'm writing an android application that depends on network activity and the alarm manager sometimes waking the phone up from a sleeping state. My question is how can I reliably test this on device? Ideally, how can I force the phone into a full-on sleeping state. Failing that, how can I know for sure when the phone has fully gone to sleep? How do you test your Alarm Manager / Wake Lock / Sleep handling code?

Android :: How can I reliably test Alarm Manager on device?


Android :: How To Transfer Test Fixture File To Device From Unit Test Application?

Sep 24, 2010

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 Related

Android :: Pass Values In Alarm Manager?

Sep 7, 2010

How can we pass the value to receiver...i am using alarm manager...

View 1 Replies View Related

Android :: How To Reschedule Alarm Manager On Preference Change?

May 25, 2010

I have an Android Service. When a phone boots up, a broadcast receiver receives a notification and it schedules the service to run repeatedly at a gap of X minutes. Henceforth After every X minutes another broadcast receiver gets those notifications and kicks the service off, which does it's job and quits. So far so good. Now I want those X minutes to be configurable. I have a perf.xml similar to what is given at the link below. This XML captures all my preferences along with that of service timer. http://android-journey.blogspot.com/2010/01/for-almost-any-application-we-need-to.html Now when user changes preferences; how can I reschedule the alarm? Is there a way I can set a listener on preferences change? I have used only XML files to speficy preferences screen. Code...

View 1 Replies View Related

Android :: Alarm Manager For Multiple Pending Intent Are Not Working.

Aug 16, 2010

In my application i have created pending intent which calls another activity (after 20mins of alarm off) with the help of alarm manger. It should happen each time for each new pending intent or when I call that activity. But when i create one pending intent and after few mins again create new pending intent ,then the last one overlap the other previous pending intents and start specified activity only for ones for the last pending intent.I want that each time i create any pending intent it should start specified activity after 20 mins of it's alarm off time.How it can be done ?

View 7 Replies View Related

Android :: Using Alarm Manager To Start A Service At Specific Time

Jun 16, 2010

I have searched a lot of places but couldnt find a clean sequential explanation of how to start a service (or if thats not possible then an activity) at a specific time daily using the AlarmManager??I want to register several such alarms and triggering them should result in a service to be started. I'll be having a small piece of code in the service which can then execute and i can finish the service for good. Code...

View 1 Replies View Related

Android :: Alarm Manager Broadcasts Canceled When Application Killed?

May 15, 2010

I have two BroadcastReceiver registered. When the app is closed they both fire at the appropriate times and do the appropriate things. If the app is closed then killed (say with an AppKiller), the receivers never receive their broadcasts, and nothing happens. Presumably the same thing happens if the parent app is killed due to low memory, so how do I ensure those broadcasts are fired/received. The API states that even if the app is killed it should fire, does anyone else have experience with this situation? If it helps my manifest is:

<!-- receivers for AlarmManager -->
<receiver android:exported="true" android:label="Shift roster updating calendar."
android:name="com.skooter.shiftroster.backend.service.UpdateCalendar" >
</receiver> <receiver android:exported="true" android:label="Shift roster checking alarm."
android:name="com.skooter.shiftroster.backend.service.SetWakeup" >
</receiver>
and nothing esoteric is going on in the AlarmManager/BroadcastReceivers

View 1 Replies View Related

Android CTS Test On Device

Jun 24, 2010

i am working on android CTS test, i am getting API check time out error whenever i start test plan CTS, i followed the below steps for CTS test and also i mentioned my doubts.

CTS test steps :

1. Please download and install the Android 1.6 SDK on your machine.

2. Your phone should be running a user build (Android 1.6 and later) from source.android.com

3. Please refer to this link on the Android developer site and set up your device accordingly.

4. Make sure that your device has been flashed with a user build (Android 1.6 and later) before you run CTS.

5. You need to download the TTS files via Settings > Speech synthesis > Install voice data before running CTS tests. (Note that this assumes you have Android Market installed on the device, if not you will need to install the files manually via adb)

6. It is advisable to log in to the device with a test Google account, not an account that you actually use.

7. Make sure the device has a SD card plugged in and the card is empty. Warning: CTS may modify/erase data on the SD card plugged in to the device.

8. Do a factory data reset on the device (Settings > SD Card & phone storage > Factory data reset). Warning: This will erase all user data from the phone.

9. Make sure no lock pattern is set on the device (Settings > Security & location > Require Pattern should be unchecked.Google Confidential

10. Make sure the "Screen Timeout" is set to "Never Timeout" (Settings > Sound & Display > Screen Timeout should be set to "Never Timeout".

11. Make sure the "Stay Awake" development option is checked (Settings > Applications > Development > Stay awake).

12. Make sure Settings > Application > Development > Allow mock locations is set to true.

13. Make sure the device is at the home screen at the start of CTS (Press the home button).

14. While a device is running tests, it must not be used for any other tasks.

15. Do not press any keys on the device while CTS is running. Pressing keys or touching the screen of a test device will interfere with the running tests and may lead to test failures.

Doubts :

1) is it necessary to follow all the steps ?
2) for step 5, i copied the voice data to the SD card and if i follow step 8 it will erase all contents of SD card so how can i follow both step 5 and step 8 at a time...?

error message while doing CTS test on Device :

pvteam@pvteam-desktop:~/Desktop/android-cts/tools$ ./startcts
Android CTS version 2.1_pre_r1
Device(HT9A4LV00787) connected
cts_host > start --plan CTS
cts_host > There are 3 existing session(s) for plan CTS.
[code]...

the Device restart took place three times then i stoped the CTS test.

View 5 Replies View Related

Android :: Android Alarm Manager Alarm

May 28, 2009

Do we hear a ringing sound when the alarm manager sets off an alarm. I know its start a intent and that broadcasts to the receiver.. but does there occur a ringing or something similar sound when the alarm goes off.. am developing using and emulator...so not sure.. also i have come to know that vibrator service is not available in the emulator....is there an alternate way to ensure that the vibrator did go off as programmed...am using the vibrator servcie and also setting the vibrator in the notification.

View 8 Replies View Related

Android :: Way To Test Rotating Device / Emulator?

Jun 9, 2009

I'm using the 1.5 SDK. I read in 1.0 that rotating the device would cause onCreate() to be called in our apps (possibly recreating the entire app?). Is there a way to test rotating the device in the emulator? I just want to see what happens, I don't have a device to test this. Will the behavior be the same for 1.5 as it was in 1.0?

View 3 Replies View Related

Android :: Test App On Real Device Without Publishing?

Jan 18, 2010

Is there a way to test the application on the real device without publishing to android market?

View 2 Replies View Related

Android :: Phone Doesn't Allow To Test App On Real Device

Oct 29, 2010

I'm trying to test a test app I developed on android 2.2 sdk on my htc phone with Froyo on it (2.2). In the emulator it works fine, when I export as unsigned app and try to install on the phone, it doesn't allow me, just telling me 'application non installed'. The phone has the settings to accept installation of non android application, so I'm not sure why I can't test on it. Is it because it's not signed?

View 2 Replies View Related

Android :: Can Archos 28 Be Used As Test Device For Phone Development?

Nov 15, 2010

I would like to start doing some Android development, and would like a cheap device to deploy apps to, just for testing and demo purposes. Is it possible to deploy apps to, for instance, an Archos 28? I don't know much about Android development yet, and haven't found a good answer to this question elsewhere.

View 1 Replies View Related

Android :: Unable To Test Applications On Physical Device

Dec 26, 2009

Just started developing apps and am having a small problem. I can test the apps on the emulator but I cannot test them on my physical android device. When I am asked to select a running device I get a device listed as: Serial Number/name:? AVD name: N/A Target: unknown etc,

It seems that my device is being picked up but not able to be used. When I try to run the app I get an "Must set android.target.avd" error.

Is there something I am missing?

I am using netbeans 6.7.1 on Ubuntu 9.10, everything up to date. I have a G2-Touch from T-mobile, if someone tells me where to find it, I will post any other needed information.

View 2 Replies View Related

Android :: Need Device To Test Custom Input Method Application

Aug 27, 2010

1. I am in the process of creating an Input Method for Android devices. I using Eclipse(3.4) IDE and have Android (1.5 and 2.2) SDK. 2. Currently i am doing testing on the Emulator. But i wish to test it on actual Android device. 3. Can you please tell me which ideal device should i buy to test my application 4. Is there any lead device assigned by Android for a given SDK. 5. I intend to sign and publish my application so can you please tell me is there any Certification criteria which i have to follow.

View 2 Replies View Related

Test SMS App In Real Device?

Mar 5, 2014

how to do the text messaging app in android. i created test app. with an edit text and button and wrote the code to send sms. i could test it with 2 emulator. and the message sent successfully. but i need it to test on real device. In emulator we are giving emulator id as the phone number. what should we do if in the case of real device.

View 1 Replies View Related

Android :: Launch Virtual Device From Eclipse Every Time We Want To Test Our Code?

Jun 5, 2010

Do we need to launch the virtual device from eclipse every time we want to test our code? If yes, then is there any other method to make it a bit faster?

View 4 Replies View Related

HTC EVO 4G :: No Need Of Protective Skins - Device Survives Scratch Test

Jun 11, 2010

I thought it was pretty interesting. Glad I just bought no skins. Sprint HTC EVO 4G Survives Scratch Test.

View 6 Replies View Related

Motorola Milestone :: Test New App On Phone Device / Want Tester

Feb 4, 2010

Could someone test my new application on Motorola Milestone device? Please send private message if you can help.

View 12 Replies View Related

Android :: Alarm Clock Won't Ring If Device Is Turned Off / Fix It

Jun 10, 2010

It looks like I am obliged to let my phone turned on to make it ring for the alarm clock. Am I right? At least, this is what seems to happen with Math Alarm Clock (I did not test yet with the built-in alarm clock).

View 22 Replies View Related

KitKat 4.4 :: Android Device Manager Controls?

Jan 11, 2014

Is there anyway to block access and prevent someone from simply deactivating this or turning off the lock and wipe features in it?

View 3 Replies View Related

General :: Can't Get To Android Device Manager Page

Nov 21, 2013

I am trying to find my lost Nexus 7 but when I go to the Android Device Manager page on my phone or PC I get an Internal Server Error, Error 500. URL....

View 5 Replies View Related

General :: How To Activate Android Device Manager

Aug 7, 2013

As you may have heard Android Device Manager has rolled out to 2.2 and above. To activate it, go to settings and then tap Device Administrators. There should be an option to activate Android Device Manager.

To track it and wipe the data follow the directions: Go to [URL]... log in and then click the settings gear under your account info. There should be an option for Android Device Manager.

Be sure to read this too. Android Device Manager rolling out

View 4 Replies View Related

Android :: Tasker Unable To Reliably Detect Changes To Ringer Volume

Aug 1, 2010

About six months ago I installed RingGuard to prevent accidental changes to my ringer volume by accidental presses of the volume rocker. I uninstalled it about 15 minutes later, as (at that time) it prevented Locale from changing the ringer volume. I am now using Tasker, and it is unable to reliably detect changes to the ringer volume. Is it possible that something left over from RingGuard is preventing Tasker from seeing these changes? If so, how would I determine if this is what's happening?

View 2 Replies View Related

Android :: Enable Device Policy Manager Silently

Nov 9, 2010

there was a way to enable the Device Policy Manager without getting the users consent? The examples I've seen say to start an activity with intent DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN which results in a window being popped up on the handset. Is it possible to enable the Device Policy Manager without a popup window?

View 2 Replies View Related

Android Virtual Device Manager - Camera Has Stopped

Dec 30, 2012

I'm using Android Virtual Device Manager with an AVD Android 4.2 installed. The AVD configuration is like Whenever I clicked on the app Camera, I got the following error message

Unfortunately, Camera has stopped.I tried various solutions. I was thinking [HIGH]Menu->Manage apps->All tab->Camera->Clear data[/HIGH].should be able to solve the problem, but failed as well.

The only thing now I can think of is whether I need to change armeabi-v7a to armeabi or not? Should I use armeabi specifically for the emulator, rather than the real phones?

View 1 Replies View Related

General :: How To Connect Android Device Via File Manager

Jan 27, 2014

How to connect my Android device via file manager (personally I use FileMaster) to my Windows laptop? It requires a login and password that I haven't.

View 5 Replies View Related

Android : AVD Manager Won't Detect HTC Hero Phone As Virtual Device

Feb 10, 2010

I need to use my phone as emulator/target/virtual device when I run my application. I have installed HTC Sync and the USB driver is in order. I have enabled the USB Debugging in Settings. What more do I need to do to make Eclipse AVD Manager to detect my phone?

View 7 Replies View Related

Android :: Test Android Apps - Develop On Real Hardware Device

Jun 22, 2010

Since I don't know (and I don't think anyone does) when the next version of the Android Developer Phone that will support Android 2.x be available, can I use the following unlocked Android phone available on Amazon

http://www.amazon.com/Motorola-Milestone-Unlocked-International-Warranty/dp/B0030G6HRQ/ref=sr_1_23?ie=UTF8&s=wireless&qid=1277232350&sr=8-23

To test my Android apps (that is after testing on simulators).

View 1 Replies View Related

HTC EVO 4G :: How To Create Device Manager Instance?

Jul 28, 2010

HTC Sync (with cable to Outlook on my desktop) worked fine for a few weeks after I got the Evo and doesn't work now. Trying to start it brings up an error message "Unable to create device manager instance". I've searched the web and forums and have tried every suggestion, none of which work. Has anyone here had this problem and actually solved it?

View 3 Replies View Related







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