Android :: Intent That Is Fired When A User Unlocks Their Screen?
May 10, 2010
Is there an intent that is fired when a user unlocks their screen? I want my app to adjust the brightness when the screen turns on, but the problem im running into is that the screen on intent is fired on the lock screen and it does not adjust the display on that screen.
View 1 Replies
May 26, 2010
I have a service which starts at boot up time, the service code needs the intent of following scenarios.
1) When the phone locks(after time out)
2)When the user unlocks the screen (by dragging the screen lock object)
There doesn't appear to be an API available where an application can be notified when the device is locked or unlocked. It is important the this application be notified of these events, since the service utilizes the proximity sensor which does not shutdown when the device goes into suspend. The app will need to unload the prox sensor manually to save battery when the device gets locked, and reload the prox after the device is unlocked again.
View 3 Replies
View Related
Mar 31, 2010
I was wondering if anyone understood how to make your application be displayed when you unlock the screen. I have an application where the user turns on a Bluetooth device, it connects to the phone, and the user should be presented with a UI. Having them hunt for the app or using the notification menu is not a workable option (too much work and not the obvious behavior).
The problem is that:
When the screen is unlocked:
- you can popup the activity from the background service when Bluetooth connects to a device
- User is happy because the UI is right there
When the screen is locked:
- The application gets started but is destroyed
- User unlocks the phone and nothing is there but the homescreen
One work around would be to disable the keyguard when the application gets woken up but the nuclear option is a pretty bad option. I know the standard Android assumption is that you shouldn't do this. In the normal case this behavior is fine, but in this case I explicitly did something I want the phone to respond without adding more work for the user to do. As per Google's guidelines if you don't like this behavior there can be an option for you to turn this off or you can not use the application.
A few more details, so after looking at this a bit more the problem isn't necessarily that you can't have an activity running when the screen is locked, unlock and expect it to be waiting. That does work if you do something like the following: lock your device run an app through Eclipse while the phone is locked/off unlock and it will be waiting for you.
But in the case the Activity is already running and I'm brining up a new window (which happens to be a transparent one, saying you're connected and asking what they want to do).
The problem is that it gets killed
CODE:..................
The setup here is as follows:
MyBackgroundService is a serivce that handles Bluetooth state (waits for connections, turns on Bluetooth if the user starts the app, etc.). It triggers a popup BackgroundPOPUP activity that runs a ViewFlipper.
MyBackgroundService starts BackgroundPOPUP through an intent.
BackgroundPOPUP is an activity with a Translucent theme (Theme.Translucent to be precise), it shows a ViewFlipper with some instructions and presents some options.
View 1 Replies
View Related
Mar 19, 2010
I have an already built application and I want to add a feature that has to be started when a call ends.
How can I achieve that?
I thought that declaring in my manifest something like this
CODE:............
Could be enough, but what kind of intent I have to put on the filter?
Looking in the documentation I found only the intents that detects when a call is started.
View 2 Replies
View Related
Apr 15, 2010
In my desperation with trying to get LiveFolders working, I have tried the following in my LiveFolder ContentProvider:Which, in all normalness, should launch the Browser and display the Google homepage when clicking on an item in the LiveFolder. But it doesn't. It gives a Application is not installed on your phone error. No, I'm not defining a base intent for my LiveFolder.logcat says:I/ActivityManager( 74): Starting activity: Intent { act=android.intent.action.VIEW dat=Intent { act=android.intent.action.VIEW dat=http://www.google.com/ } flg=0x10000000 }It seems it embeds the Intent I give it in the data section of the actually fired Intent. Why is it doing this? I'm really starting to believe it's a platform bug.update: I have filed an issue and removed the LiveFolders feature. I will include it in my app when I'll get a response either here or there that clarifies this thing. If I get the time I think I'll upload a demo app to that issue. Update: I have received a notification that the bounty is expiring in 3 days. No one wants it? Update 04/25/2010: I have updated the issue on the Android project and uploaded a test application. It would be nice if someone could test this application on a device, maybe it's such a subtle problem that it only appears on the emulator.
View 2 Replies
View Related
Sep 3, 2010
Was this option removed or am I doing something wrong? Now I have to slide the dumb thing off the screen to unlock...
View 17 Replies
View Related
Jul 30, 2010
I want to provide an easy way for my users to follow my app's Twitter account.Is this possible using the Intents system?
View 8 Replies
View Related
Jun 14, 2009
I'm trying to allow user to select an picture to upload to my website but i don't understand how i can get the choice of the user
I'm here ...
I suppose that i have to override a method but i don't find anything if documentation..
View 3 Replies
View Related
Feb 12, 2014
Iam getting this error in email without using intent.
02-12 18:04:01.647: E/MailApp(11838): Could not send email
02-12 18:04:01.647: E/MailApp(11838): android.os.NetworkOnMainThreadException
02-12 18:04:01.647: E/MailApp(11838): at
[Code]....
View 1 Replies
View Related
Sep 29, 2010
I have a user's twitter handle. Right now I'm opening it through a web page like:
String url = "http://www.twitter.com/" + "example_handle";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
If the user has the Twitter android app installed, is there a different intent I can use which gives the user the option to view that user's twitter feed in the Twitter app, instead of forcing them directly to a browser? I'm not sure if the author's of the Twitter app have exposed any such intent.
View 2 Replies
View Related
Dec 14, 2009
As in android, after inactvity of screen off timeout, android screen goes off. So here android itself uses some activity observer, to know whether user is currently active or not. I need not every keystroke or touch event with details, just knowing that user is active and getting a broadcastreceiver after some timeout value. Does anybody know something related to activity observing ? I got the code from in frameworks where it broadcast, but I am still figuring out code in android that monitors user activity.I am open to modify code frameworks too. || Hare Krishna Hare Krishna Krishna Krishna Hare Hare || || Hare Rama Hare Rama Rama Rama Hare Hare ||
View 2 Replies
View Related
Dec 2, 2009
Is it possible to get an intent when the user receives a mail and to cancel the gmail notification?
I want to filter some messages and I do not want to get notifications from them.
View 5 Replies
View Related
Oct 5, 2010
I'm trying to configure proximity alerts that will be feed from a Database and webservice provider; but I have a problem configuring a simple proximity alert for testing. I manage to create the alert but it never gets fired, I'm only trying in the emulator for now and donīt know if I need some extra code to trigger the alerts. I've read somewhere that the GPS provider to disabled so the network provider can be used in order to trigger the alerts on the emulator.
My code looks like this:...................
View 3 Replies
View Related
Jul 19, 2010
Our app starts out with a tab activity. But, before the user can get into the tab activity to do work, we have to check to see if they're logged in. This login is required for all activities within the tab activity. So, instead of having this security check within all the activities, we created our own abstract "activity" and have the tab activities extending our custom activity. Our "security check" (just see if they have a login key and login token in Preferences) is put within the onResume() of the Abstract activity. If either of these checks come back false, we fire off the login activity and use dialog's within that screen.
(We're doing this because we don't want the user to be able to see the data on the tabs if they're not logged in, so this login activity is a black background with dialogs for username/password). The issue is, the onResume() of the abstract activity is being called numerous times, and starts the Login Activity multiple times. We've tried setting the "singleInstance" and singleTask flags on the xml for the login activity, but the activity ends up calling onActivityResult before it is even displayed on the screen.
View 2 Replies
View Related
Sep 8, 2010
implicit intent with class name as action defined in intentfilter. is not working. Only it it is defined as "android.intent.action." it is picked up ? is it so ?
I have app A with the following in manifest.xml file
CODE:.............
In app B, i tried to call the activity in A using below code.
CODE:.............
This code works. But not above line.
View 2 Replies
View Related
Oct 16, 2010
I need to capture the absolute positions of some ImageViews to use as drop targets. I can't seem to find what event I need to put my code in to read the screen and get the Left(), Top() .. positions. I do not want monitor the inflation of each individual view. There must be some sort of onScreenFinsihed type of event, but I can't find it. onMeasure and onDraw seem to fire at the start of their work, I need to know when they are done.
View 1 Replies
View Related
Apr 15, 2010
I have HTC Hero and I've found out that dragging down on the touch is not the only way to unlock the phone. If you press the menu button, it unlocks the phone, too. I don't know whether it's problem of the HTC device, Android or bad feature definition.
View 2 Replies
View Related
Jun 3, 2010
I know how to setup an alarm to fire repeatedly, but the alarm stops firing after my application is killed.
How do I make sure the alarm continues to fire as it was setup?
View 2 Replies
View Related
Sep 7, 2010
In my app I draw an image covering the entire screen. I want to now how can I know where the user touched the screen?
View 2 Replies
View Related
Mar 3, 2010
I have had this same problem happen twice to me on 2 different phones on 2 different Verizon accounts!
The password screen locks and when it asks for the user name and password it states invalid user name / password!
Is this a known problem since when I called and talked to both Verizon and HTC the only thing they could tell me was to do a hard reset and they weren't aware of this problem?
View 1 Replies
View Related
Sep 29, 2010
I have a variation of the LG Ally called the Shine Plus. The swipe gesture on the main screen which unlocks the phone is completely bypassed when you open the slide-out keyboard. No matter how it's locked, anyone can access the phone by sliding out the keyboard. Does anyone else have this problem, and is there a fix for it?
View 1 Replies
View Related
May 1, 2010
Hit the power button to wake up the phone then just hit menu to unlock it. Instead of unlocking it on screen. Bug or intended?
View 6 Replies
View Related
May 20, 2010
I read somewhere that there is a zip file you can put on your phone and it "unlocks" the live wallpapers as an option. It was somewhere on these forums be it moment, eris, or hero. I would assume if it was on another phones page the concept would be the same. Any info on this my fellow Hero comrades?
View 4 Replies
View Related
Jun 13, 2010
We need some one to create an app that will bring the phone out of standby using the joystick.It doesnt need to unlock it it just needs to turn on the screen so we can unlock.Any one know who i can email so that we can get a developer working on this project.This one is one thing i REALLY need on the incredible.Hitting the power button over and over sucks.
View 18 Replies
View Related
Aug 19, 2010
I'm currently using this in preferences.xml: .......................
This allows to trigger a custom Activity when this specific preferences item is triggered. Copying from the documentation, I'm using an implicit intent, and it's working. But I'd solve a problem if I could use an explicit intent, that is writing the fully qualified class name of the target Activity. I didn't find documentation about this, so I don't know whether it's possible and how to do that.
View 2 Replies
View Related
Jul 10, 2010
when a user leaves the current activity by pressing the home screen button, how can i make this trigger a method? This doesn't seem to call onResume(), onPause(), or onDestroy().
View 1 Replies
View Related
Feb 15, 2010
Is there a way, some API one can call to detect if the user has set a screen unlock pattern or not?
View 2 Replies
View Related
Apr 18, 2010
I've got an app that I don't want to auto-rotate. Currently, I've got it setup so that it is always in portrait mode. However, I'd like to add a setting to my preferences where the user can choose either portrait or landscape mode. Is there a way to force screen rotation? Or, could I perhaps make two different layout XML files, one for portrait and one for landscape, and programmatically choose which to use?
View 9 Replies
View Related
Aug 1, 2009
I've this code:
Java: (http://nopaste.me/4449 )
package com.patrick.games.whackgroundhog; import android.app.Activity;
import android.content.Context; import android.graphics.Canvas;
import android.graphics.Color; import android.graphics.Paint;
import android.os.Bundle; import android.view.MotionEvent; import android.view.View;
public class Game extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); setContentView(new Ground(this));
} class Ground extends View { public Ground(Context context) { super(context);
} public void onDraw(Canvas canvas) { canvas.drawColor(Color.BLACK);
} @Override public boolean onTouchEvent(MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_DOWN) {
//TODO: draw the circle } return true;
} } }
View 2 Replies
View Related
Nov 19, 2010
I'm new to android development. Is it possible for a view (with a particular layout) to "appear" at the location where the user "touches"? If so, how? Like the idea of right-clicking on your computer - a menu pops down wherever you right-click and when you navigate away, it disappears.
View 1 Replies
View Related