Android :: System WiFi Sleep Policy Intent Force Closes

Jul 26, 2010

I am trying to write the system setting using:
Settings.System.putInt(getApplicationContext().getContentResolver(), Settings.System.WIFI_SLEEP_POLICY, Settings.System.WIFI_SLEEP_POLICY_NEVER_WHILE_PLUGGED);

But it force closes my application. Any Idea? My has user following permissions:
<uses-permission android:name="android.permission.WRITE_SETTING"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/

Android :: System WiFi Sleep Policy Intent Force Closes


Samsung Captivate :: WiFi - Sleep Policy Causing Wake Lock For Android System Process And Draining Battery

Dec 1, 2010

After noticing my battery was draining quickly, and then after reading this thread, I installed Android System Info to see what was draining my battery so fast. I notice that whenever I would turn on WiFi, the phone will never go to sleep , regardless of what I set the WiFi sleep policy to. After turning off WiFi, the battery still drains heavily.

The WiFi will shut off after 15mins (if you set it to "When screen turns off" or "never when plugged in"). However it seems to keep the CPU on causing it to drain down the battery.

It would seem that whenever WiFi is enabled, the Android system process creates a partial wakelock that does not go away even if you turn off WiFi. The only way to resolve this is by powering off or rebooting the phone.

You can verify this in Android System Info by going into Battery-History-Other Usage-Partial Wake usage to see how much time the "Android System" process holding a partial wake.

I even did a factory reset on the device; and it is still happening so it doesn't appear to be any app that caused the issue. As I said, it works fine as long as I don't enable WiFi.

I already know of two users having this issue, but I'm wondering if folks having battery problems are going through this as well. Is anyone else having similar issues after using WiFi? I'm hoping someone will be able to identify what exactly is putting the wakelock on and we'll be able to find a fix for it. Other than not using WiFi at all or rebooting the phone after using Wifi.

View 17 Replies View Related

HTC Droid Eris :: Wifi Sleep Policy - Set To Never?

Dec 12, 2009

I'm confused about the WifI Sleep Policy. What does it mean for wifi to sleep, does it mean to stop searching? Mine is currently set to "when screen turns off", but I've seen others suggest that it be set to "never".

View 6 Replies View Related

Samsung Captivate :: WiFi Sleep Policy - Battery Drain?

Aug 2, 2010

What is your take on the WiFi sleep policy. I do like the fact that Wi-Fi can remain on all the time, but will it be a drain on my battery? Is it better to keep the Wi-Fi to sleep on screen shut off? I am near a Wi-Fi connection for most of the day and always at home.

View 25 Replies View Related

Motorola Droid X :: WiFi Sleep Policy - Optimal Setting?

Jul 22, 2010

If you go to Settings->Wireless and Networks -> Wifi Settings and then hit the Menu button (the one with for squares on the bottom left) and go to advanced there is an option for Wi-fi Sleep Policy. It looks like the default is to turn off wi-fi and switch to mobile data when the screen turns off? Is this the optimal setting? Wouldn't you want it to never turn off (assuming you are in range of wifi)? That way any alerts etc. are all handled over wifi instead of data?

View 3 Replies View Related

General :: Force Closes In System After Updating File In Framework - Galaxy Ace GT-S5839

Apr 14, 2013

I have this problem with my friends galaxy ace GT-S5839i: here because I don't know what to do I pulled the file framework-res.apk from system and then changed the extension to zip, and changed an image inside one of the folders.

After that I zipped the pack again (tried several zip options) and changed the extension back to apk My first question: Is this ok?

I copied the changed file to sdcard and using es explorer moved the file to system/framework. Imediately After answering if I wanted to overwrite the phone freezes and never booted again.

I restored the rom and tried several times with same result I tought the problem would be trying to overwrite a file that's in use but then I found a tool the decompiled the original apk, changed the image, compiled and signed it and made a flashable zip of it.

