stackoverflow 上 Android 开发 500 问
stackoverflow 上 Android 高票问题翻译整理,下面中文标题的问题意味着翻译完
或翻译中
,如果你有意翻译可选择其它英文标题的问题进行翻译,其它问题猛戳FAQ。
- Android 中 px 、dp、dip 和 sp 有什么 区别?
- Android 模拟器为什么那么慢,应如何加速?
- 如何使用 UserManager.isUserAGoat()?
- 如何关闭或隐藏 Android 中的软键盘?
- 如何让 EditText 在 Activity 启动时不获得焦点
- 如何保存 Activity 的状态?
- 如何唯一确定一台 Android 设备?
- Eclipse 中开发 Android 时遇到 “Debug 签名过期”
- ListView 中如何实现图片的懒加载
- 如何用 Python 写 Android 代码?
- 如何获取屏幕尺寸?
- 如何修复错误 android.os.NetworkOnMainThreadException?
- 如何让 TextView 中的文字在水平方向和垂直方向上居中显示?
- Android 开发中的 Context 是指定什么?
- match_parent 和 fill_parent的区别?
- 安装 Android SDK 时找不到 JDK
- 处理Android 设备翻转后 Activity 的重启
- 'Must Override a Superclass Method' Errors after importing a project into Eclipse
- How do I rotate the Android emulator display? [duplicate]
- Fling gesture detection on grid layout
- Quitting an application - is that frowned upon?
- Gravity and layout_gravity on Android
- Strange out of memory issue while loading an image to a Bitmap object
- R cannot be resolved - Android error
- “Conversion to Dalvik format failed with error 1” on external JAR
- Where to place Assets folder in Android Studio
- Is there a way to get the source code from an APK file?
- Ship an application with a database
- How can I open a URL in Android's web browser from my application?
- Download a file with Android, and showing the progress in a ProgressDialog
- Activity has leaked window that was originally added
- Android Studio: Add jar as library?
- Android error: Failed to install *.apk on device *: timeout
- How do I pass data between activities on Android?
- Get current time and date on Android
- How do I discover memory usage of my application in Android?
- What's “tools:context” in Android layout files?
- How to hide the title bar for an Activity in XML with existing custom theme
- Android - disable landscape mode?
- How do I obtain crash-data from my Android application?
- How to convert a Drawable to a Bitmap?
- How do I add a library project to Android Studio?
- Static way to get 'Context' on Android?
- findViewById in Fragment
- How to get the build/version number of your Android application?
- What is the simplest and most robust way to get the user's current location on Android?
- Standard Android Button with a different color
- Error in launching AVD with AMD processor
- How to check if a service is running on Android?
- How do I make links in a TextView clickable?
- What is Gradle in Android Studio?
- Can't start Eclipse - Java was started but returned exit code=13
- Auto Scale TextView Text to Fit within Bounds
- How to create Transparent Activity in Android?
- Hex transparency in colors [duplicate]
- Where can I find Android source code online? [closed]
- Why doesn't RecyclerView have onItemClickListener()? And how RecyclerView is different from Listview?
- How do I display an alert dialog on Android?
- How to manage
startActivityForResult
on Android? - How to send an object from one Android Activity to another using Intents?
- Update Eclipse with Android development tools v. 23
- What is the shortcut to Auto import all in Android Studio?
- decompiling DEX into Java sourcecode
- How can I connect to Android with ADB over TCP?
- Run/install/debug Android applications over Wi-Fi?
- What are the best practices for SQLite on Android?
- How to declare global variables in Android?
- How do you install an APK file in the Android emulator?
- Example: Communication between Activity and Service using Messaging
- Android Drawing Separator/Divider Line in Layout?
- Can't create handler inside thread that has not called Looper.prepare()
- Converting pixels to dp
- How to avoid reverse engineering of an APK file?
- Error retrieving parent for item: No resource found that matches the given name after upgrading to AppCompat v23
- What does android:layout_weight mean?
- Android Studio Rename Package
- How to align views at the bottom of the screen?
- onActivityResult is not being called in Fragment
- Set TextView style (bold or italic)
- How to install Google Play Services in a Genymotion VM (with no drag and drop support)?
- Sending an Intent to browser to open specific URL [duplicate]
- Sending Email in Android using JavaMail API without using the default/built-in app
- Gradle DSL method not found: 'runProguard'
- How to prevent a dialog from closing when a button is clicked
- Making TextView scrollable in Android
- You need to use a Theme.AppCompat theme (or descendant) with this activity
- How to check internet access on Android? InetAddress never times out
- Place cursor at the end of text in EditText
- Android “Only the original thread that created a view hierarchy can touch its views.”
- How do I get the current GPS location programmatically in Android?
- How do I get extra data from intent on Android?
- How to use SharedPreferences in Android to store, fetch and edit values
- How to call a SOAP web service on Android
- How to display HTML in TextView?
- how to put a border around an android textview
- Is it possible to use Java 8 for Android development?
- Using context in a fragment
- Dialog throwing "Unable to add window — token null is not for an application” with getApplication() as context
- The developers of this app have not set up this app properly for Facebook Login?
- Is it possible to have multiple styles inside a TextView?
- How to handle screen orientation change when progress dialog and background thread active?
- Detect whether there is an Internet connection available on Android [duplicate]
- How to pass an object from one activity to another on Android
- What permission do I need to access Internet from an android application?
- Difference between a View's Padding and Margin
- ViewPager PagerAdapter not updating the View
- How to determine when Fragment becomes visible in ViewPager
- Service vs IntentService
- Dilemma: when to use Fragments vs Activities:
- Code formatting shortcut in Android studio
- AsyncTask Android example
- Best practice for instantiating a new Android Fragment
- Solution to INSTALL_FAILED_INSUFFICIENT_STORAGE error on Android [closed]
- Android: combining text & image on a Button or ImageButton
- How to change fontFamily of TextView in Android
- How to build an APK file in Eclipse?
- Set ImageView width and height programmatically?
- Declaring a custom android UI element using XML
- Get root view from current activity
- Background ListView becomes black when scrolling
- getting the screen density programmatically in android?
- How can I send emails from my Android application?
- How to make an Android Spinner with initial text “Select One”
- ViewPager and fragments — what's the right way to store fragment's state?
- Android Min SDK Version vs. Target SDK Version
- How to check visibility of software keyboard in Android?
- Android Studio - How to Change Android SDK Path
- How to add dividers and spaces between items in RecyclerView?
- Comparison of Android Networking Libraries: OkHTTP, Retrofit, Volley
- Limit text length of EditText in Android
- Navigation Drawer (Google+ vs. YouTube)
- Android getResources().getDrawable() deprecated API 22
- How do I display the current value of an Android Preference in the Preference summary?
- MVC pattern in Android?
- How to load an ImageView by URL in Android? [closed]
- How to call a method after a delay in Android
- Building and running app via Gradle and Android Studio is slower than via Eclipse
- How to start new activity on button click
- Using Application context everywhere?
- “cannot resolve symbol R” in Android Studio
- Failed to allocate memory: 8
- Unfortunately MyApp has stopped. How can I solve this?
- Android color xml resource file [closed]
- Get the current language in device
- Does anyone have benchmarks (code & results) comparing performance of Android apps written in Xamarin C# and Java?
- getColor(int id) deprecated on Android 6.0 Marshmallow (API 23)
- How to get the Android device's primary e-mail address
- Can the Android drawable directory contain subdirectories?
- How to make an ImageView with rounded corners?
- How to have a transparent ImageButton: Android
- What is an Android PendingIntent?
- Fullscreen Activity in Android?
- How to make a background transparent 20% in android
- How to set the text color of TextView in code?
- Convert list to array in Java
- Can I underline text in an android layout?
- Defining custom attrs
- How to create an AVD for Android 4.0
- How to emulate GPS location in the Android Emulator?
- Unable to execute dex: Multiple dex files define Lcom/myapp/R$array;
- Retrieving Android API version programmatically
- mipmap drawables for icons
- Set icon for android application
- View method information in Android Studio
- How do I use DrawerLayout to display over the ActionBar/Toolbar and under the status bar?
- How to scale an Image in ImageView to keep the aspect ratio
- How to create a release signed apk file using Gradle?
- Switching to landscape mode in Android Emulator
- appcompat-v7:21.0.0': No resource found that matches the given name: attr 'android:actionModeShareDrawable'
- Percentage width in a RelativeLayout
- How to refresh Android listview?
- getApplication() vs. getApplicationContext()
- Launch custom android application from android browser
- How to convert a Bitmap to Drawable in android?
- mipmap vs drawable folders [duplicate]
- Difference between “@id/” and “@+id/” in Android
- How to change color of Android ListView separator line?
- Launch an application from another application on Android
- How to implement Android Pull-to-Refresh
- How do you install Google frameworks (Play, Accounts, etc.) on a Genymotion virtual device?
- Android Studio installation on Windows 7 fails, no JDK found
- Send Email Intent
- How to handle button clicks using the XML onClick within Fragments
- How do I change screen orientation in the Android emulator?
- Save bitmap to location
- Upgraded to AppCompat v22.1.0 and now getting IllegalArgumentException: AppCompat does not support the current theme features
- How to programmatically take a screenshot in Android?
- Comparison between Corona, Phonegap, Titanium
- Android: Go back to previous activity
- Get application version programatically in android [duplicate]
- Can the Android Layout folder contain subfolders?
- What's the difference between the various methods to get a Context?
- Maintain/Save/Restore scroll position when returning to a ListView
- Can't Find Theme.AppCompat.Light for New Android ActionBar Support
- What to use instead of “addPreferencesFromResource” in a PreferenceActivity?
- Difference between getContext() , getApplicationContext() , getBaseContext() and “this”
- Search all the occurrences of a string in the entire project in Android Studio
- How to create RecyclerView with multiple view type?
- How can I check the system version of Android?
- Android: Expand/collapse animation
- Get Value of a Edit Text field
- How to pick an image from gallery (SD Card) for my app?
- Does Android support near real time push notification? [closed]
- How to set HttpResponse timeout for Android in Java
- What is the purpose of Looper and how to use it?
- How can I put a ListView into a ScrollView without it collapsing?
- Running the new Intel emulator for Android
- Set EditText cursor color
- Unexpected value from nativeGetEnabledTags: 0
- How do I get the SharedPreferences from a PreferenceActivity in Android?
- Programmatically obtain the phone number of the Android phone
- Check orientation on Android phone
- How can I use external JARs in an Android project?
- Make an HTTP request with android
- Handler vs AsyncTask vs Thread
- How do disable paging by swiping with finger in ViewPager but still be able to swipe programmatically?
- How do I make a splash screen?
- Android Gradle plugin 0.7.0: “duplicate files during packaging of APK”
- How to change the color of header bar and address bar in newest Android Chrome version on Lollipop?
- Android - I need some clarifications of fragments vs activities and views
- How do I remove lines between ListViews on Android?
- Singletons vs. Application Context in Android?
- What is the main purpose of setTag() getTag() methods of View?
- Android basics: running code in the UI thread
- How to define a circle shape in an android xml drawable file?
- Spacing between listView Items Android
- Eclipse hangs at the Android SDK Content Loader
- Developing for Android in Eclipse: R.java not regenerating
- How to keep onItemSelected from firing off on a newly instantiated Spinner?
- LinearLayout not expanding inside a ScrollView
- How to start an application using android ADB tools?
- Unable to execute dex: method ID not in [0, 0xffff]: 65536
- Removing an activity from the history stack
- Android - Handle “Enter” in an EditText
- how to use LocalBroadcastManager?
- How exactly does the android:onClick XML attribute differ from setOnClickListener?
- How to set the font style to bold, italic and underlined in an Android TextView?
- How to display Toast in Android?
- How to open the Google Play Store directly from my Android application?
- Trying to start a service on boot on Android
- How to connect to my http://localhost web server from Android Emulator in Eclipse
- LogCat message: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included
- Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties
- Android Facebook style slide
- Why do most fields (class members) in Android tutorial start with
m
? - How to change or add theme to Android Studio?
- Eclipse reports rendering library more recent than ADT plug-in
- How to read/write a boolean when implementing the Parcelable interface?
- “The connection to adb is down, and a severe error has occured.”
- Is there an easy way to add a border to the top and bottom of an Android View?
- How to listen for a WebView finishing loading a URL?
- Deleting shared preferences
- Android TextView Justify Text
- Android activity life cycle - what are all these methods for?
- How to delete a module in Android Studio
- Android: How do I get string from resources using its name?
- IllegalStateException: Can not perform this action after onSaveInstanceState with ViewPager
- How to make android app's background image repeat
- How to determine device screen size category (small, normal, large, xlarge) using code?
- Counting Chars in EditText Changed Listener
- What is the most appropriate way to store user settings in Android application
- Android ListView with different layouts for each row
- Android: disabling highlight on listView click
- How to make an Android device vibrate?
- Android : difference between invisible and gone?
- Will Google Android ever support .NET? [closed]
- Any good ORM tools for Android development? [closed]
- Remove all debug logging calls before publishing: are there tools to do this?
- How to get the absolute coordinates of a view
- RecyclerView onClick
- Android: How to handle right to left swipe gestures
- How to affect Delphi XEx code generation for Android/ARM targets?
- Android 1.6: “android.view.WindowManager$BadTokenException: Unable to add window — token null is not for an application”
- Allow multi-line in EditText view in Android?
- Android Options Menu in Fragment
- Android: show soft keyboard automatically when focus is on an EditText
- Android emulator doesn't take keyboard input - SDK tools rev 20
- Get filename and path from uri from mediastore
- How do you change text to bold in Android?
- How to show soft-keyboard when edittext is focused
- Launching Google Maps Directions via an intent on Android
- AppCompat v7 r21 returning error in values.xml?
- How to use an existing database with an Android application [duplicate]
- How do I restart an Android Activity
- Android - Launcher Icon Size
- Android Replace “…” with ellipsis character
- How to create a DialogFragment without title?
- How can I use MS Visual Studio for Android Development?
- Android: install .apk programmatically [duplicate]
- Push Notifications in Android Platform
- Write applications in C or C++ for Android? [closed]
- frequent issues arising in android view, Error parsing XML: unbound prefix
- Android: how to make keyboard enter button say “Search” and handle its click?
- How do I get an apk file from an Android device?
- Duplicate ID, tag null, or parent id with another fragment for com.google.android.gms.maps.MapFragment
- Failure [INSTALL_FAILED_ALREADY_EXISTS] when I tried to update my application
- How can I create a keystore?
- Fragment MyFragment not attached to Activity
- What is an Intent in Android?
- What's the difference between commit() and apply() in Shared Preference
- How do I disable orientation change on Android?
- How to attach javadoc or sources to jars in libs folder?
- What is the best IDE to develop Android apps in? [closed]
- Center a button in a Linear layout
- How to display a Yes/No dialog box on Android?
- Google Play app description formatting
- getting exception “IllegalStateException: Can not perform this action after onSaveInstanceState”
- How to deal with INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES without uninstallation
- Once for all, how to correctly save instance state of Fragments in back stack?
- How can I write character & in android strings.xml
- Changing API level Android Studio
- Why doesn't logcat show anything in my Android?
- “To Do” list before publishing android app to market [closed]
- getWidth() and getHeight() of View returns 0
- Android Spinner: Get the selected item change event
- What does LayoutInflater in Android do?
- First letter capitalization for EditText
- How to change an Android app's name?
- Android webview launches browser when calling loadurl
- Scala Programming for Android
- 2D cross-platform game engine for Android and iOS? [closed]
- Parsing query strings on Android
- URL encoding in Android
- how to read value from string.xml in android?
- Eclipse “Invalid Project Description” when creating new project from existing source
- Change language programmatically in Android
- How do I set up IntelliJ IDEA for Android applications?
- How to add manifest permission to android application?
- Get/pick an image from Android's built-in Gallery app programmatically
- This Handler class should be static or leaks might occur: IncomingHandler
- Streaming video from Android camera to server
- “R cannot be resolved to a variable”? [duplicate]
- How to get the width and height of an android.widget.ImageView?
- Border for an Image view in Android?
- The Android emulator is not starting, showing “invalid command-line parameter”
- Override back button to act like home button
- How to return a result (startActivityForResult) from a TabHost Activity?
- How to get a list of installed android applications and pick one to run
- This Activity already has an action bar supplied by the window decor
- Is AsyncTask really conceptually flawed or am I just missing something?
- Get Bitmap attached to ImageView
- Get spinner selected items text?
- Understanding Fragment's setRetainInstance(boolean)
- Listview Scroll to the end of the list after updating the list
- Android ADB device offline, can't issue commands
- Get Android Phone Model Programmatically
- How can I make my custom objects Parcelable?
- How to make layout with rounded corners..?
- How can I add the new “Floating Action Button” between two widgets/layouts
- Update ViewPager dynamically?
- How to make the corners of a button round?
- How to programatically set drawableLeft on Android button?
- Dynamically add elements to a listView Android
- How to change spinner text size and text color?
- Libraries do not get added to APK anymore after upgrade to ADT 22
- Alarm Manager Example
- What are the Android SDK build-tools, platform-tools and tools? And which version should be used?
- Android: How to create a Dialog without a title?
- How do I change the background color of the ActionBar of an ActionBarActivity using XML?
- Android: I want to shake it
- Android Launcher label vs. activity title
- Why is my Button text forced to ALL CAPS on Lollipop?
- Get color-int from color resource
- onMeasure custom view explanation
- Version of SQLite used in Android?
- How to get the SHA-1 fingerprint certificate in Android Studio for debug mode?
- Why does eclipse automatically add appcompat v7 library support whenever I create a new project?
- Android - Using Custom Font
- Is it possible to declare a variable in Gradle usable in Java?
- Background task, progress dialog, orientation change - is there any 100% working solution?
- How to install Android SDK Build Tools on the command line?
- How to disable an Android button?
- How to run a Runnable thread in Android?
- What is the list of supported languages/locales on Android?
- Prevent screen rotation on Android
- Change application's starting activity
- Android timer? How?
- How to hide action bar before activity is created, and then show it again?
- HttpClient won't import in Android Studio
- Disable back button in android
- setBackground vs setBackgroundDrawable (Android)
- Making the Android emulator run faster
- Replace Fragment inside a ViewPager
- How to make EditText not editable through XML in Android?
- How to show a dialog to confirm that the user wishes to exit an Android Activity?
- How to get IP address of the device?
- Unable to execute dex: GC overhead limit exceeded in Eclipse
- What's the difference between fill_parent and wrap_content?
- Creating a system overlay window (always on top)
- How to change the font on the TextView?
- How to set a bitmap from resource
- I can’t find the Android keytool
- ActionBar text color
- Android Studio - no debuggable applications
- Picasso v/s Imageloader v/s Fresco vs Glide [closed]
- How to lay out Views in RelativeLayout programmatically?
- Android and setting width and height programmatically in dp units
- HorizontalScrollView within ScrollView Touch Handling
- Calling setCompoundDrawables() doesn't display the Compound Drawable
- How to create a circular ImageView in Android? [duplicate]
- Android Endless List
- How to get the device's IMEI/ESN programmatically in android?
- “Gradle Version 2.10 is required.” Error
- What's the best way to iterate an Android Cursor?
- Manifest merger failed : uses-sdk:minSdkVersion 14
- Standard Android menu icons, for example refresh [closed]
- Restful API service
- How to Set a Custom Font in the ActionBar Title?
- Android Eclipse - Could not find *.apk
- What is meant by Ems? (Android TextView)
- Difference between /res and /assets directories
- Unable to create Android Virtual Device
- Android Studio was unable to find a valid Jvm (Related to MAC OS)
- How to pause / sleep thread or process in Android?
- Android Log.v(), Log.d(), Log.i(), Log.w(), Log.e() - When to use each one?
- How to detect when an Android app goes to the background and come back to the foreground
- How can I access my localhost from my Android device?
- How to Animate Addition or Removal of Android ListView Rows
- How to use ADB Shell when Multiple Devices are connected? Fails with “error: more than one device and emulator”
- Android: Vertical alignment for multi line EditText (Text area)
- How should I validate an e-mail address?
- dynamic String using String.xml?
- Android add placeholder text to EditText
- Android Fragments and animation
- What is “android.R.layout.simple_list_item_1”?
- Android XML Percent Symbol
- ADT requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found
- Changing EditText bottom line color with appcompat v7
- Android: View.setID(int id) programmatically - how to avoid ID conflicts?
- How to create Drawable from resource
- google-services.json for different productFlavors
- Height of status bar in Android
- Android SDK manager won't open
- How to retrieve the dimensions of a view?
- On logout, clear Activity history stack, preventing “back” button from opening logged-in-only Activites
- How to view AndroidManifest.xml from APK file?
- How to get Activity's content view?
- How can I get zoom functionality for images?
- Difference between FragmentPagerAdapter and FragmentStatePagerAdapter
- get currently displayed fragment
- Checking if an Android application is running in the background
- Filter LogCat to get only the messages from My Application in Android?
- How to implement endless list with RecyclerView?
- Android global variable
- INSTALL_FAILED_NO_MATCHING_ABIS when install apk
- What does this Google Play APK publish error message mean?
- Action bar navigation modes are deprecated in Android L
- How to check if current thread is not main thread
- set up device for development (?????? no permissions)
- how to hide soft keyboard on android after clicking outside EditText?
- Running multiple AsyncTasks at the same time — not possible?
- Android: Clear the back stack
- GCM with PHP (Google Cloud Messaging)
- Do fragments really need an empty constructor?
- Android Studio Stuck at Gradle Download on create new project
- Good way of getting the user's location in Android
- Running a Haskell program on the Android OS
- NoClassDefFoundError - Eclipse and Android
- Finish all previous activities
- How to Resize a Bitmap in Android?
- Best way to add Activity to an Android project in Eclipse?
- Android SDK Manager Not Installing Components
- How to programmatically set the layout_align_parent_right attribute of a Button in Relative Layout?
- How to iterate through SparseArray?
- How do I hide a menu item in the actionbar?
- Force “portrait” orientation mode
- Capture Video of Android's Screen
- Could not find com.google.android.gms:play-services:3.1.59 3.2.25 4.0.30 4.1.32 4.2.40 4.2.42 4.3.23 4.4.52 5.0.77 5.0.89 5.2.08 6.1.11 6.1.71 6.5.87
- SharedPreferences.onSharedPreferenceChangeListener not being called consistently
- Android: How to copy files from 'assets' folder to sdcard?
- Animate the transition between fragments
- Eclipse Android and gitignore
- What APIs in Android is Facebook using to create Chat Heads?
- Animate change of view background color in Android
- android:drawableLeft margin and/or padding
- Start an Activity with a parameter
- Clicking URLs opens default browser
- When to call activity context OR application context?
- Error: Unable to run mksdcard SDK tool
- Password hint font in Android
- How to escape % in String.Format?
- Sending POST data in Android
- Using Intent in an Android application to show another activity
- android set style in code
- What is a “bundle” in an Android application
- Set transparent background of an imageview in Android
- How to change progress bar's progress color in Android
- Linear Layout and weight in Android
- Can an Android Toast be longer than Toast.LENGTH_LONG?
- What is the size of ActionBar in pixels?
- Set selected item of spinner programmatically
- Clear the entire history stack and start a new activity on Android
- How to change position of Toast in Android?
- How to implement onBackPressed() in Fragments?
- Your project contains error(s), please fix it before running it
- Display Animated GIF
- Retrieve a Fragment from a ViewPager
- Convert file: Uri to File in Android
- Is there a way to automate the android sdk installation?