Android :: Froyo - Killed Application Detection?

Jul 29, 2010

On Froyo, we found that some new "Task Manager" apps are now using the ActivityManager.killBackgroundProcesses() to kill apps. When this happens, Intent.ACTION_PACKAGE_RESTARTED is no longer fired. How can I find out that my application has been killed? I tried to start a service, and I do see this message printed in logcat:

W/ActivityManager( 2426): Scheduling restart of crashed service com.example.android.apis/.app.RemoteService in 20000ms

However, the service is never restarted as advertised, if the app is killed using the killBackgroundProcesses API. (If I go into adb shell and kill the service process, the service will indeed be restarted ...) This looks like a bug anyway, because the notification created by the app is no longer removed like in eclair (the StatusBarService, and a bunch of other system services, depend on the Intent.ACTION_PACKAGE_RESTARTED broadcast).

Android :: Froyo - killed application detection?


Android :: App Being Killed Instead Of Running In Background After Froyo Update

Aug 10, 2010

With the new Froyo update, my app is being killed instead of running in the background. Is there anything I can do to stop this?

View 1 Replies View Related

HTC EVO 4G :: Why Froyo Killed Battery Life

Aug 4, 2010

I noticed today that Froyo re-enabled "auto sign in" in Gtalk. I unchecked it, problem solved. If you're getting bad battery life after the update, make sure Gtalk is NOT auto signing you in. That's one of the biggest battery hogs. Just figured I'd post this to let everyone know a potential problem.

View 42 Replies View Related

Android :: Test Application Killed / But It Got Intent

Dec 8, 2009

I created application with name Test, and has a class that extends broadcastreceiver that listen for PACKAGE_RESTARTED. I use Advanced Task Killer, and killed the Test application. But when I kill another application, for example gmail, the Test's broadcastreceiver got the intent (I logged it). Does it means that broadcastreceiver will never died?

View 4 Replies View Related

Android :: Stop An Application If Any Of Activities Were Killed By OS

Sep 10, 2010

I have an application with many forms implemented as separate activities. The form variables are dynamically built based on a database, and there are a ton of variables in the C++ side of the application (accessed via JNI). I don't see how saving out all of this data to persistent storage each time the onPause() or the onSaveInstanceState() of one of these many activities goes into the background is a smart use of processor time. And I don't see how even if I save the local variables for each activity during that time I'd be able to restore a single activity within the context of all the others.

