Questions tagged [forceclose]

Feature used in Android OS to close running application and put it in so called Stop State when it does not work and does not receive any broadcasts.

Feature used in Android OS to close running application and put it in so called Stop State when it does not work and does not receive any broadcasts. Application in Stop State must be explicitly started by user in order to change its state. All the newly installed application are in Stop State until their activities or services are started manually by user or by other activity. This feature was introduced in Android 3.1.

405 questions
57
votes
7 answers

Android App Restarts upon Crash/force close

My android app is getting restarted after force close, through my entire application which consist of 20 activities, I am relying on static data created on a main activity. So once the app is getting crashed all my static data is getting lost and…
Techfist
  • 4,314
  • 6
  • 22
  • 32
28
votes
7 answers

How to force stop my android application programmatically?

I'd like to force stop my Android application when I click closeButton. This is my code. protected void onCreate(Bundle savedInstanceState) { this.setContentView(R.layout.layoutxml); this.closeButton = (Button)this.findViewById(R.id.close); …
user573566
  • 509
  • 2
  • 6
  • 9
23
votes
1 answer

Recursive entry to executePendingTransactions

I have a MainDrawer to Fragment activity which has a layout for a nav drawer my and my main content where I can load new fragments into. One fragment I load in is calle StatisticsTab Fragment. This Fragment holds a tabhost which each tab is its own…
Mike
  • 6,751
  • 23
  • 75
  • 132
18
votes
3 answers

How to resume NSURLSession download process after app force-quit and app relaunch?

I have implemented NSURLSession for downloading fairly large files from our servers. Now as long as I'm working in foreground or background and go back to the app the transactions are working and getting finished. But if I force-quit the app using…
Emil Adz
  • 40,709
  • 36
  • 140
  • 187
15
votes
1 answer

"Failed to register input channel" - what is this caused by and how to fix this?

I've been getting the following error, reported via Market developer console by the users of my app: java.lang.RuntimeException: Failed to register input channel. Check logs for details. at…
dragonroot
  • 5,653
  • 3
  • 38
  • 63
14
votes
6 answers

How to close an android application?

There are many question regarding this topic but there is no clear answer. Although android's memory management is very solid, so many people believe that we shouldn't kill android application. My case is different. I want an option to close an…
Ravi Patel
  • 2,136
  • 3
  • 32
  • 48
11
votes
2 answers

How to send crash reports to developer?

I develop android app but in some cases my app force close How can I send email to developer contains details if force close happen in any time ?
Mohammad Rababah
  • 1,730
  • 4
  • 17
  • 32
10
votes
1 answer

java.lang.RuntimeException: system server dead?

My appwidget crashes with following error: E/AndroidRuntime( 5572): FATAL EXCEPTION: main E/AndroidRuntime( 5572): java.lang.RuntimeException: Unable to start receiver com.android.mlweatherwidget.WeatherWidgetLarge: java.lang.RuntimeException:…
Gaurav Navgire
  • 780
  • 5
  • 17
  • 29
8
votes
5 answers

ACRA : How can I write ACRA report to file (in SD Card)?

I can use ACRA library to manage force close error by handling uncaught exception. The report can sent to google doc., email and custom web service successfully.. But what I want.. How can I write the report to file [ex. sdcard/myapp/myLog.txt]…
Jayabal
  • 3,619
  • 3
  • 24
  • 32
8
votes
3 answers

admob: app crashes on android 3.2

I am integrating admob in my perfectly working android app. I managed to get things to work on my Jelly Bean (4.1.2) phone, but the app crashed on my honeycomb tablet (3.2) with the message java.lang.NoClassDefFoundError:…
bolvo
  • 361
  • 3
  • 13
8
votes
2 answers

java.lang.RuntimeException: start failed

I am trying to record audio in one of my Activities using MediaRecorder. Part of the code is shown below. File file = new File(AppConstants.MSGS_DIR, filename); MediaRecorder recorder = new…
Jeeri
  • 484
  • 2
  • 7
  • 18
8
votes
3 answers

Restart service after force stop

I am developing an application which is used as application locker, an app which is able to protect other installed apps by asking the user for a password on opening those apps, my app is here The problem is that the application can be easily…
Omar Hassan
  • 727
  • 1
  • 11
  • 24
8
votes
2 answers

How to modify style of android "force close" window?

Does anybody know how to modify the style of the "force close" window (FC dialog)? I found a custom ROM with a nice picture at the dialog. At what place can I find the popup?
7
votes
1 answer

Android resource not found because of width and height

I've published an Android app in the store recently that worked perfectly for almost all of my users. However, I shortly started getting a few crash reports a week with the following trace: Caused by: android.content.res.Resources$NotFoundException:…
Overv
  • 8,433
  • 2
  • 40
  • 70
6
votes
2 answers

How to stop Android Studio from opening multiple windows?

I have a Flutter project opened up in Android Studio. After I import any new package in pubspec.yaml file, A new Android Studio Window pops up that opens up nothing. Just a blank Android Studio Screen. I cannot close it, If I try to quit, it just…
Dhruvam Sharma
  • 1,661
  • 14
  • 22
1
2 3
26 27