General :: Keyguard Test Activity Has Stopped

May 20, 2014

I'm editing a stock rom retail BR 4.4.2 of Moto X. I needed edit the SystemUI.apk for add a feature, and for this i should add a line in the AndroidManifest.xml, when i did all the modifications and install the rom, i get this message "KeyguardTestActivity has stopped". I have identified that the problem stay in the modification in the AndroidManifest.xml, and the "KeyguardTestActivity" is the app Keyguard.apk that is the lockscreen. I don't know why this don't work! I'm using the last apktool, i have installed the framework-res.apk of the stock rom!

General :: Keyguard Test Activity has stopped


Android :: How To Disable Keyguard And Display An Activity To User?

Nov 20, 2010

How can I disable the keyguard when a broadcast receiver is activated by screen_on, so that when it occurs the user sees an activity that I have started behind it?(The activity is running already)I have been trying the following code from a broadcast receiver triggered by screen off.It doesn't seem to be working though as it is. When I turn the screen on, I still have to manually unlock the keyguard on the phone to reveal the activity behind it.

View 1 Replies View Related

Android :: Pop Up Dialog Or Activity From Service Running In Background When Keyguard Locked?

Nov 19, 2010

I have an application in which there will be a service continuously running in background and on certain conditions service should call an activity or pop-up a dialog. I think this is possible. The question is, in case device keyguard gets on say after 2 minutes of idle time then will the service continue running in background. And what will happen when the condition of opening pop-up or Activity is reached.

View 1 Replies View Related

Android :: Error When Unit Test With Activity Instrumentation Test Cas­e 2?

Aug 23, 2009

I 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 Related

Android :: How Can I Unit Test Activity That Acts On Accelerometer?

May 10, 2010

I am starting with an Activity based off of this ShakeActivity and I want to write some unit tests for it. I have written some small unit tests for Android activities before but I'm not sure where to start here. I want to feed the accelerometer some different values and test how the activity responds to it. For now I'm keeping it simple and just updating a private int counter variable and a TextView when a "shake" event happens. So my question largely boils down to this: How can I send fake data to the accelerometer from a unit test?

View 3 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 :: Get Dorid Unit Test Instrementation To Call Activity's OnActivityResult()?

Feb 3, 2009

Can you please tell me if you know how to get the Andorid unit test instrementation to call my activity's onActivityResult()?

I can't find anything here: http://code.google.com/android/reference/android/app/Instrumentation.

View 4 Replies View Related

Android :: WakeLock And KeyGuard

Jun 7, 2010

I'm just wondering if I do this correctly; I'm programming a notification app which can display a notification when the phone is sleeping

Disable keyguard lock. Aquire a wake lock. show notification. Set alarm for timeout and reenabling keyguard and release wakelock is the user dont touches the screen. 4.1 User touches the screen, and I disable the timer. Do nothing more. Done and done 4.2 User dont touch the screen, so reenable keyguard and release wakelock. Phone sleeps again

Basically I'm wondering about point 4.1 the most. cancel the pendingintent for the alarm, and do nothing more? or should the keyguard and wakelock that are set be dealt with in some way?

View 1 Replies View Related

Android :: Know Whether Activity / Service Running Or Stopped?

Apr 13, 2010

When I do various operations on bluetooth application ... scanning, renaming and discoverable after some time non of these works... if I try to change name, it is not reflecting. is it problem with Activity/service? How to check whether these are still running? How to debug such cases?

View 2 Replies View Related

Android :: Whether To Start Stopped Activity Or Create New One?

Feb 18, 2010

Long story short, I have a LaunchActivity which is always called by LAUNCHER (i.e. the home screen). It then starts LoginActivity and then closes itself.This is the flow:
User launches app
LaunchActivity starts, starts
LoginActivity and then calls
finish() on itself (At this point
LoginActivity is the only Activity
on the stack)
User press "Home" button, stopping
LoginActivity
User launches the app again When the app is launched for the 2nd time, two things can happen:
LaunchActivity starts, finishes
itself and then STARTS LoginActivity
LaunchActivity starts, finishes
itself and then CREATES
LoginActivity, so there are now two
LoginActivitys on the stack.
(2) seems to happen when I restart Eclipse and the simulator (yeah I know, black magic). Some extra info: I'm not using any start flags and my manifest doesn't have any launchModes defined.

