小编Tim*_*Tim的帖子

Android studio在哪里安装NDK文件?(以zip下载)

我的android工作室说它想要更新.但当我这样做时,我试图更新它,但它不起作用所以我不得不启动:
C:\Users\username\AppData\Local\Android\sdk\tools\android.bat
安装其他包.但NDK文件不会更新,所以我手动从以下位置下载:

https://developer.android.com/ndk/downloads/index.html#download

现在我有这个zip文件,我应该在哪里提取文件夹?感谢任何帮助!!

文件夹名称是android-ndk-r13b.

android updates subdirectory android-ndk android-studio

31
推荐指数
2
解决办法
4万
查看次数

设置活动如何使用顶部的箭头向后导航

嗨,我创建了一个设置活动,当我进入设置菜单并按手机的后退按钮时,我被定向到正确的“主屏幕”,但是当我按设置菜单的顶部箭头时,什么也没发生,这似乎只是一个按钮。请参阅imgur看看我的意思是哪个箭头。设置活动中的后退箭头,请按此处。我在Java代码中四处查看,似乎找到了按钮?所有帮助都被应用程序取消了!!

这是设置菜单的整个Java文件。

public class SettingsActivity extends AppCompatPreferenceActivity {
    /**
     * A preference value change listener that updates the preference's summary
     * to reflect its new value.
     */
    private static Preference.OnPreferenceChangeListener sBindPreferenceSummaryToValueListener = new Preference.OnPreferenceChangeListener() {
        @Override
        public boolean onPreferenceChange(Preference preference, Object value) {
            String stringValue = value.toString();

            if (preference instanceof RingtonePreference) {
                // For ringtone preferences, look up the correct display value
                // using RingtoneManager.
                if (TextUtils.isEmpty(stringValue)) {
                    // Empty values correspond to 'silent' (no ringtone). …
Run Code Online (Sandbox Code Playgroud)

java settings button android-activity android-studio

3
推荐指数
1
解决办法
2513
查看次数