It gsve always error in trying to flash this on recovery so I extrated the compiled and signed new framwork apk and moved it to system with es explorer... The difference now is that it didn't froze the phone but started to show fc's everywhere. Rebooted, wipede cash and dalvik, messed up woth permissions... Everything I could think of and the result os always tbe same...

View 4 Replies View Related

Motorola Droid X :: WiFi Not Turned Off And Battery Icon Force Closes

Oct 4, 2010

I just picked up the Droid X yesterday and so far love the phone. I had the Incredible a few months ago but had to return it due to some camera hardware issues. Anyways, my phone came with Android 2.1. I upgraded to 2.2 after charging my phone. Now:

1) Whenever I turn off WiFi, within 1 hr my phone will keep telling me it detects WiFi networks, I'll go back in control panel and sure enough WiFi has some how turned itself back on.
2)My battery usage icon, when I click on the battery to get a breakdown of what's using power it 'force closes' every time.

View 7 Replies View Related

Android :: Google Listen Phone Policy - Downloading Against Policy?

Mar 24, 2010

After the newest listen update when I try to listen to a podcast a notice pops up that downloading is against the phone's policy. I am using a G1. Is anyone else getting this error.

View 1 Replies View Related

Android :: Force Closes In App After Donut OTA

Oct 8, 2009

I'm getting reports from users about force closes in my app after the donut OTA. One of them was kind enough to send me a logcat which included these two gems (right after he installed it from market):

10-02 15:56:35.708 D/PackageManager(71): New package installed in / data/app/com.billnapier.android.livebookmarks.apk 10-02 15:56:35.708 W/PackageManager( 71): Unknown permission com.android.browser.permission.READ_HISTORY_BOOKMARKS in package com.billnapier.android.livebookmarks 10-02 15:56:35.708 W/PackageManager( 71): Unknown permission android.permission.READ_HISTORY_BOOKMARKS in package com.billnapier.android.livebookmarks

The second one makes sense, since that name has gone away. But I can't figure out why the first one would show up, since that permission should exist on the phone. anybody got any clues? I can't reproduce this on my phone, so it's kinda hard to debug.

View 2 Replies View Related

Android :: How To Track Down Force Closes?

Nov 24, 2009

Some of my users are reporting force closes. Does anyone have some ideas about how to track these issues down when I can't reproduce them in the Emulator or on my Hero? This is my app btw if anyone wants to logcat it for me:
http://aliceonandroid.wordpress.com/

View 5 Replies View Related

Android - Back Button From Send-intent Closes Application

Jun 1, 2014

i have a drawer menu, when i press one of its buttons to start a sharing intent as below:

Code:
Intent iFriends = new Intent(Intent.ACTION_SEND);
iFriends.setType("text/plain");
iFriends.putExtra(Intent.EXTRA_TEXT, "http://www.liveplus.mobi");
iFriends.createChooser(iFriends, "Invite Friends");
startActivity(iFriends);

The sharing dialog appears, but if i press the back button, the whole application exits!

View 1 Replies View Related

Android :: Application CFConverter Force Closes

Sep 12, 2010

I am new to android development and I have made this using help from a website. The XML files dont have any errors,Here is my Main java code: package com.CFConverter;

import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.os.Bundle; import android.os.Message; import android.view.View; import android.view.View.OnClickListener; import android.widget.EditText; import android.widget.RadioButton; import android.widget.Toast;

public class CFConverter extends Activity {
/** Called when the activity is first created. */ private EditText text;
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
text = (EditText) findViewById(R.id.EditText01);
} //This Handler is called when we click the button01.
public void myClickHandler(View view) //passing the current view {
if(view.getId()== R.id.Button01) {
RadioButton celsiusButton = (RadioButton)findViewById(R.id.RadioButton01);
RadioButton farhrenheitButton = (RadioButton)findViewById(R.id.RadioButton02);
if(text.getText().length()==0) { Toast.makeText(this, "Please Enter a Valid Number", Toast.LENGTH_LONG);
return; } float inputValue = Float.parseFloat(text.getText().toString());
if(celsiusButton.isChecked()) { text.setText(String.valueOf(convertCToF(inputValue)));
// calling function to convert } else {
text.setText(String.valueOf(convertFToC(inputValue)));
} return; } } private float convertCToF(float fahrenheit) {
return ((fahrenheit - 32) * 5 / 9);
} private float convertFToC(float celsius) {
return ((celsius * 9) / 5) + 32;
} }

