Re: [android-developers] Force Close just restarts the app?

2013-04-22 Thread Indicator Veritatis
"A future version of the platform will probably just remove all activities owned by the app when it crashes. " -- but doesn't this fit user expectations better? When the user sees "your application has stopped working" and the button "force close", of course he thinks it is the entire applicati

Re: [android-developers] Force close of service using a password

2012-05-22 Thread Mark Murphy
On Tue, May 22, 2012 at 4:26 PM, pedramz wrote: > I have been looking for a way of allowing Force close of a service > only by an authorized user. For example the user needs to enter a > password or PIN code after pressing the Force close button for the > successful closing of service. > > Is this

Re: [android-developers] Force Close like iPhone

2012-04-11 Thread TreKing
On Wed, Apr 11, 2012 at 10:10 AM, giles ian wrote: > Reason being when one activity crashes, its previous activity comes in > foreground and then that one crashes as well. So there are multiple crashes. > > If it would have exited the app this would not have happened > If you fix your bugs so yo

Re: [android-developers] Force Close like iPhone

2012-04-11 Thread Justin Anderson
> > If it would have exited the app this would not have happened Funny... It would also not happen if you fixed the crashes. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Wed, Apr 11, 2012 at 9:10 AM, giles ian wrote: > I was expecting something lik

Re: [android-developers] Force Close like iPhone

2012-04-11 Thread giles ian
I was expecting something like this from you :) Reason being when one activity crashes, its previous activity comes in foreground and then that one crashes as well. So there are multiple crashes. If it would have exited the app this would not have happened On Wed, Apr 11, 2012 at 8:34 PM, TreKin

Re: [android-developers] Force Close like iPhone

2012-04-11 Thread TreKing
On Wed, Apr 11, 2012 at 10:00 AM, giles ian wrote: > What i want is when ever there is a Force close i totally want to exit the > app ( just like iOS does) Why? This is not iOS. - TreKing

Re: [android-developers] Force close while opening an imageView from a bitmap

2012-02-13 Thread Jim Graham
On Mon, Feb 13, 2012 at 09:52:03PM +0100, Daniele Segato wrote: > On 02/13/2012 05:51 AM, Jim Graham wrote: > > why don't you just go into debug mode and see where the bmp goes null? I guess you missed the post where I said it was fixed. :-) And as for debug mode, I looked through every line of

Re: [android-developers] Force close while opening an imageView from a bitmap

