Questions tagged [android-strictmode]

This mode helps a developer to identify potential bugs in an app.

From Android Developer Docs:

StrictMode is a developer tool which detects things you might be doing by accident and brings them to your attention so you can fix them.

StrictMode is most commonly used to catch accidental disk or network access on the application's main thread, where UI operations are received and animations take place. Keeping disk and network operations off the main thread makes for much smoother, more responsive applications. By keeping your application's main thread responsive, you also prevent ANR dialogs from being shown to users.

128 questions
0
votes
2 answers

Android Honeycomb Strict Mode crashes app despite being AsyncTask

I am trying to run my app on a 3.2 Android Device (Honeycomb). Unfortunately, my app crashes whenever I try to edit one of the objects listed in my app using EditCaseActivity. Logcat seems to tell me that StrictMode is causing the crash, but I'm…
0
votes
2 answers

If use strictmode in my codes, will the security of login be weaken?

Having some doubts on the importing the strict mode in my login application. If i enable this in my code, StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy); will…
Twister
  • 195
  • 2
  • 9
  • 19
0
votes
1 answer

Android StrictMode: False positive or what is wrong with this sample?

I have this ToggleButton that is enabled when a certain condition (Website content) is true. getSystemOnState(..) connects to a webserver and this causes an exception because of strict mode. What is wrong about the way I am using the Handler…
PhilW
  • 731
  • 6
  • 19
0
votes
1 answer

Email Program working and I am not sure why

I am using an email program at site: Sending emails without User intervention. The program runs without problem and does not crash, however the email does not get sent and I do get a list of errors in my log cat and I am not sure why. The only…
user1457104
  • 59
  • 2
  • 10
0
votes
2 answers

strictMode not working in my application

I want to implement strictMode to make my application faster but whenver I try to import it via: Import android.os.StrictMode; It's not available. I've read that strictMode won't work with versions before 2.3.3. This is a problem because the app is…
cj1098
  • 1,495
  • 5
  • 30
  • 55
0
votes
0 answers

Error/StrictMode - two instances from activity

I have only a Activity, if I rotate the device get I a StrictError. I call only contentView(). Why does show me 2 instances? ERROR/StrictMode(7247): class de.test.android.view.activity.SettingsShowBabyActivity; instances=2; limit=1 …
user949884
  • 473
  • 1
  • 8
  • 15
-1
votes
1 answer

App has violated self enforced strict mode violation

I am displaying the files in listview from sdcard in my application. I am doing this in AsyncTask. When I click on an item(file) in the listview it gives the following error 11-28 09:39:40.426 26402-26402/app.comser D/StrictMode﹕ StrictMode policy…
Vinay
  • 1,458
  • 14
  • 23
-2
votes
1 answer

how to move StrictMode.ThreadPolicy.Builder to Async task or to an Intent service?? if Intent mean it would be much helpfull

StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); how to move StrictMode.ThreadPolicy.Builder to AsyncTask or to an IntentService?? if Intent mean it would be much helpful.
1 2 3
8
9