View 3 Replies View Related

Android :: Application Force Closes On 1.6 - SDK / Image Available Yet?

Sep 11, 2009

We have had a couple users on the myTouch phone have issues in our application. It apparently is force closing on them. I am not sure of why it is, and the 1.6 SDK is not out yet. Has 1.6 been released into the wild? If so, do you know where I can download the image for my G1 dev phone to test w/?

View 7 Replies View Related

Android :: Trying To Open An Email App Force Closes

Jan 20, 2010

I have the Motorola droid. I can see my inbox but when I try and open an email the app force closes. Anyone else had this problem?

View 1 Replies View Related

Android :: Service With MediaPlayer Force Closes

Aug 1, 2010

I have a Service with a MediaPlayer which streams audio from the Internet but when I press the Home button and it goes back to the home screen it Force Closes. It's strange though because it works perfectly in the emulator and sometimes it doesn't Force Close on my phone (G1), when I've just turned it on.

This is my code:

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

Log:

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

View 1 Replies View Related

Android :: Force Closes When The Voice Prompt?

Jul 5, 2010

Would anyone have an idea as to why an app would work on almost every phone that has 2.1 but not the Desire?

One of my apps uses voice input and the Desire is the only phone that force closes when the voice prompt comes up.

The worst part is that I don't know how to test this, I don't have one or know anyone who does.

I finally found out that HTC disabled voice in the Desire and you have to do a work around to install it.

So if you are relying on voice input make sure you use the code in the google example to catch the error:

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

View 1 Replies View Related

Android :: TextView.setText Force Closes

Sep 13, 2010

I'm attempting Google University Android lab1 you are asked to change a TextView's text content according to the value passed via the Intent from another activity.

I tried out the rest of my code but...why does my app force close when I add the "tv.settext(...) line"?

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

View 1 Replies View Related

Android :: Starting App When GPS Is Enabled Force Closes

Nov 4, 2010

My app works when GPS is disabled, but FC's when starting while GPS is enabled. On a cold start it offers the option to turn on the GPS. After doing that, pressing the back arrow button it returns to the app activity (although the GPS icon is not visible in the status bar, on a side note, how do I get it to display here?).

I exit the application by pressing the back button or using the menu option whilst GPS is still on.
Now, when I try to start the app, it FC's. The blinking GPS icon appears behind the FC message and disappears when I acknowledge the FC.

Here is the code:

CODE:........

And this is the logcat from eclipse:


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

View 1 Replies View Related

Android :: SugarSync Force Closes After Donut 1.6 Update

Oct 15, 2009

I spent a month stocking my SugarSync folder full of files and entertainment for my big vacation. On day one of my trip the Donut 1.6 update came through and now SugarSync force closes constantly, haven't been able to use it since. I've been emailing the developers and they refuse to see a connection (despite several comments in the Market of other users blaming 1.6). Is there a chance it isn't 1.6 and how can I fix this? I've uninstalled and reinstalled several times with no improvement. It was an awesome app when it worked, I'll be damn sorry to have to delete it.

View 4 Replies View Related

Android :: People Force Closes - Cannot Add / Link Contact

Jun 15, 2010

I'm having an issue linking my wife to her Facebook profile in the contact "people." When she calls her number comes up. After I hang up, I try to "connect with person already in contacts" and it forces "People" to close. I tried to add her manually and it deleted it before my very eyes while I was within "people." I did it using the Google phonebook and not the phone's. Is there any issue with this, and what's the difference between the Google and Phone options (benefits, etc... ?).

View 3 Replies View Related

Android :: Local Service Not Registering - Force Closes

