Android :: Locked Up My Device?
Sep 11, 2009
I've been able to lock the screen twice with the current implementation of the app I'm writing (MediaDroid). It's very inconsistently (2 out of about 100 runs) and I'm not sure how to trigger it, so I'm assuming it's some sort of race condition or the number of threads I'm spawning.
The activity I'm working on loads a gallery of thumbnails from the sdcard. I believe I'm using most of the best practices described by Romain Guy from his Google I/O talk "Make your Android UI Fast and Efficient". I've implemented an image cache with SoftReferences wrapping my Bitmaps and created an Efficient Adapter for the gallery using the ViewHolder pattern.
What I am doing, which I question, is loading each image via a thread as it is retrieved from the ImageCache...I pass back a default image if the bitmap is null, then update the default image in the ImageViews with the Bitmap is loaded from the sdcard; I'm doing this by posting to a Handler in the Adapter from the thread that loads the image.
So as you can imagine a number of threads are created, about 25 at a time, as the user swipes through the image gallery. Once the user reaches the end of the gallery, the images are only reloaded if the garbage collector has collected them due to the SoftReference. I've been impressed by how well this worked....until the bug mysteriously started appearing. What has happened both times is, all the images in the gallery show the default images, then I get an ANR and with the force close or wait option, I hit force close and the ANR dialog shrinks (but doesn't go away) and the background goes black...then everything just freezes...here's the logs where I believe things start to lock up.
CODE:......
If I press on the screen I get nothing on the device, but in the logs I get
CODE:........
And I have to power down the device.
So if the number of threads is the problem I'm thinking of loading all the bitmaps when the app is first initiated, probably using the AsyncTask class. A question I have though about this is that the docs say that you can only call execute() once...what's happens if some of my Bitmaps are garbage collected?? Do I then call individual threads to reload? I've looked through some of the Google apps, Shelves and Photostream, but they don't seem to be using Bitmaps wrapped in SoftReferences.
View 5 Replies
Nov 24, 2009
I have an application that is playing audio, and I would like to allow the listener to toggle between pause and play while the screen is locked, as it is a hassle to have to unlock the screen in order to pause the audio playback. Is there any way to monitor for KeyEvent.KEYCODE_DPAD_CENTER while the the screen is locked? I have been looking through the documentation but have not found any information on how to do this.
View 12 Replies
View Related
Jul 5, 2013
Is there any options to get back into your locked device without having to do a factory Data Reset. I have a 3D HTC EVO. I have not created a gmail acct with google on it. What options do I have?
View 4 Replies
View Related
Jun 11, 2010
I want you guys to test the new email notifications when the device is connected through WiFi.
For this you've to set the WiFi sleep policy to never and the Background and Auto sync option needs to be checked.
Well, I don't get any notifications. I went an extra mile ahead and pinged the IP address and found that I get "request timed out" error when device is locked and when it is unlocked, the packets are received properly.
View 3 Replies
View Related
Aug 7, 2010
I have a sony ericsson X10, it has a security pattern lock on the phone. However this has gone off in my pocket and now the phone is locked. I can not remember the google email address for the phone and now i can not access the phone. Orange customer service has told me to get in touch with google, in order to delete the old account [whatever that may be] but there is no number for google customer service.
View 4 Replies
View Related
May 28, 2010
Can someone explain a couple of very simple concepts to me - I'm interested in mobile devices running android and how they are identified over networks. Some scenarios: Device is connected over WiFi - presumably the device has a standard IP address as with any host and can communicate with any other android host over TCP/IP (assuming it knows the participating device's IP? device is connected over bluetooth - how are devices identified in this case? device is connected over mobile operator's network - this is the one I'm interested in and confused by - is there anyway for two or more devices to discover each other and communicate via the mobile operator's network? How does a device communicate with a backend server in this scenario? In other words, how do apps and devices communicate when not connected to a WiFi network?
View 2 Replies
View Related
Jun 6, 2010
I have developed and tested my app on the emulator, and now want to install it on my HTC device. the apk installs successfully, however my database is not going with it. I have created my database using sqliteman browser b/c I have to insert a bulk data before the app starts. I have four tables in my db and call each in different activities and created all on the sqliteman. after the data is inserted I pull back the db onto the data folder of the emulator. it works perfect on the emulator but failed on the device. when I try to pull my db on the real device, it shows access denied problem
View 2 Replies
View Related
Mar 24, 2009
I have developed a sports game which is single player. Now I want to have one more game mode which is multiplayer.
My question is how can i do device to device connection in android using sets of api which can be :
1.Bluetooth - whose APIs are not currently available.
2.gtalkservice - removed from sdk1.0 3.wifi - I dont knw how to connect 2 devices using wifi apis . I have asked about wifi because we have developed a game on iphone which used wifi connection for multiplayer stuff.
Or is there any other apis which can be used for implementation of multiplayer in game ?
View 3 Replies
View Related
Oct 17, 2009
How to detect when alt is locked?
View 11 Replies
View Related
Jun 24, 2010
I am a phone junky, I've had a bunch of phones including all the bberry's. Love my incredible, it's like going 10 years in the future. The only issue I have is I keep bumping the volume buttons. Why don't they have an option to Lock the volume by pushing both buttons at one time? Push both of item again and but unlocks the volume.
View 3 Replies
View Related
Sep 6, 2010
I listen to alot of music and i HATE having to wake it up and everything to adjust the volume. I'm used to an iPod where you can adjust while its locked. I was wondering if they'res some way to make this option available with android. I'm using a Motorola A555 with android 1.6. Is there some type of app or a simple code change to make this possible? I want it to be for media but if it would know when to do media or ringer that would be great.
View 6 Replies
View Related
Nov 23, 2010
I want to put out a message from my application on locked screen. Something like, If Found please call <number>
Is there a way to do it ? I see there is a FLAG_SHOW_WHEN_LOCKED flag using which I assume it can be done. Can anyone provide some example?
View 3 Replies
View Related
Aug 29, 2010
I developed a android appli.
It's a widget.
and I wanna get information whether the display locked or not.
How can I do?
View 1 Replies
View Related
Jan 15, 2014
So it seems that I along with many others who have the Motorola Droid Mini, Ultra and Maxx on Verizon have been receiving our much anticipated 4.4.2 upgrade. As of about and hour ago I ran it on my Droid Maxx which is totally stock and has never been rooted and is pretty much brand new. As I typically do after and upgrade I started playing around with all the new features that came with 4.4.2, one of the being the ability to unlock you phone handsfree by speaking a pin code to it I decided to give it a try. So I hit up my settings and removed my trusty pattern lock, set my self up with a nice eight digit pin (stupid mistake #1), made it complicated as in not 12345678 (stupid mistake #2), didn't write it down (stupid mistake #4) and the proceeded to forget it in the amount of time it took me to lock my screen. Now I was under the understanding that I could bypass the lock screen with my g-mail account password, but I cant seem to find where, and to make matters worse I have failed the pin code 8 out of the allotted 10 times before the phone wipes itself.
I hardly doubt that Android 4.4.2 lost the ability to use your gmail account as a bypass in this situation did they? I know a lot of times people think that it is due to the phone not actually being signed in, but I have both received application updates from the play store and emails from my gmail account indicating the device is signed in.
View 1 Replies
View Related
Nov 10, 2012
I was backing up files and now the sd card is permanently "write protected." I cant format and cant write to it but the data is still there. There is no lock switch on a micro SD card so that isnt it. Is there a way to get the card unlocked?
View 3 Replies
View Related
Oct 30, 2009
How do I map the device Y axis to the screen Y axis?I can't figure this out.I'm the developer of Tricorder, and I'm trying to make it so that the accelerometer and magnetometer indicators I draw always point in the right direction.On the G1 phone with the slider closed, all is well.But when I open the slider, I end up showing that gravity is pulling me to the left (if the phone is held with the display vertical).So, I know that the device, and hence sensor, Y axis is always in the direction of the earpiece; and the screen Y axis changes when I open the slider.And I know that I can use remapCoordinateSystem() to change the device axes to match the screen axes.But where do I find out what the device's orientation is?In other words, how do I compute the correct values for the X and Y parameters to remapCoordinateSystem()?
Configuration.orientation seems quite useless.Suppose it is set to LANDSCAPE.What does this mean?Does it mean a device which is "naturally" portrait (i.e. the sensor Y axis points to the narrow end), and which has been turned into landscape mode?If so, which way was it turned?Or does it mean a device which is naturally landscape?In other words, LANDSCAPE could mean that the screen axis is off from the sensor axis by +90, 0, OR -90 degrees.Not much help.So how do I do this?Obviously I want my app to work on all devices, not just the G1 phone.
View 2 Replies
View Related
Oct 29, 2010
I have a standalone GPS enabled data recorder in my car that can function as either a USB host or device. (Its a class 0x00h USB device). I currently connect to it via a WM 6.5 app running on my Palm Treo 750. I would like to port my WM 6.5 app to an Android phone. (I don't have a specific Android phone in mind, I would like it to be as generic as possible).Replicating the GUI is not that difficult, but I am having trouble getting started on the USB communication. I'd appreciate it if someone could point me towards an example, or the appropriate tutorial.
View 1 Replies
View Related
Feb 28, 2014
Basically I have an old iPod touch 2g on iOS 4.x and a Nexus 5.
I want to use my iPod as my media player but I'd like to be able to control music from my Nexus (only basic controls).
Is there an app on either device that allows this? I know tsk skipping can be done by some Bluetooth headphones so I'm hoping there's a way to make iOS accept command from my Nexus
View 1 Replies
View Related
Oct 15, 2010
I'm creating a Thread and in that thread I open a database connection using the DBHelper, perform an update on a field in my database and close it. I create a separate one in the Thread because if the View is closed the global one for that view is closed, causing my Thread update to throw an error. The thread is in a View, that also has it's own instance of the DBHelper and opens the database onCreate closes it onPause opens it onResume closes it onDestroy The instance in my Thread is throwing this but not all the time :error code 5: database is locked Is there a known practice I should implement so I don't get this error?
View 9 Replies
View Related
Aug 23, 2009
I have different background threads in my application, one doing periodical database updates, another responsible for doing long searches and so. Obviously some are just reading from database while others are writing as well. Once in a while I get "database is locked" exception. I need to know the safe way of reading/writing from/to database on different threads. As well I've found "isDbLockedByCurrentThread()" and "isDbLockedByOtherThreads()" methods on SQLiteDatabase. Should I use them every time I want to access the database? What if the database is locked? Should I pause the current thread and retry a few milliseconds later?
View 5 Replies
View Related
Mar 5, 2010
We have ported Android Eclair on our target. After booting the Android and unlocking the screen first time, if we press the 'call end' button then the home screen gets locked. And we are not able to unlock it. Has anyone observed this behavior on their platform? How to unlock the screen? Is this a special feature?
View 2 Replies
View Related
Nov 12, 2010
My company is looking at upgrading from WinMo Intrepids to possibly Android phones.We are with Sprint so only those phones are being looked at.Couple of questions from an enterprise mind.Android 2.2 updated exchange policy support so some of our concerns are being met.My biggest questions are relating to Sprint ID and the Android Market.One does anyone know if you can totally locked down Sprint ID? As in not allow other ones from being downloaded and installed. Basically to give us a way to lock the phone down with what apps we want.Next big thing is can the Android Market be locked down/Blocked/Removed?Remember these are going to be company phones mainly being used for exchange email, not personal phones to play around with eating up data.Generally just looking at ways to keep the phones secure from all the nasties out there. We are looking at the Optimus S which is why I bring up Sprint ID.For my side of it, I would generally be against this. I own an Evo and love tinkering plus I will be the one developing in house apps for us to use.
View 2 Replies
View Related
Feb 4, 2010
I'm trying to implement a times WakeLock in my Application, so this is not a Service.
I want the wakelock to simply prevent screen dimming for 3 min. Looking through the docs, this seems simple enough, but I seem to randomly encounter a Under-Locked exception that I cannot pinpoint.
Here is my WakeLock-related code:
in onCreate: PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); mWakeLock = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, TAG); // Adjust time to include user's setting int timeout = WAKELOCK_TIME - Settings.System.getInt(getContentResolver(), SCREEN_OFF_TIMEOUT, 0); if (timeout > 0) {mWakeLock.acquire(timeout);} ...
in onDestroy: if (mWakeLock != null && mWakeLock.isHeld() == true) { try { As you can see, I wrap the release and try to only execute it when necessary as a clean up only. I'm assuming that since I'm aquiring with a timeout, the PowerManager will handle the release in most cases when the timeout expires.
I don't have a copy of the logcat at the moment, but what seems to happen is I get the Under-Locked exception randomly, and at random times (it's not always when WAKELOCK_TIME elapses). The strange thing is that the exception does not point to my code - all the entries point to "internal" Android code.
It's hard to find examples of other people using aquire with timeouts. Any ideas what I could be doing wrong here?
View 6 Replies
View Related
Feb 2, 2013
My android locked by Kaspersky.
yesterday I was trying to figure out how to uninstall kaspersky anti virus anti theft on my tablet. there is an option in the settings that there is a column to check or uncheck Kaspersky (i did not know this exactly). when I uncheck, my tablet locked!!!It asked for a password which I do not know!
I try to go to the official website of Kaspersky. but the problem is I can not login, because the verification email from kaspersky in my google account has not been confirmed yet!!! So I can not login and tablets ane not registered!
I tried to hard reset by pressing all the buttons that usually there is an option to factory reset. But on the tablet there is no that option.
There was also an inscription:
prepare enter mmc update mode.
updating system start ....
Skip recovery
View 2 Replies
View Related
May 9, 2010
I'm currently implementing a live wallpaper. This is also visible, when the device is locked. Now I want to show different content, when it is locked but can't find a way to detect this. PowerManager can only change the settings and the wallpaperEngine only gives me a general onVisibiltyChanged() method, which triggers every time you return to the home screen.Dos anybody know a way to detect if the device is locked?
View 2 Replies
View Related
Nov 9, 2010
I have an application which starts a service. The service has a timer and pops a notification every 30 seconds. I notice the following behavior: if the screen is on the notifications are shown ok (even if the app is in background). if the screen is off (by power button or by itself) the notifications won't show. if the screen is off but I have the debugging running the notifications appear. How can I make the service run with the screen off. (The actual app only checks if a notification should be checked every 30 seconds, but for testing purposes, the above scenario is ok)
View 2 Replies
View Related
Jul 2, 2010
Is it possible to continue sending a text message after I press the red lock key? I keep sending messages and putting my phone in my pocket and then twenty minutes later will open my phone and realize it never sent. Is there any way to press send and then be able to immediately press the red button to lock the screen?
View 2 Replies
View Related
May 19, 2014
it is possible to make Android and Windows dualboot or not. The Acer Support told me that the bootloader is locked, so it is impossible to install it without hacking. So what I want to know is how I can hack the UEFI? I like Windows,but only for school or homework. I need Android aswell...
View 2 Replies
View Related
Feb 13, 2010
I'm using the android plugin for eclipse, and when I try to run my program using a real device through the android device chooser, my phone is not listed as a device. I have updated eclipse and all of the android packages, but it still isn't showing up. My phone is running 1.6, which is also the target version listed in the eclipse project.Also, the reason I decided to try testing on a real device is because the emulator doesn't seem to be working right anymore when I run my project. The emulator launches, but the program never does. Any ideas?(using windows 7/t-mobile mytouch 3g)
View 3 Replies
View Related
Aug 10, 2010
Does anybody have an idea what I may be doing wrong. I have installed the usb drivers and have my device running in debugging mode but when I run my basic hello world application through eclipse my device wont show up in the device chooser. I have also tried re installing the sdk and all the drivers and still no luck.
View 4 Replies
View Related