[android-developers] IllegalStateException When Committing FragmentTransaction

2013-02-21 Thread hwrdprkns
Greetings, I wonder, what is the most efficient way to figure out if I should commit a FragmentTransaction? The FragmentManager/FragmentTransaction classes don't have good methods to check if we are able to commit a FragmentTransaction. Furthermore, since I always get the exception "java.lang.

[android-developers] IllegalStateException on dispatchKeyEvent on support library

2012-10-02 Thread Joan Pujol
Hi, I've some tens of errors reports from different users catched from Crittercism that I can't reproduce. But as there are several and from several devices I've to thing that they are true ones. I've no idea of what can be happening. Someone can give me any clue with that Stacktrace? The only

Re: [android-developers] "IllegalStateException Fragment not attached to Activity": a challenging issue?

2012-01-25 Thread Mark Murphy
On Wed, Jan 25, 2012 at 8:19 AM, elDoudou wrote: > As soon as a background thread attempts to invoke > the "Fragment.getString(int resId)" while the fragment is not attached > to its view, the caller thread gets an "IllegalStateException" with a > message of the form "Fragment MyfragmentClass{

[android-developers] "IllegalStateException Fragment not attached to Activity": a challenging issue?

2012-01-25 Thread elDoudou
Hello. With the Fragment API, the easy and straightforward way to access to the i18n is to use the "Fragment.getString(int resId)" method. Unfortunately, the implementation resorts to the underlying attached Activity, which is only available between the "Fragment.onAttach(Activity activity)" and t

Re: [android-developers] IllegalStateException: Scheme 'https' not registered.

2011-10-02 Thread safwat sabra
From: William Ferguson To: Android Developers Sent: Monday, October 3, 2011 12:15 AM Subject: [android-developers] IllegalStateException: Scheme 'https' not registered. I've started getting occassional instances of   IllegalStateException

[android-developers] IllegalStateException: Scheme 'https' not registered.

2011-10-02 Thread William Ferguson
I've started getting occassional instances of IllegalStateException: Scheme 'https' not registered. from some users when they are downloading some content using HttpClient, but I can't reproduce it. I understand what the message means, but the content is available from a http address, not a http

Re: [android-developers] IllegalStateException: Can not perform this action after onSaveInstanceState - How to prevent?

2011-09-28 Thread Gergely Juhász
try commitAllowingStateLoss instead of commit. But read the documentation carefully. http://developer.android.com/reference/android/app/FragmentTransaction.html#commitAllowingStateLoss() On 27 September 2011 23:51, Niek wrote: > > I'm getting user reports from my app in the market, delivering the

[android-developers] IllegalStateException: Can not perform this action after onSaveInstanceState - How to prevent?

2011-09-27 Thread Niek
I'm getting user reports from my app in the market, delivering the following exception: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java: 1109) at android.app.FragmentManagerImp

[android-developers] IllegalStateException Error In Searchable

2011-08-29 Thread dust
HI! I implement Searchable and custom ContentProvider in my app, and sometimes IllegalStateException Error is occured. During DB is changed, touching dropdownlist is occured IllegalStateException. Error message is below. java.lang.IllegalStateException: The content of the adapter has changed but L

[android-developers] IllegalStateException only happens with Monkey

2011-08-09 Thread jtoolsdev
I've been testing an Android 3.0 SDK 11 version of one of my apps. When testing with Monkey I occasionally get an IllegalStateException when my data form dialog closes and a ListView is refreshed. I cannot replicate this doing the same thing manually with the emulator nor on my tablet. And ye

Re: [android-developers] IllegalStateException: Fragment not added in ActionBarTabs example

2011-05-19 Thread Shane Isbell
I've run into this on occasion, I surrounded it with a general Exception catch to handle this, which seemed to have no side affects for my application, as to whether this is platform bug, who knows? Without the source code to look at, it is anyone's guess. Shane On Thu, May 19, 2011 at 11:28 AM,

