FAQ Database Discussion Community


Config.DEBUG deprecated

android,android-debug
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?...

How to configure debug and release log level for Retrofit?

android,android-gradle,retrofit,android-debug
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:...

Alternative of 'unfortunately app has stopped' [closed]

android,android-debug
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' ?

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

android,exception,httpresponse,android-debug
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

android,android-studio,android-logcat,android-debug
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

android,android-studio,gradle,android-gradle,android-debug
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...

Android app crashes on release mode

android,google-play,android-sqlite,android-debug
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...