View 2 Replies View Related

Android :: Close Cursor When Activity Is Stopped Or Pause

Sep 10, 2009

Just wondering is it necessary to close cursor when an activity is stopped or pause?

View 5 Replies View Related

Android :: Notification Bar Stuck After Disable Keyguard

Nov 12, 2009

I am working on a lock screen application and am disabling the keyguard using the following code snippet which I call from a service on receiving the ACTION_SCREEN_OFF broadcast: KeyguardManager keyguardManager = KeyguardManager)getSystemService (KEYGUARD_SERVICE); KeyguardLock keyguardLock = keyguardManager.newKeyguardLock (getPackageName()); keyguardLock.disableKeyguard(); This seems to work fine, but when I return to the home screen the notification bar does not respond to touch/drag events. It's stuck and I can't drag it down until I hit the Home button. Has anyone seen this behavior? As far as I know there is no way to disable the dragging of the notification bar programatically. Perhaps something I'm doing is triggering a bug? Any ideas?

View 2 Replies View Related

Android :: Waking Phone & Safely Disabling Keyguard

Feb 23, 2009

Does anyone know how to do this correctly? I can't find any examples & the API documentation is pretty hard to follow.I am guessing I need to use the KeyGuardManager and PowerManager... but can't figure out how to bring my activity up past the keyguard and re-enable the keyguard so my activity doesn't let someone get past the lock when my activity awakens.

View 9 Replies View Related

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

Motorola Droid X :: Touchscreen Test - Drawing Lines Test

Jul 15, 2010

One 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 Related

Missing Target Class To Test In Test Application?

Nov 10, 2011

I 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 Related

Android :: Getting Test Run Failed No Test Results?

Aug 11, 2010

I 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.

View 1 Replies View Related

Android :: Is It Unit Test Or An Integration Test?

Nov 9, 2010

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 Related

Android :: Disable The Keyguard And Screen Locking In Android

Jul 30, 2009

i am porting android to our custom board. When android first time boots up, it is proper, i able to go into apps window and able to work. But, if i boot the android for next time, the andorid boots up and goes to main screen, where the screen gets locked displaying "Press Menu to unlock". If i press Menu key to unlock, its reporting error,...........

View 2 Replies View Related

Android :: CheckBox Test - (CheckBox) FindViewById (R.id.test) - Returns Null

Mar 17, 2009

why CheckBox is always null.