[android-developers] IllegalStateException: Fragment not added in ActionBarTabs example

2011-05-19 Thread Ed Burnette
While writing an app that uses Fragments and tabs on the Action Bar I ran into a crash. I went back to the API Demos sample and can make the same crash happen there. Start the program in the emulator and select App > Action Bar > Action Bar Tabs. Click "Toggle tab mode" then "Add new tab" twice, th

Re: [android-developers] IllegalStateException: database not open

2011-02-20 Thread Kostya Vasilyev
Have you tried uninstalling both applications? For example, "adb uninstall your.package.name"? -- Kostya Vasilyev -- http://kmansoft.wordpress.com 16.02.2011 5:37 пользователь "javaxmlsoapdev" написал: > I had an existing working application which was creating a database > using SQLite helper/cod

[android-developers] IllegalStateException: database not open

2011-02-15 Thread javaxmlsoapdev
I had an existing working application which was creating a database using SQLite helper/code. In another application, which I am developing I copied app1's DBHelper code and honestly forgetting to rename the database name in the DBHelper, which I copied from app1 code. Now I keep getting following

[android-developers] IllegalStateException in MediaPlayer (Redux)

2010-11-23 Thread Jason Polites
Hi folks, Some time ago I posted an issue relating to an IllegalStateException in the Media Player (http://groups.google.com/group/android-developers/ browse_thread/thread/46c7c2cd4f4a6958/5551d47aac93632c) I have just launched the app into the "wild" and this error is flooding in. I just can't

[android-developers] IllegalStateException in MediaPlayer (Redux)

2010-11-22 Thread Jason
Hi folks, Some time ago I posted an issue relating to an IllegalStateException in the Media Player (http://groups.google.com/group/android-developers/ browse_thread/thread/46c7c2cd4f4a6958/5551d47aac93632c) I have just launched the app into the "wild" and this error is flooding in. I just can't

Re: [android-developers] IllegalStateException: No wrapped connection.

2010-10-31 Thread Julius Spencer
Hi Mark, Looks like it was a threading issue - from what you say; IntentService doing work on a separate thread, so just creating a new DefaultHttpClient seems to have done the trick. Thank you for explaining (once again) :) Regards, Julius. On 31/10/2010, at 7:56 PM, Mark Murphy wrote: >

Re: [android-developers] IllegalStateException: No wrapped connection.

2010-10-31 Thread Julius Spencer
Wow thank you Mark. I'll try to implement those changes. Regards, Julius. On 31/10/2010, at 7:56 PM, Mark Murphy wrote: > There is something messed up with your HttpClient object. That > exception is being raised by HttpClient itself, based upon what I can > see in the Android source code. > >

Re: [android-developers] IllegalStateException: No wrapped connection.

2010-10-30 Thread Mark Murphy
There is something messed up with your HttpClient object. That exception is being raised by HttpClient itself, based upon what I can see in the Android source code. Bear in mind that, in the case of an alarm, your process hopefully was terminated/recycled since the last alarm, and so there is litt

[android-developers] IllegalStateException: No wrapped connection.

2010-10-30 Thread Julius Spencer
Hi, I'm trying to send an HTTP request from a WakefulService so a Service which has been started from an alarm set up with AlarmManager and I get the error: IllegalStateException: No wrapped connection. HttpGet httpGet = (HttpGet) new HttpGet(MYRequestHelper.getRequest(this)); H

[android-developers] IllegalStateException in MediaPlayer (HTC Hero 1.5)

2010-09-17 Thread Jason
Hi all, I'm running into some state problems with MediaPlayer. I have so far only seen this on one device (HTC Hero) running Android 1.5. Stack trace is: java.lang.IllegalStateException at android.media.MediaPlayer.prepareAsync(Native Method) at com.carboncrystal.ro.audio.SafeMedi

[android-developers] IllegalStateException with ExpandableListActivity and SimpleCursorTreeAdapter

2010-08-25 Thread OldSkoolMark
Using com.example.android.notepad and ExpandableList2.java from com.example.android.apis.view, I have written a simple application that contains a content provider serving two tables in an sqlite database and a display activity that uses my ExpandableListActivity subclass. I am using my own layouts

[android-developers] IllegalStateException Listview

2010-06-29 Thread myandroid works
I have a problem which i could not resolve for days now. I have an android application which loads a list in the tabview, and there are 3 tabs and the last one is a settings page which is made with android Preference Screen. When i click the last tab, and click on one preference i load an activity

[android-developers] "IllegalstateException can not set method after connection" !!!! Help

2010-05-07 Thread mia
I have been trying to access a web service with ksoap2 through eclipse. I have added the ksoap2 .jar file into a lib file inside the project and then went to the project properties/project build path/ libraries/Add external jars to include the library. The code compiles and runs but every time I hi

[android-developers] IllegalStateException

2010-04-29 Thread ulqui
hello i have a custom view with BaseAdapter which list all my mp3 files in SD card it works great but the getCount have a problem if i want return the size of my song list indeed , i have a illegalStateException : "content of the adapter has changed but ListView did not receive a notificati

Re: [android-developers] IllegalStateException after ListView's adapter has changed

2010-04-07 Thread Jerry Fan
I have a fix for this. Just set the visibility of ur ListView to Gone during update and back to visible after update. By doing so, u can avoid the inconsistency of ur adapter and listView item count. On Mon, Feb 22, 2010 at 3:31 PM, Jayesh Salvi wrote: > Hi, > > This is regarding the exception:

[android-developers] IllegalStateException after ListView's adapter has changed

2010-02-21 Thread Jayesh Salvi
Hi, This is regarding the exception: "java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification." - seen on Android 1.6+ This problem has been discussed in the past [1][2][3][4], and I have followed all the solutions suggested in thos

Re: [android-developers] IllegalStateException

2010-01-25 Thread Romain Guy
It is not the normal behavior. Read the log, it tells you that you did not close one of your Cursors. Make sure you close them in your Activity's onDestroy() at the very least. On Mon, Jan 25, 2010 at 9:15 AM, Vic wrote: > Hi all, > > I develope an application about Contacts Provider. It includes

[android-developers] IllegalStateException

2010-01-25 Thread Vic
Hi all, I develope an application about Contacts Provider. It includes many database operations. But there is a problem about sqlite exception. I have the following information exits in the log file. I am confused. Is it normal behavior? Thanks. 01-14 21:02:48.692 I/dalvikvm( 1923): Uncaught e

[android-developers] IllegalStateException: not connected to MediaScannerService?

2009-12-14 Thread blindfold
After http://groups.google.com/group/android-developers/browse_frm/thread/1369e4a1dc495cd7/ I am using mScanner = new MediaScannerConnection(this, new MediaScannerConnection.MediaScannerConnectionClient() { public void onMediaScannerConnected() { mScanner.scanFile(fileName, null

[android-developers] IllegalStateException when calling Preference.setDependency()

2009-06-04 Thread flix
Hello, I'm trying to create a PreferenceScreen with a CheckBoxPreference which depends on an other CheckBoxPreference using the setDependency() method, as shown in the code below. While calling the setDependency() method, I get the following Exception: java.lang.IllegalStateException: Dependency

[android-developers] IllegalStateException: get field slot from row 0 col 9 failed

2009-06-04 Thread Marcus
Hi, my app has some strange errors on some devices. The problem is that I cannot reproduce it on my device (ADP1 with JF1.5) and also not in the emulator (1.1 and 1.5). But some users encounter this error and here is the log output from him. onResume only calls to super and to refresh(). And re

[android-developers] IllegalStateException: get field slot from row 0 col -1

2008-12-18 Thread DanM
I've seen this problem talked about before on the group, but the general fix seems to be to use a table that has a primary key field named "_id". This field is present in my table, yet I still get this exception. However, I only get this exception when I attempt to use the getColumnIndex method of