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
application,
Hi,
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 possible?
Thanks,
Pedram
--
You received this
On Tue, May 22, 2012 at 4:26 PM, pedramz pedra...@gmail.com 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
What i want is when ever there is a Force close i totally want to exit the
app ( just like iOS does)
I know im making some of the android dev angry and im also sorry for that.
But is there any way to achieve that.
PS: I know i can achive that by using try catch and exiting app in catch,
but ill
On Wed, Apr 11, 2012 at 10:00 AM, giles ian gilesian@gmail.com 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.
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,
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 gilesian@gmail.com wrote:
I was
On Wed, Apr 11, 2012 at 10:10 AM, giles ian gilesian@gmail.com 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
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 spooky1...@gmail.com написал:
Background: what I'm trying to do here is create a bitmap with only one
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 largest
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 пользователь
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
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 spooky1...@gmail.com
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
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 spooky1...@gmail.com wrote:
On Mon, Feb 13, 2012 at
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
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
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
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
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 (according to logcat).
The following code is
I was using my Samsung Galaxy Ace and suddenly I saw a pop up message saying
*Sorry!*
*The application Samsung*
*Home (process com.sec.*
*android.app.twlauncher) has*
*stopped unexpectedly. Please*
*try again.*
Since then I cannot access my desktop nor menu, settings etc.
Please has anyone
Hi, I have try to make application which i can send and recieve
messages, But i am able to send bt not able to receive in that
application. Force close error.
Below is my SMS receive code.
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
Hello,
I have some coordinates to show them as markers in map, plus, i want
to display an AlertDialog descritpion when i tap on each marker, 3 of
4 markers well shows an AlertDialog but no the correct description,
the 4th force closes the application with this logcat error:
08-24 12:28:35.942:
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 application either freezes or error out with option of
Force close. This application is also consuming web service to send
location to the
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 spicaneb...@gmail.com 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
My app gives me force close when I add one record to database and
then returns to privious activity which shows me added record.So why
force close?
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
My app gives me force close when I add one record to database and
then returns to privious activity which shows me added record.So why
force close?
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
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
funwit.saur...@gmail.com wrote:
My app gives me force close when I add one record to database and
then
Is there a way to make my game open without force closing when ever
the user presses the home button and then goes back to the app.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
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 ebau...@gmail.com wrote:
Is there a way to make my game open without
Hi please help i have a zte v9 2.2 optus my tab and done the stupid
thing of rooting parts of system to sd thinking i had a permanent
root but tried getting photos off at a friends my tab reset losing its
root which made root all to sd not work as phone needs to be rooted
now once booted brings
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.
Hi
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: ERROR/AndroidRuntime(453):
On Mon, Jun 13, 2011 at 7:53 AM, Raghav Sood raghavs...@gmail.com 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):
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 mmur...@commonsware.comwrote:
On Mon, Jun 13, 2011 at 7:53 AM, Raghav Sood raghavs...@gmail.com wrote:
I was trying out an example from one of the
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 raghavs...@gmail.com wrote:
That occurred to me. I opened it up and decompiled the .dex file and its
quite
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:
Hi All,
I am trying to remove all Calendar related entries from a phone(Galaxy tab)
Here is the code
/**
* Deletes all calendar info
*/
private boolean _deleteCalendarInfo() {
try {
String uriPrefix;
if
On Mon, May 2, 2011 at 3:36 AM, Alok Kulkarni kulsu...@gmail.com 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.
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 kulsu...@gmail.com wrote:
Hi All,
I
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 hack...@android.com wrote:
Don't implement a constructor and do stuff in it.
I was playing around with the galleryview and image switcher, and I decided
to implement a textview that describes my images as I scroll through them. I
created a string array, and added a text view in my layout xml. I then added
the string and textview to my code. I thought I could reuse the
On Thu, Mar 10, 2011 at 8:25 PM, Mark Sharpley m.c.sharp...@gmail.comwrote:
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):
Line 36:
Resources res = getResources();
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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
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 m.c.sharp...@gmail.comwrote:
I was playing around with the galleryview and image switcher, and I decided
to implement a textview that describes my
Source code :
main.xml
?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=vertical
TabHost
On Mon, Feb 14, 2011 at 1:00 PM, BMO b...@allyourdroidarebelongto.uswrote:
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
Hola! This is my first post. I'm having trouble with the code
snippet below.
Basically, you click an EditText and you're presented with a file
browser. If you choose a file all is right with the world. If you
choose the back/return button on your phone without choosing a file a
force close is
Hello Group,
How can I deal with when the user hits the home button when in my app and
then doesnt go back to it for a while and then they hold home button to go
back to my app and then the force close appears since all the memory has
been freed because how the OS is designed.
Is there a way
Hello,
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!
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.SystemClock;
import android.view.View;
Reposting as Groups seems to have eaten my post.
On Fri, Jan 21, 2011 at 1:37 PM, Matt mkabro...@gmail.com 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
Hi.
My situation:
I've a lot of initialization code in my main activity's onCreate().
When I launch my game, the screen goes black for a long time, then my
game appears.
I did logged some message at the start and end of onCreate() and found
that onCreate() is executing its code while the screen
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.
On Wed, Sep 22, 2010 at 12:24 PM, Kakyoin lgmc...@gmail.com 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.
The application com.sym.activitu(process com.sym.activity) has
stopped unexpectly. Please try again
the above msg occur in running time so please give solution
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send
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 pradeepmad...@gmail.com wrote:
The application com.sym.activitu(process com.sym.activity) has
stopped unexpectly.
Hi all,
I tried to retrieve user's gmail address on Android phone using
AccountManager.get(this).getAccounts(), but got force close when
running the code in emulator (platform 2.2, API level 8) and Motorola
Droid handset...
Do I need any user-permission in manifest file? what else I might
Hello Team,
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?
Thanks!
Jason
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To
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.
Of Jason Hensler
Sent: Thursday, June 10, 2010 10:17 AM
To: android-developers@googlegroups.com
Subject: [android-developers] Force Close - Debug
Hello Team,
Is there a writeini / readini functions for andriod/ecplise developent? Or what
is the best way to 'remember' a setting
:* Thursday, June 10, 2010 10:17 AM
*To:* android-developers@googlegroups.com
*Subject:* [android-developers] Force Close - Debug
Hello Team,
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
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 there anything wrong
I am trying to add a string dynamically on button click but it force
closes every time.
Any help is appreciated please.
String[] mStrings = {
Abbaye de Belloc, Abbaye du Mont des Cats,
Abertam, Abondance, Ackawi,
Acorn, Adelost, Affidelice au Chablis,
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 standalone sends
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 standalone
I've noticed that whenever I introduce some new awful bug to my app
and it crashes, Android just keeps starting it up over and over again.
I eventually have to hit the dial button on the phone just to make my
app lose focus.
I searched this group's posts and the developer documents... I can't
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
Hello, I have a small issue here I am running Eclipse 3.5x in Ubuntu
9.10 and have a MyTouch 3g running 1.6 Cupcake.
I created a small app similar to a soundboard as one of my first apps,
though I seem to be having issues with MediaPlayer. I have never
written a line of code in Java before, so I
I have had several users report a force close from the contact picker
activity on the Samsung Moment. I'm not sure if the Moment uses the
standard Android contact picker or a custom one (though it looks like
the standard one from the activity name). This is the code I am using
to launch the
When i'm trying to execute my project.
It will show one alert dialog in run time.
That Shows to Forceclose or Wait.
Why this alert dialog is showing.
There is any way to stop these.
In my project i'm reading xml files. is this cause any problem.
Reply me.
Thanks in advance.
Hi,
I started a background service process...however, when there is an
uncaught java exception in one of the threads in that background
service process, a Force Close dialog pops up oo the screen saying
Application XXX stopped unexpectly. My question is, why a thread in
background service
Hello everyone,
I have a period tracking program (P O Tracker) that was working
without issues seemingly until the 1.5 update roll out. The code is
modified version of the NotePadV2 example code and uses its basic DB
functionality and overall structure. I have updated my SDK to 1.5 and
Hi Android Experts,
i am having a force close Dialogue msg for few seconds when i run my
application.
can anyone tell me why is that and how can i resolve it.
do i need to use thread to start my main activity?
any solution?
--~--~-~--~~~---~--~~
You received this
I have a strange problem where, if the screen is rotated while a
dialog is displayed, an exception gets thrown every time. It happens
_only_ during this single dialog, and the exception is thrown outside
of the app (there's no trace information that touches any of my
code). It happens in both
75 matches
Mail list logo