I have set up a service that auto saves the files when I detect that the app has gone into the background. (I set a time stamp when onPause() is called in any activity and then clear the time stamp when onResume() is called on any other activity. If the time elapsed is more than a few seconds, I know I'm not the top activity any longer and the service saves the files).

What I'd like to do is continue on as normal unless the OS kills one of my activities. Since we don't always get notified of this, I thought it would be nice if there were a way to tell the OS that I'd rather you kill the whole app than just one activity.

View 1 Replies View Related

Android :: GPS Application Gets Killed On Screen Timeout

Apr 9, 2009

I can see on OMAP zoom2 platform, the moment screen timeout happens my application is getting terminated. I have a Google map based LBS application which is running on Zoom. I have implemented the interfaces given in gps.h to libhardware_legacy/gps.cpp .

GPS application talks to android framework and Framework talks to libhardware to get the GPS info. Now I can see that the moment screen timeout happens and the display goes off, my application killed. Actually from the framework the stop interface (hgps_stop() ) gets called on screen timeout.

I am wondring why this is happening, as I am not sending any stop request form my GPS application to the libhardware.

Is it something related to Android power manager, that android Power manager does not know about my application is running?

View 2 Replies View Related

Android :: Application Gets Killed - Because Provider Is In Dying Process

Apr 9, 2009

After long running the Media|Player (audio mode) the app I'm developing often crashes w/ the following error: > Process android.process.media (pid 14795) has died. > Killing <my app> because provider com.android.providers.media.MediaProvider is in dying process android.process.media

View 3 Replies View Related

Android :: Registered Broadcast Receivers After Application Is Killed?

Mar 25, 2010

Currently my application is configured to always receive the CONNECTIVITY_CHANGED action to force an update if the previous update failed because there was no connectivity. What I don't like about this is that the broadcast receiver gets to be called too many times although it is not needed. I was thinking to register my broadcast receiver only if an update failed using the Context.registerReceiver(BroadcastReceiver receiver, IntentFilter filter) method. But I'm not so sure if this is a good idea. I'm concerned that if my application is evicted from memory the broadcast receiver will be unregistered or lost and my application will not be notified about the future CONNECTIVITY_CHANGED actions. The update is done in a short lived service. So if the update fails, the service will register the broadcast receiver just before it ends its execution time. Can somebody explain what happens to my broadcast receiver after the application is evicted from memory?

View 4 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 :: Android - Massage Viberator - Application Does Not Stop Vibrating Even After The Process Is Killed

Oct 18, 2010

I will try to be as brief as possible... I have published a very simple android application it's name is "Vib-e-rator PRO". It's purpose is obvious, it can be used as a masssage vibrator or as an erotic stimulator...

My Problem is don't have an Android Phone to test my app in real time.

I have been recieving mixed comments from people. A few users say its working fine. But majority of them complained that the Phone would n quit vibrating even after the closing application.

Later i speculated that when ever the user switched off the vibrator and quit the app it would work as expected. If any user (most of em) directly closed the application ( either through the close option provided in the app itself or by pressing the END button in the phone ) without switching off the vibrator then it would not stop vibrating.

So i added myvib.Cancel() (myvib is the context for Phone Vibrator) in the exit block the close option provided in my app. For the other scenario, when it is closed by pressing the END button in phone, i have no idea how to solve it... So friends please advice me what is necessary to do... The comments i have been receiving from many users of my app is really embarassing....

View 3 Replies View Related

Android :: Want To Relaunch Application When Killed By Android

Aug 18, 2010

I am working on Gps based application which runs all the time in background. But in extreme low memory case(or when i open many apps) my app is killed by the android system. I want to relaunch my app when it is killed by android system.I goggle it for this but don't get any solution.Any help would be appreciated.

View 5 Replies View Related

Android :: 1.5 Bug With Earphone Detection

May 5, 2009

On my Google dev phone there is a problem with the new 1.5 version in combination with an official HTC adapter cable YC A300 and 3.5mm earphones. Android doesn't recognize the earphones (it worked on 1.1!). Android still recognizes the HTC earphones with ExtUSB.

View 2 Replies View Related

Android :: How To Use Accelerometer Detection

May 20, 2010

I want to know how to calculate the accelerometer movement.When i place the mobile horizontally in idle state and similarly when i place the mobile in hands,So there accelerometer value change when it is place horizontally or while it is in hand vertically.How To Identify them,Any Sample Codes will be useful.

View 1 Replies View Related

Android :: Shake Detection On Emulator

Apr 30, 2010

I am pretty new to android. I have a use case where I need to detect a shake and show some images in my application. Can I test shake functionality on android emulator ? What are the other alternatives apart from testing it on a real phone ?

View 1 Replies View Related

Android :: Motion Detection Using Camera?

Jun 6, 2010

Is this possible? How do i do it? I want to learn but dont know where to begin even

View 3 Replies View Related

Android :: Sobel Edge Detection

May 30, 2010

As part of an application that I'm developing for Android I'd like to show the user an edge-detected version of an image they have taken (something similar to the example below).To achieve this I've been looking at the Sobel operator and how to implement it in Java. However, many of the examples that I've found make use of objects and methods found in AWT (like this example) that isn't part of Android.My question is then really, does Android provide any alternatives to the features of AWT that have been used in the above example? If we were to rewrite that example just using the libraries built into Android, how would we go about it?

View 1 Replies View Related

Android :: Accelerometer False Detection

Oct 27, 2009

I have a code snippet to detect accelerometer movements. It works some times by properly detecting slight movements, but sometimes it detects movements when I kept my device idle too. Are there any problems with built-in accelerometer detection on Android?

I use an HTC G-1 device. My code snippet is below. How do I resolve it so I can detect small device movements but not detect anything when the device is idle?

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

View 3 Replies View Related

Android :: Increase Hit Detection On ItemizedOverlay

Sep 23, 2010

I have an itemizedOverlay extended and I want to increase the hit detection on the OverLayItem's if this is possible?

View 1 Replies View Related

Android :: Runtime API Level Detection

Apr 27, 2009

I'm trying to product a binary that is compatible with 1.1 and 1.5, but i'm having trouble with the ViewSwitcher class behaving different. I'd like to create a wrapper for it, but I need a way to programatically detect the api level at runtime.

View 3 Replies View Related

Android :: Face Detection In Phone

Nov 8, 2010

I am currently working on an experimental camera app. I'm looking into implementing face detection at the moment and am currently weighing up my options.I have considered the OpenCV port available for android and using their face detection functions, but from demos I have seen of previous implementations the camera seems to lag a lot.Considering the camera on the HTC desire has face detecting, I know it must be possible to get at least a semi decent face detection system in place. I was just wondering if anyone had an opinion on how I could get the best results.Using an available library? Implementing a particular algorithm myself?

View 1 Replies View Related

Android :: Using Face Detection Program

Nov 5, 2010

Has anyone ever used the API for face detect in their android program?More simply stated, can I have a java class that pulls up the camera, scans a person's face and returns parameters back into the program?

View 1 Replies View Related

Android :: Enter Button With Finger Detection?

Apr 2, 2010

I'm working on a soundboard, however I've got a problem when it come to drag the finger over the screen to play the sounds for the buttons I drag the finger over.Do anyone know how I can detect when a finger enter a button and not click the button?

View 1 Replies View Related

Android :: Google Sky Map A Little Off / Orientation Detection Of Phone?

Jul 1, 2010

I've been trying out Google Sky Map and it seems a bit off. I hold my phone in landscape mode and point it at the moon as if I were going to take a picture of it. The application shows the moon about 5-10 degrees off from where it actually is. Is this just the accuracy of the compass and orientation detection of the phone?

View 9 Replies View Related

Android :: Simple Bluetooth Presence Detection

Apr 12, 2010

Really general, very new to bluetooth. Can we have one android device broadcasting a simple 'hello' bluetooth network (maybe a radius of just a few feet) - then when other android devices come into that area, reply with a 'hello' back? The client devices moving through the 'hello' radius wouldn't need to be always be checking for presence. I'd let the user open an app and check for bluetooth networks nearby. If they find one of these hubs, they can then choose to broadcast back a hello.Is that at all possible? Any general info would be great.

View 2 Replies View Related

Android :: Complex Object Collision Detection

Nov 29, 2009

I am currently working on a collision detection routine for an Android based game which is capable of handling complex concave curves in 2D. I use complex in this post to describe any non-trivial, arbitrary shape (beyond circles, squares, etc). My problem is that all of the various methods I have come across are either too simplistic to be realistic or too complex for a cell phone. At the moment I am favoring a tile-based scheme but I am having problems figuring out how to do this with convex curves that span several tiles and may have several line segments per tile. I gave some thought to representing the curves mathematically, with each tile being an interval of the function, but there will likely be points where the curve doubles-back on itself (think the big loop at the top of a pinball table that brings the ball all the way around the table and back the direction it came). My questions boil down to:

1. Does anyone know of a way of hit testing a given simple shape (e.g. a circle) against a concave series of line segments (shapes beyond circles can be figured out from there) beyond just a Boolean result?

2. What is the best way to represent large, complex shapes programatically? I am currently favoring an XML file describing my levels and the objects in them with shape/position/physics/etc. data to be parsed in during load time.

3. Is there an altogether better way of doing this beyond line segments?

The one saving grace in this conundrum is that I know the vast majority of the objects are stationary with, at most, three or four (usually one) dynamic objects moving around.

View 3 Replies View Related

Android :: Voice Activity Detection In Phone

Oct 15, 2010

I am writing an application that will behave similar to the existing Voice recognition but will be sending the sound data to a proprietary web service to perform the speech recognition part. I am using the standard MediaRecord (which is AMR-NB encoded) which seems to be perfect to speech recognition. The only data provided by this is the Amplitude via the getMaxAmplitude() method.I am trying to detect when the person starts to talk so that when the person stops talking for about 2 seconds I can proceed to send the sound data to the web service. Right now I am using a threshold for the amplitude that if its goes over a value (i.e. 1500) then I assume the person is speaking. My concern is that the amplitude levels may vary by device (i.e. Nexus One v Droid), so I am looking for a more standard approach to this that can be derived from the amplitude values.

View 3 Replies View Related

General :: WMP / MTP / Android Audio Format Detection

Mar 5, 2014

According to the MS website, Windows Media Player queries an MTP device to see what formats it supports. My Razr Maxx HD supports ogg and m4a. When attempting to sync WMP does not sync those files stating they might not be supported on the device. Being that I've had so much trouble in the past even getting any of the Android devices to be properly detected as an MTP device I'm worried this is a driver issue.I should be able to get WMP to at least convert them.

this is the device mis-reporting the formats, Windows not querying them properly, or an actual WMP issue? Would like to be able to get sync working without any conversions. Maybe there is a way to hardcode formats within the mtp inf file?

View 1 Replies View Related

Android : IPhone / Droid Swipe Detection For Mobile Browser

Jun 30, 2010

Is it possible to detect that the viewport is being dragged by a touch event?

Using the following code I am able to get the position of where the finger touched the screen, what node started the event and where it was dragged to. Which solves one of the problems but I would really like to detect when the user has dragged the page/window/viewport down.

To attempt to be more clear as to what I am trying to do: I would like simulate the refresh activity in Tweetie 2/Twitter for iPhone but in HTML5 and JavaScript. Code....

View 2 Replies View Related

General :: Alcatel OT 990 - No USB Detection?

Jun 6, 2012

Ive got a Rooted and Unlocked to any network OT 990, I have a problem when trying to connect the USB cable Nothing happens apart from the phone charges, Windows does not detect the phone. Have tried in XP and Win 7.

View 1 Replies View Related

Android :: Froyo Only Support Application Uploading Fail

May 26, 2010

I make application using Froyo SDK.It support only Android 2.2.It is working well on Emulator and Nexus one.but android market uploading error like below.The file is invalid: W/ResourceType(12468): Bad string block: last string is not 0-terminated ERROR getting 'android:label' attribute: attribute is not a string value.If change android:minSdkVersion to 7, then no uploading error.But application only support Froyo.

View 2 Replies View Related







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