May 6, 2010

Essentially my problem is this, I open my Activity. It binds to a local service that "appears" to be connected. I get a force close when I press the back button:

"IllegalArgumentException: Service not registered" when unbind is called in my onPause method...
public void onPause() { super.onPause(); if (isFinishing()) {
if (mConnection != null){ Log.i(TAG,"onPause, mConnection" + mConnection.toString());
mDbS.unbindService(mConnection); }else { Log.i(TAG,"mConnection is null");
} The service is bound in onCreate // bind to our sdCard database using our Service Connection
mServiceIntent = new Intent(this,DatabaseService.class);
if(bindService(mServiceIntent, mConnection, Context.BIND_AUTO_CREATE)){
Log.e(TAG, "service bound"); }else{ Log.e(TAG, "service not bound");
} bindService is returning true.

My Service connection is as follows. onServiceConnected is called and goes to completion. onService Disconnected is never called (presumably because my service is in same process)
private ServiceConnection mConnection = new ServiceConnection() {
public final String TAG = "LoadView.ServiceConnection"; //$NON- NLS-1$
public void onServiceConnected(ComponentName className, IBinder service) {
mDbS = ((LocalBinder<DatabaseService>) service).getService(); .....
stuff not relevant.... Log.i(TAG, "finished onServiceConnected");
//$NON-NLS-1$ } public void onServiceDisconnected(ComponentName className) {
Log.e(TAG, "onServiceDisconnectedCalled"); //$NON-NLS-1$ } };

The only thing I do a little different is that I don't use an inner class in my service for the Binder object - I use a separate class. This is mostly because I have several databases and wanted code I could reuse and set up simply rather than worry about all the ins and outs and memory leak issues.

import android.os.Binder; import android.util.Log;
public class LocalBinder<S> extends Binder { private String TAG = "LocalBinder";
private S mService; @SuppressWarnings("unused") private LocalBinder() {
} public LocalBinder(S service){ mService = service;
} public S getService() { return mService;
} public void finalize(){ mService = null;
try { //TODO reinstate this after Issue 8046 is resolved
//super.finalize(); } catch (Throwable e) { Log.e(TAG,"Unable to finalize Binder");
} } }

View 2 Replies View Related

Android :: New App Update Force Closes Immediately On Startup

Mar 31, 2009

This morning, we updated our app on AM; this was our first update since release of Android 1.1.

In testing, on the emulator and with the signed .apk installed on our handsets, everything appeared to be working fine; however, we uploaded to AM, selected the new CopyProtection option, and published. Wertago disappeared for about 30 minutes, and as soon as it reappeared, we downloaded, installed, and started. Immediately upon starting, we got a force close and were never able to get the app started at all.

We've seen some discussions about similar app behavior experienced by other developers, and there was mention of likely bugs in AM or in the Copy Protection scheme. Has this been confirmed by Google, is there any communication from them about a coming fix, or anything like that?

Here's a little detail about what we gather from the logcat output. Our app appears to fail upon attempting to open/create the database; the relevant line is:

tmpDatabase = instance.openOrCreateDatabase(SEARCH_DATABASE_NAME, Context.MODE_PRIVATE, null);

which throws the sqlite3_open_v2 error.

View 2 Replies View Related

Android :: 1.6 SDK WebView - Application Force Closes Every Time

Sep 29, 2010

I've narrowed down the problem to WebView; my application force closes every time. If I take out the WebView and put in a color change button or something, the case switching works and the application loads. I'm fairly new to the plaform, but I'm (mostly) copying directly from examples here for WebViews.

CODE:........

main.xml

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

AndroidManifest.xml

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

View 1 Replies View Related

HTC Incredible :: Getting More Force Closes

Jun 2, 2010

I have a replacement incredible, but over the last week I'm getting more and more force closes than I did with the first one.

View 3 Replies View Related

App Force Closes Before Even Opening?

Oct 24, 2011

I'm working on this new app, and it's force closing before it even opens, why it's force closing? (I've tried this app on my samsung transform and my motorola xoom yesterday, both worked, and them i added the image button inplace of the regular button, and now it won't work. here are my files;

Main.xml

Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >
<EditText
android:id="@+id/editText1"

[code]...

View 4 Replies View Related

Android :: Snap Photo Pro Force Closes Occasionally Along With Other Malfunctions

Mar 12, 2009

I've been using Snap Photo since early on, and it was cool. Then I bought Pro. I went through several updates and checked out all the features. I have to say, this application is getting worse with time! Here are all my complaints. All of these problems happen intermittently. I can never seem to reproduce the problems at will, but they've all occurred multiple times.

1. Saves corrupted pictures. This is the worst! You take a pic, it looks good on the screen. You have auto-save turned on, so it just starts saving it, and shows the spinner. Later you go look for your photo in the Pictures app and there it is with a broken-looking, gray icon instead of a thumbnail. And now it's too late to try again. This is a complete deal breaker for me. If you can't trust the app to save a photo 100% of the time then it's useless!

2. Takes a LOT longer to save a photo to the SD card than the regular photo app. I mean after the picture it taken, and the still image is on your screen, and it's showing the spinner icon as it saves. You have to wait at least 5 seconds for it to finish saving the pic. The regular app does it in two. It's probably using its own shoddy code to compress the JPEG file. Hence why you can change the quality, and why it screws up sometimes and saves a corrupted pic.

3. The app stops listening to any input at all. Several times I would be waiting for the perfect time to take a pic and would click the button nothing. Click it again Nothing! Click the on-screen button. Nothing! Press the back button to leave the app and go use the regular one. Won't even quit! I had to use the Home button and leave it running. This is almost as bad as #1.

4. The horizon line feature is a joke. I don't know why you'd want it, but that's beside the point. I would hold my phone on a level surface, like my coffee table, press the calibrate button, and the line would still be cocked at an angle by a few pixels!

5. Force closes occasionally for unknown reasons. Try to take a pic crash. Change some settings crash. Useless. It would crash at some point 1 out of 20 uses. Unacceptable.

Good thing it only cost me $1. But it's actually cost me more than that in lost photos and much frustration.

View 4 Replies View Related

Android :: ProgressDialog During Location Tasks Either Won't Show Or Force Closes

Dec 25, 2009

ProgressDialog during location tasks either won't show or force closes - I have tried everything!

I now have it in a Handler with a full 1 second delay (one method another post suggested) but it doesn't show. I simply am stuck. Threads are usually force closing when I use those methods.

View 6 Replies View Related

Android :: Emulator Force Closes When Loading Custom Layout

Jul 9, 2010

i created a custom layout where i have a couple of LinearLayout in a ScrollView. Problem is when i set my SetContentView to my custom Layout (when the application starts), the emulator gives an error and force closes! i don't know why. i have tried with another custom layout or set it to main and it seems to work fine.

View 1 Replies View Related

Android :: App Upgrade (with Zipalign) Causes Force Closes / Disappearing Of App Icon - Fix It?

Oct 1, 2009

Almost all our users complain that after upgrading to the newest version of our "Camera Pro" app, either the app crashes or the icon is not showing up anymore in the home screen. The problem seems to be gone after deinstalling and reinstalling the app. How can it be possible that the icon is gone? This is the first version we used zipalign on, can this have something to do with it?

View 10 Replies View Related

HTC Legend :: Cannot Personalize Force Closes

Apr 17, 2010

I just got my Legend today. Had many problems getting it to work on Tmobile US. Finally got it working, but now I can not personalize it. Everytime I go to Menu-Settings-Personalize- either Scenes, Home wallpaper or Lock screen Wallpaper I get a Force Close. My Sotware information is:

Firmware version
2.1

Baseband version
47.23.35.03U_7.05.35.03

Kernel version
2.6.29-00980ffd

Build number
1.11.997.0 CL128574

Software number
Unknown

Browser version
Webkt 3.1

View 4 Replies View Related







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