Questions tagged [locked]
244 questions
6
votes
2 answers
sqlite error database is locked when using sqlite3 command line
I use sqlite3 command line, from bash.
I spawn multiple processes, all trying to insert into the same sqlite database file.
I often get "database is locked".
According to my reading of documentation…

Dmitry z
- 4,533
- 4
- 15
- 15
6
votes
2 answers
Camera Orientation Change When Picture Taken. Even When Orientation is locked.
I have an app that takes pictures. I want the orientation of the camera view to change when the device is rotated so the picture comes out in the correct orientation that it was taken as. I want this to work even when the device orientation is…

Adam
- 149
- 1
- 8
6
votes
2 answers
PowerShell IIS Set-WebConfigurationProperty - Locked ApplicationHost.config section
I am writing a PowerShell 3.0 installer for our web applications and web services and am getting tripped up when attempting to set physical path credentials.
My code looks like this:
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
# >>>>>> Path…

Scott
- 153
- 4
- 7
6
votes
2 answers
Why do reads block other reads in MyISAM?
I have one really long running read. It is a cronjob run once a day, but the whole DB gets locked down when it is running :
mysql> show full…

Paul Tarjan
- 48,968
- 59
- 172
- 213
5
votes
1 answer
keyevent android phone locked
I´m new to android development and I´m trying to make an app.
What I want to know is if is it possible to get key events even when the phone is locked?
For example to make my music player change the music when I press the DPAD_CENTER_BUTTON
Doing…

Guilherme Gusman
- 556
- 2
- 7
- 17
5
votes
2 answers
How do I read (and parse) a file and then append to the same file without getting an exception?
I am trying to read from a file correctly in Haskell but I seem to get this error.
*** Exception: neo.txt: openFile: resource busy (file is locked)
This is my code.
import Data.Char
import Prelude
import Data.List
import Text.Printf
import…

Max
- 81
- 8
5
votes
3 answers
what does methods named '*Locked()' mean in Activity related classes?
I noticed that there are lots of use of the methods named '*Locked()' while I am looking through Android framework codes.
I wonder what 'Locked' means and what features those methods are reflecting to.
For example, there are a number of methods…

CodePoetry
- 61
- 3
4
votes
0 answers
Android webview concurrency caused SQLiteException: database is locked
I'm not using SQLite and webview directly, the webviews are used in the ads in my application (I'm using AdMob). There are several activities which works like workflow going back and forth and some activity run in their separate process I'm getting…

Artavazd
- 111
- 1
- 3
4
votes
1 answer
When macbook is locked, selenium safari tests initiated by Jenkins on the mac wont run
I have made sure that the mac does not sleep by adjusting the settings in the system preferences. Jenkins will start the test on a schedule, the browser comes up but the test fails because the page is blank.
The same test works with no problem if…

user9832094
- 41
- 2
4
votes
3 answers
"Database is locked" with SQLite and C#
I have a problem with my code.
I want to delete some rows in my SQLite database but I get a "Database is locked" exception.
I read several posts about that like this post, but my problem is still here.
Here is my code :
using (var c = new…

BlackAlpha
- 376
- 1
- 5
- 15
4
votes
1 answer
Alternative to SendKeys that does NOT require an unlocked session
Situation:
A GUI app contains functionality (off a menu option) that produces a frequently updated image to a directory.
A logged-in, running instance of the app is the ONLY source for this image (functionality 'reliant' on display device). I have…

Chris
- 149
- 6
4
votes
3 answers
how do I make a generic method lock its type in java?
what I mean about that is that in C# for example I can write a generic method like this:
public static void Concatenate (T arg1, T arg2)
{
Console.WriteLine(arg1.ToString() + arg2.ToString());
}
and then if I call the method in these…

Electric Coffee
- 11,733
- 9
- 70
- 131
3
votes
1 answer
Activity to be displayed even when phone is in locked mode
My Question is similar to this one
How can I wake an android device up and skip the screenlock
I want to display a dialogue box from broadcast receiver, but Android API is not allowing me to do that therefore I am using starting an activity from…

Pramod
- 387
- 1
- 7
- 19
3
votes
2 answers
How to show alarm icon with hour on locked screen and in notification bar
I am wondering how is it possible to display stock alarm icon near clock and alarm icon together with hour on locked screen (same as you would use stock alarm).

Jakub Szczygieł
- 1,203
- 1
- 13
- 26
3
votes
0 answers
E: footer is wrong E: Signature verification failed E: error 21 Installation aborted - Trying to apply update from SD Card in my locked phone
everyone. I've been stuck in this problem when I wanted to apply update from a sd card in my phone, all of this in Recovery Mode. I'm doing this because my phone is locked and I want to unlock it without losing data. Thanks in advance.
This is what…

Samuel Román
- 31
- 1
- 2