2012-02-13 Thread Daniele Segato
On 02/13/2012 05:51 AM, Jim Graham wrote: Background: what I'm trying to do here is create a bitmap with only one color at a set alpha channel value (making the bitmap somewhat transparent) for the entire bitmap. Unfortunately, when the new bitmap (bmp) is passed to an imageView, it's NULL (acc

Re: [android-developers] Force close while opening an imageView from a bitmap

2012-02-13 Thread Jim Graham
Thanks for the help, everyone I got it working with PNG files. I missed the obvious answer by missing the one bit of documentation I SHOULD have read... ImageView. Specifically, setAlpha(). So simple. Now I just need to make the image files fairly small (especially for the solid color fil

Re: [android-developers] Force close while opening an imageView from a bitmap

2012-02-13 Thread Jim Graham
On Mon, Feb 13, 2012 at 07:56:42PM +0530, Raghav Sood wrote: > Apart from bmp, try checking if the imageView itself is null. Perhaps you > forgot to assign an ImageView to it earlier on. I did that once, got an NPE > that had my going crazy for days. ImageView imageView; // line 22 in the global d

Re: [android-developers] Force close while opening an imageView from a bitmap

2012-02-13 Thread Raghav Sood
Apart from bmp, try checking if the imageView itself is null. Perhaps you forgot to assign an ImageView to it earlier on. I did that once, got an NPE that had my going crazy for days. Thanks On Mon, Feb 13, 2012 at 7:53 PM, Jim Graham wrote: > On Mon, Feb 13, 2012 at 05:14:50PM +0400, Kostya Va

Re: [android-developers] Force close while opening an imageView from a bitmap

2012-02-13 Thread Jim Graham
On Mon, Feb 13, 2012 at 05:14:50PM +0400, Kostya Vasilyev wrote: > Does the call to Bitmap.create() return a non-null object in the first > place? If it returns null, have you tried RGB_565, just as a test? Ok, I wrapped everything after the call to Bitmap.create up to and including loading bmp i

Re: [android-developers] Force close while opening an imageView from a bitmap

2012-02-13 Thread Kostya Vasilyev
Does the call to Bitmap.create() return a non-null object in the first place? If it returns null, have you tried RGB_565, just as a test? An ALPHA_8 bitmap would use one quarter the amount of memory of an ARGB_ bitmap. 13 февраля 2012 г. 17:07 пользователь Jim Graham написал: > On Mon, Feb

Re: [android-developers] Force close while opening an imageView from a bitmap

2012-02-13 Thread Jim Graham
On Mon, Feb 13, 2012 at 04:56:52PM +0400, Kostya Vasilyev wrote: > I'd try reducing the image size further, say down to 16 by 16, just > for testing purposes - to see if the error is in fact, still, an out > of memory error. Ok, it's now a 4x3 filter which will be an overlay for first a 728x576 pr

Re: [android-developers] Force close while opening an imageView from a bitmap

2012-02-13 Thread Kostya Vasilyev
I'd try reducing the image size further, say down to 16 by 16, just for testing purposes - to see if the error is in fact, still, an out of memory error. I'd also try using Config.ALPHA_8, per your stated intention of using this bitmap as a mask. -- Kostya 13 февраля 2012 г. 16:42 пользователь J

Re: [android-developers] Force close while opening an imageView from a bitmap

2012-02-13 Thread Jim Graham
On Mon, Feb 13, 2012 at 03:30:32PM +0400, Kostya Vasilyev wrote: > Let's see: 2048 * 1536 * Bitmap.Config.ARGB_ = 12 megabytes. > > I'd guess that you are running into a memory allocation failure. Well, I reduced the bitmap size drastically (the 2048x1536 WAS an error on my part...the larges

Re: [android-developers] Force close while opening an imageView from a bitmap

2012-02-13 Thread Kostya Vasilyev
Let's see: 2048 * 1536 * Bitmap.Config.ARGB_ = 12 megabytes. I'd guess that you are running into a memory allocation failure. -- Kostya 13 февраля 2012 г. 8:51 пользователь Jim Graham написал: > Background:  what I'm trying to do here is create a bitmap with only one color > at a set alpha

Re: [android-developers] Force Close Issue

2011-08-11 Thread Nick Risaro
That's so sad :( Maybe if you attach some logs we can help you and stop being sad. On Fri, Aug 12, 2011 at 1:15 AM, Spica wrote: > I am developing location based application which uses phone's gps. It > works fine on my android device when i am not moving but as soon as i > start moving my appl

Re: [android-developers] Force close

2011-07-30 Thread Mark Murphy
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your "force close". On Sat, Jul 30, 2011 at 10:32 AM, saurabh kulkarni wrote: > My app gives me force close when I add one record to database and > then  returns to privious acti

Re: [android-developers] Force Close when opening app after pressing home button

2011-07-08 Thread Mark Murphy
Sure: fix the bug that causes the force close. Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your "force close". On Fri, Jul 8, 2011 at 2:31 AM, Jo Mon wrote: > Is there a way to make my game open without force closing when

Re: [android-developers] force close loop due to root all 2 sd

2011-06-29 Thread TreKing
You're in the wrong list - find one related to rooting or your specific device. When you find an appropriate list for your question, consider using proper grammar like punctuation, capital letters, and paragraphs, as appropriate, if you don't want your question to be dismissed as gibberish. -

Re: [android-developers] Force close in example taken from book Inflation Error

2011-06-13 Thread Raghav Sood
I seem to have fixed that problem but now my app is force closing again but the error is different: 06-13 15:48:33.338: ERROR/AndroidRuntime(453): android.view.InflateException: Binary XML file line #2: Error inflating class com.raghavsood.listdroid.ListDroidItemView 06-13 15:48:33.338: ERROR/Andr

Re: [android-developers] Force close in example taken from book Inflation Error (SOLVED)

2011-06-13 Thread Raghav Sood
Problem solved. The app didn't re-install correctly on the emulator. The one I was checking was the new apk. Sorry to bother you. Thanks On Mon, Jun 13, 2011 at 5:34 PM, Raghav Sood wrote: > That occurred to me. I opened it up and decompiled the .dex file and its > quite definitely there. > > >

Re: [android-developers] Force close in example taken from book Inflation Error

2011-06-13 Thread Raghav Sood
That occurred to me. I opened it up and decompiled the .dex file and its quite definitely there. On Mon, Jun 13, 2011 at 5:28 PM, Mark Murphy wrote: > On Mon, Jun 13, 2011 at 7:53 AM, Raghav Sood wrote: > > I was trying out an example from one of the android books I have. It > worked > > fine ea

Re: [android-developers] Force close in example taken from book Inflation Error

2011-06-13 Thread Mark Murphy
On Mon, Jun 13, 2011 at 7:53 AM, Raghav Sood wrote: > I was trying out an example from one of the android books I have. It worked > fine earlier but when I tried to modify the textview and list view it > started force closing. The logcat output is as follows (relevant part): > 06-13 15:48:33.338:

Re: [android-developers] Force Close on Click in Calendar after i delete all information set in it

2011-05-02 Thread Dianne Hackborn
You can expect individual devices to behave differently when you are using private APIs like these, regardless of platform version. Writing code like this is going to be a continual source of trouble for you. On Mon, May 2, 2011 at 4:36 AM, Alok Kulkarni wrote: > Hi All, > I am trying to remov

Re: [android-developers] Force Close on Click in Calendar after i delete all information set in it

2011-05-02 Thread TreKing
On Mon, May 2, 2011 at 3:36 AM, Alok Kulkarni wrote: > Is there any better way to Delete all calendar info ? Use the online Google Calendar API - this is not part of the Android SDK. - TreKing

Re: [android-developers] Force close after adding resources and textview

2011-03-15 Thread Mark Sharpley
Hey everyone, thanks for taking the time time to reply. It really is appreciated! Implementing my initialization in onCreate() worked, fantastic stuff. Thanks again Mark On 11 March 2011 06:17, Dianne Hackborn wrote: > Don't implement a constructor and do stuff in it. Implement your > init

Re: [android-developers] Force close after adding resources and textview

2011-03-10 Thread Dianne Hackborn
Don't implement a constructor and do stuff in it. Implement your initialization in onCreate(). On Thu, Mar 10, 2011 at 6:25 PM, Mark Sharpley wrote: > I was playing around with the galleryview and image switcher, and I decided > to implement a textview that describes my images as I scroll throug

Re: [android-developers] Force close after adding resources and textview

2011-03-10 Thread TreKing
> > Line 36: > > Resources res = getResources(); > (Copying from the new thread - not sure why that happened). Did you mean to call getResources(); *outside* of onCreate? - TreKing

Re: [android-developers] Force close after adding resources and textview

2011-03-10 Thread TreKing
On Thu, Mar 10, 2011 at 8:25 PM, Mark Sharpley wrote: > However, this addition causes my app to force close when I try to run it. 03-11 02:00:59.288: ERROR/AndroidRuntime(12636): Caused by: java.lang.NullPointerException 03-11 02:00:59.288: ERROR/AndroidRuntime(12636): at android.content.Con

Re: [android-developers] Force close on null return

2011-02-16 Thread TreKing
On Mon, Feb 14, 2011 at 1:00 PM, BMO wrote: > If you choose the back/return button on your phone without choosing a file > a force close is caused. > Use your debugger and logcat to figure out where your force close is caused. At the very least, always post a stack trace of the issue. > I thin

Re: [android-developers] Force close help, my first app

2011-01-24 Thread TreKing
Reposting as Groups seems to have eaten my post. On Fri, Jan 21, 2011 at 1:37 PM, Matt wrote: > Im new to android dev, and am getting a force close on my first application > and I cant figure it out for the life of me. Hope someone can spot it! > If you can't figure out the error in your own co

Re: [android-developers] Force close/wait popup while in onCreate().

2010-09-22 Thread TreKing
On Wed, Sep 22, 2010 at 12:24 PM, Kakyoin wrote: > But it doesn't work. The screen goes black for the same amount of time even > after I use the progress dialog. > You probably used the dialog in the main thread, which won't make a difference. Look at AsyncTask. ---

Re: [android-developers] Force close/wait popup while in onCreate().

2010-09-22 Thread Leigh McRae
Your loading shouldn't be done on the main event thread. You should have some modes/state machine that shows some kind of splash and then does the loading in another thread. I have modes and a stack system. So I start by pushing on the Menu mode, then the Loading and finally the Splash. S

Re: [android-developers] force close error

2010-09-01 Thread Mark Murphy
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at your Java stack trace associated with your error. On Wed, Sep 1, 2010 at 6:30 AM, Pradeep M wrote: > " The application com.sym.activitu(process com.sym.activity) has > stopped unexpectly. Please try again " > >

RE: [android-developers] Force Close - Debug

2010-06-09 Thread 楊健
Sent: Thursday, June 10, 2010 12:02 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Force Close - Debug using the sharedpreferences.. my app keeps crashing when i have this code active.. text.setText(( int) myPrefs.getInt("state", 0)); is ther

Re: [android-developers] Force Close - Debug

2010-06-09 Thread Jason Hensler
using the sharedpreferences.. my app keeps crashing when i have this code active.. text.setText((*int*) myPrefs.getInt("state", 0)); is there anything wrong with this statement? --- This code is above that line that is error out: SharedPreferences myPrefs = *this*.getSharedPreferences("muter"

RE: [android-developers] Force Close - Debug

2010-06-09 Thread 楊健
What about “SharedPreferences”? Notice that the setting will not be delete even if you update your application ,but when you uninstall the application the setting will be lost. _ From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of J

Re: [android-developers] Force Close - Debug

2010-06-09 Thread Mark Murphy
Jason Hensler wrote: > Is there a writeini / readini functions for andriod/ecplise developent? > Or what is the best way to 'remember' a setting, and then at a later > time restore it? Use a SQLite database. Or a file (JSON, XML, CSV, INI, whatever). Or a SharedPreferences. http://developer.andro

Re: [android-developers] Force Close

2010-04-05 Thread Mark Murphy
> The class below sends and SMS message onLocationChange of the GPS, > well I want it to anyway. > > Alone it works fine, but as a class it doesn't. If I comment out the > code in sendSMS() the program doesn't crash on the phone but it also > doesn't send the SMS. The same code runs as a standal

Re: [android-developers] Force Close just restarts the app?

2010-02-13 Thread Dianne Hackborn
What generally happen when a process crashes is that it is killed, the crashing activity removed, and then the system restarts the next thing on the activity stack. If you had an activity before that one on the stack then that activity will be restarted. This does allow you to write a pathologica