FAQ Database Discussion Community

Android app crashes on release mode

I have tested my android app(debug-apk) on android devices it's working fine but it is crashing in release mode. I think it is problem in configuration but i am unable to recognise it. Please suggest. Caused by: android.database.sqlite.SQLiteException: no such table: Login (code 1): , while compiling: SELECT * FROM...

Alternative of 'unfortunately app has stopped' [closed]

I want to know is there any way to know the cause of error or make android device to show the error details instead of just displaying the message 'Unfortunately App has stopped working' ?

How to configure debug and release log level for Retrofit?

I use Retrofit in my Android project. While developing I enable full log output for the RestAdapter as follows: new RestAdapter.Builder() .setLogLevel(RestAdapter.LogLevel.FULL); When I bake a release the log level is set to RestAdapter.LogLevel.NONE for obvious reasons. I would like to automatically switch this setting based on the build/folder architecture:...

exception while using HttpResponse response = client.execute(request);

I am trying to do the same as this guy here and I am using AsyncTask to call the executeHttpPost. However, by debugging the application, when it reaches the line HttpResponse response = client.execute(request); it skip everything to the line if (in != null) { I am pretty sure that...

Logcat goes crazy on Android Studio

Since version 1.2.2 of Android Stduio, LogCat doesnt appear to be able to only filter the output messages of my app. Instead, it filters all my device messages. I have Log level "Debug" and "Show only selected application" enabled. Here's a screenshot of my LogCat: http://imgur.com/gErued1 Edit: why I'm being...

Gradle failed to build with error Multiple dex files define

Gradle failed to build after I added google play services gradle Dependencies I've tried both with play-services-wearable entries together and the second one excluded dependencies { compile 'com.google.android.gms:play-services-wearable:6.5.+' compile 'com.android.support:support-v13:21.0.+' wearApp project(':wear') compile 'com.google.android.gms:play-services-wearable:6.5.87' compile files('libs/crashlytics.jar') compile files('libs/cup-v1.0.0.jar') compile files('libs/support-v4-r12.jar') compile files('libs/gson-2.2.4.jar') } The...

Config.DEBUG deprecated

I am trying to add a following code. if (Config.DEBUG) { // do something } else { // do something } I realized that Config.DEBUG is deprecated in API 14. What is the alternative if it?...