android-debug

Surface::setbuffersDimensions Log being spammed

天大地大妈咪最大 提交于 2019-12-04 02:47:14
问题 I have built an Android app that is working fine and as expected with a tablet: Acer. 7-inch API 21. I recently got a new tablet: Acer. 10-inch API 22. Now I am getting my logs spammed with this line. 04-12 18:23:27.371 8776-9082/com.callbell.callbell D/Surface: Surface::setBuffersDimensions(this=0x7f9aa44000,w=800,h=1280) and the screen will freeze and go blank at random intervals. I have not seen any errors in the log and the only reference I can find to this log line is here https:/

How to switch between lldb and GDB in Android Studio

江枫思渺然 提交于 2019-12-03 12:46:56
While trying to debug a JNI project, I see this image after choosing "run" > "edit configuration": According to NDK documents I should see and be able to choose between lldb and GDB. Does anyone know how to do this on the new Android Studio? I am asking because I do not see my break points in my native code. Here is what I have: Try that: Open the sdk manager (Tools->android->sdk manager) then go in the tab "SDK Tools" and there check "LLDB". Then: Make sure you have selected a native run configuration (The default one is called "app-native" Make sure you have selected a "Debug" variant

Android display Logcat in TextView

佐手、 提交于 2019-12-03 01:13:53
The app I'm building have root-access to Android. I wish to show Logcat log information in one of the TextView so it can show up on the screen while i'm debugging. Can someone give me some ideas which library/function i can call to access those log? Thanks Dawid Czerwinski Here's a blogpost that does exactly what you need it to do. It has a complete code example on how to display the contents of the Logcat log. Here's the code: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import android.app.Activity; import android.os.Bundle; import android

How to use Monitor (DDMS) tool to debug application

不羁岁月 提交于 2019-12-02 17:51:07
I'm switching my development environment from Eclipse to Android Studio these days. And I really enjoy its autocompletion and many other features this IDE provide. However, I have some problem when doing debugging. I hope to use Monitor tool which this IDE provided, self-included DDMS and very nice visual interface to track memory usage, thread condition and so on. But I can't find a way that this could support step by step using breakpoints I have to create (That red dot in editor) I can only do step by step debug by not open this Monitor. Since when I try to use Monitor while the debugger is

“'this' is not available” in debug windows of Android Studio

最后都变了- 提交于 2019-12-02 17:43:42
问题 Please I really need help with this, this might seem a duplicate of "'this' is not available" in debug windows of Android Studio but I need to provide more information to address the specific issue. So I am in the same situation of the question at the link, but I suspect that it has to do with my build setup. Please help. This is my build.gradle : buildscript { repositories { maven { url 'http://download.crashlytics.com/maven' } mavenCentral() } dependencies { classpath 'com.crashlytics.tools

“'this' is not available” in debug windows of Android Studio

久未见 提交于 2019-12-02 10:22:56
Please I really need help with this, this might seem a duplicate of "'this' is not available" in debug windows of Android Studio but I need to provide more information to address the specific issue. So I am in the same situation of the question at the link, but I suspect that it has to do with my build setup. Please help. This is my build.gradle : buildscript { repositories { maven { url 'http://download.crashlytics.com/maven' } mavenCentral() } dependencies { classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+' classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1' } } apply plugin:

Surface::setbuffersDimensions Log being spammed

倖福魔咒の 提交于 2019-12-01 15:03:34
I have built an Android app that is working fine and as expected with a tablet: Acer. 7-inch API 21. I recently got a new tablet: Acer. 10-inch API 22. Now I am getting my logs spammed with this line. 04-12 18:23:27.371 8776-9082/com.callbell.callbell D/Surface: Surface::setBuffersDimensions(this=0x7f9aa44000,w=800,h=1280) and the screen will freeze and go blank at random intervals. I have not seen any errors in the log and the only reference I can find to this log line is here https://android.googlesource.com/platform/frameworks/native/+/fe94bd262bc0a33d709aee8fb70c1369656b479b/libs/gui

findPreference(java.lang.CharSequence) is deprecated

不羁岁月 提交于 2019-12-01 09:35:33
It gives me the error "findPreference(java.lang.CharSequence) is deprecated" .Currently, I am targeting API 10 and above for my application. Any kind of help to resolve this will be appreciated. public class SettingsActivity extends PreferenceActivity implements Preference.OnPreferenceChangeListener { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Add 'general' preferences, defined in the XML file // TODO: Add preferences from XML addPreferencesFromResource(R.xml.pref_general); bindPreferenceSummaryToValue(findPreference(getString(R.string

Android Instant Apps: How to debug an instant app?

谁都会走 提交于 2019-12-01 01:58:46
问题 When I debug my instant app on Android Studio, the debugger attaches to instant app process and pauses execution at most breakpoints. However it seems to ignore breakpoints at my main activity's onCreate method. I've tried "Debug" and "Attach Debugger to Android Process" options. What am I missing? 回答1: Basic information about how to use Android Studio debugger to debug an Android app is available at Developer Documentation Debug Your App . Android Studio debugger works normally most of the

Android : How to analyse the native heap dump?

大兔子大兔子 提交于 2019-11-30 08:54:22
问题 I have created a native heap dump file by using the command dumpheap -n <PID> <file> . The file is in human readable format but contains information that is too hard to understand. How can I analyze this file and get useful information out of it? The function address are provided in the place of function names. The mapping is provided at the bottom of the file. Is there any tool to map these and provide meaningful output with function/lib names instead of addresses (load the symbols for