<CheckBox id="@+id/checkbox" android:layout_width="wrap_content" android:layout_height="wrap_content" />
code file-
package com.reblogr.reblogrclient;
public class Test extends Activity { /** Called when the activity is first created. */
public CheckBox checkbox;
@Override public void onCreate(Bundle savedInstanceState) { ....................

View 5 Replies View Related

Android :: Android And Junit Reports Test Run Failed - No Test Results

Jul 16, 2010

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() ;

View 3 Replies View Related

General :: Test Kernel On AVD?

Jul 25, 2012

i'm trying to use my custom kernel on avd, when i launch

Code:

./emulator -avd sgsp40 -kernel /home/rmbq/zImage -show-kernel -verbose

the output is:

Code:
emulator: found SDK root at /home/rmbq/android-sdk-linux
emulator: Android virtual device file at: /home/rmbq/.android/avd/sgsp40.ini
emulator: virtual device content at /home/rmbq/.android/avd/sgsp40.avd
emulator: virtual device config file: /home/rmbq/.android/avd/sgsp40.avd/config.ini
emulator: using core hw config path: /home/rmbq/.android/avd/sgsp40.avd/hardware-qemu.ini
emulator: Found AVD target API level: 15
emulator: found skin 'WVGA800' in directory: /home/rmbq/android-sdk-linux/platforms/android-15/skins
emulator: autoconfig: -skin WVGA800

[code]....

there is this line:

Code:

emulator: Could not open file: (null)/system/build.prop: No such file or directory

which appear only when i use a custom kernel.

View 1 Replies View Related

General :: Test If 3G Is Broken

May 6, 2013

I have a Samsung Galaxy S running CyanogenMod 9.I want to test if my 3g is actually working or not. I used to use the 3G internet on the phone until I changed plan without mobile internet and now I've changed back. The problem is there is no 3G connection now.

I've been onto my network's forums and followed their instructions for setting up APN's etc. and the settings are perfect (even though I never changed them since the last time it worked).So my question is that is there some way to test if your 3G hardware is actually functioning?

View 2 Replies View Related

General :: How To Test Cooked / Ported ROM

Mar 3, 2012

i am looking to step into the developing ROMs for android

Developing as in porting it to my device from other devices or modifying stock ROMs

after doing all porting or modding stuff in Android Kitchen

How to check whether the ROM is perfectly working or not

i dont want to use it on my cell and brick my cell , want to confirm its working before flashing

View 9 Replies View Related

General :: How To Test ROMs On Emulator

Jul 13, 2012

I guess it is possible to test custom roms on emulator. But is it possible to test every custom rom on emulator ? I want to modify ROMs and test it on the PC first before flashing because I m not very good at ROM mods atm. Is there some other way also to test custom roms on PC.

View 1 Replies View Related

Android :: Accessing Battery Info Activity (or Any System General Activity)

Jan 20, 2009

I want to be able to show the Battery Info activity in my app, which shows things such as the exact level, battery health, etc.I'm not sure how I can get it, though a few applications such as Power Manager, Any Cut, etc. show this screen as well. I found in the source code of Settings this intent in a file called testing_settings.xml,But I don't know how to use it. I would guess from the fact that Any Cut has a list of activities, that a list of said activities exists somewhere, and therefore an easy way to access them exists, but I haven't found it.

View 3 Replies View Related

General :: How To Test CyanogenMod 10 In Virtual Environment

Oct 26, 2012

Is it possible to test Cyanogenmod (v.10) in a virtual environment without installing it first on my phone (sg2)? I'm really interested a ROM without touchwiz but would like to assess some features i think are missing (as i tried the android sdk emulator with JB).

View 2 Replies View Related

General :: Samsung Galaxy S - Test 3G Hardware Is Working?

May 6, 2013

I have a Samsung Galaxy S running CyanogenMod 9.

I want to test if my 3g is actually working or not. I used to use the 3G internet on the phone until I changed plan without mobile internet and now I've changed back. The problem is there is no 3G connection now.

I've been onto my network's forums and followed their instructions for setting up APN's etc. and the settings are perfect (even though I never changed them since the last time it worked) So my question is that is there some way to test if your 3G hardware is actually functioning?

View 2 Replies View Related

General :: How To Get Normal Upgrade Test Without Using LG Support Tools

Dec 10, 2013

I want to upgrade lg vu f100s with version 40E I chiose 3gqct and emergency import kdz and then click normal upgrade test, that can not upgrade off line and it reach to lg support tools in upgrading by online downloading, and if I choose launch upgrading if always say (not responding). LG-F100S

View 2 Replies View Related

General :: How To Test Multiple Android Platforms / Versions

May 15, 2012

I'm contemplating the idea of developing an application for the android. I have several years of experience developing web applications with Java and so figured it shouldn't be too hard to pickup a book and learn how to do it for the android platform. So far so good; that's why I love Java.

My question is in regards to how does the android development community go about testing their applications of the various android version and phones? I think I'm more concerned about the android version rather than the phones. I'm planning on getting the Sprint Evo 4G LTE coming out on Friday, so I'm obviously going to be able to develop and test for Android 4 and HTC Sense 4 (though I don't think that is as important right? Development is usually against the OS and not the UI manager, right?). But how would I go about testing against Gingerbread, Froyo, etc.? Do you guys keep a previous old phone (like my old HTC Evo 4G) and flash diferent roms in order to test the app against previous versions of android? Are there other solutions? If it's using an old phone, does this work off-network/service? I guess you could just dump the apk on the sd card and install as third party app and test it out. As long as the app doing require phone services or mobile data network (internet) you'd be fine if you have wifi access right?

View 4 Replies View Related







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