如果您想了解pleaseselectAndroidSDK的相关知识,那么本文是一篇不可错过的文章,我们将为您提供关于AndroidDisplaySelectedImageandItsRealPath、
如果您想了解please select Android SDK的相关知识,那么本文是一篇不可错过的文章,我们将为您提供关于Android Display Selected Image and Its Real Path、Android Material Design Ripple Effect 在 Android5.0(SDK=21)以下 Android 版本崩溃问题解决、Android SDK 1.5 Release 3 发布、android sdk更新后出现please update ADT to the latest ve的有价值的信息。
本文目录一览:- please select Android SDK
- Android Display Selected Image and Its Real Path
- Android Material Design Ripple Effect 在 Android5.0(SDK=21)以下 Android 版本崩溃问题解决
- Android SDK 1.5 Release 3 发布
- android sdk更新后出现please update ADT to the latest ve
please select Android SDK
解决方法:
-
1)找到安装的Android Studio目录下的bin目录。找到idea.properties文件,用文本编辑器打开。
-
2)在idea.properties文件末尾添加一行: disable.android.first.run=true ,然后保存文件。
-
3)关闭Android Studio后重新启动,便可进入界面。
Android Display Selected Image and Its Real Path
public class RealPathUtil {
@SuppressLint("NewApi")
public static String getRealPathFromURI_API19(Context context, Uri uri){
String filePath = "";
String wholeID = DocumentsContract.getDocumentId(uri);
// Split at colon, use second item in the array
String id = wholeID.split(":")[1];
String[] column = { MediaStore.Images.Media.DATA };
// where id is equal to
String sel = MediaStore.Images.Media._ID + "=?";
Cursor cursor = context.getContentResolver().query(MediaStore.Images.Media.EXTERNAL_CONTENT_URI,
column, sel, new String[]{ id }, null);
int columnIndex = cursor.getColumnIndex(column[0]);
if (cursor.moveToFirst()) {
filePath = cursor.getString(columnIndex);
}
cursor.close();
return filePath;
}
@SuppressLint("NewApi")
public static String getRealPathFromURI_API11to18(Context context, Uri contentUri) {
String[] proj = { MediaStore.Images.Media.DATA };
String result = null;
CursorLoader cursorLoader = new CursorLoader(
context,
contentUri, proj, null, null, null);
Cursor cursor = cursorLoader.loadInBackground();
if(cursor != null){
int column_index =
cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
cursor.moveToFirst();
result = cursor.getString(column_index);
}
return result;
}
public static String getRealPathFromURI_BelowAPI11(Context context, Uri contentUri){
String[] proj = { MediaStore.Images.Media.DATA };
Cursor cursor = context.getContentResolver().query(contentUri, proj, null, null, null);
int column_index
= cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
cursor.moveToFirst();
return cursor.getString(column_index);
}
}
Manifest Permission:
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Android Material Design Ripple Effect 在 Android5.0(SDK=21)以下 Android 版本崩溃问题解决
Android Material Design Ripple Effect 在 Android5.0(SDK=21)以下 Android 版本崩溃问题解决
附录 1 的 Android Ripple Effect 水波波纹荡漾的视觉交互设计,在 Android SDK 版本 21 上运作良好,但是放到 21 版本以下,比如 Android 4.0.3(SDK=15),就会导致整个 APP 崩溃,其中一个解决方案:以附录文章 1 为例,不仅需要在 drawable-v21 中写好 ripple_effect.xml,同时需要再在普通的 res/drawable 下面放一个同名 ripple_effect.xml 文件,在 res/drawable 目录下放的 ripple_effect.xml,目的就是为了向下兼容到低版本的 Android 设备,但是在 Android 低版本设备中,我把 ripple effect 退化成一个简单的点击背景变灰色的交互设计:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" android:state_window_focused="false" />
<item android:drawable="@android:color/darker_gray" android:state_pressed="true" />
<item android:drawable="@android:color/darker_gray" android:state_focused="true" />
<item android:drawable="@android:color/transparent" />
</selector>
这样就可以正常兼容低版本的 Android 设备了,但这个解决方案的遗憾就是只是解决了代码向下兼容到低版本 Android 设备的问题,代价是牺牲了 Android Material Design 的 Ripple Effect 水波波纹荡漾视觉交互设计效果。
附录:
1,《Android Material Design : Ripple Effect 水波波纹荡漾的视觉交互设计》链接:http://blog.csdn.net/zhangphil/article/details/52451848
Android SDK 1.5 Release 3 发布
T-Mobile 放话说 09 年一共有 4 次 Android 系统更新,他们的任务已经完成了 2 次,分别是 2 月的 Android 1.1 和上个月的 Android 1.5(Cupcake),而第三次升级任务马上将于 7 月 20 日展开,但这次的更新只是修复 bug 而新,没有任何新功能,哦真的没有对 flash 的支持!
已经有一些同学收到了 T-Mobile 发来的更新通知,通知说更新包括权限修复和一些 bug 修复,将于 7 月 20 日开始推送,更新完后你的 build 号应该在 CRB43 到 CRC1 之间。
我们要大更新!我们要 2.0 Donut!我们要 flash 支持!
下载地址:
android sdk更新后出现please update ADT to the latest ve
转自http://www.52youpiao.com/it/post/android-adt-latest-version.html
Google发布一个新的android版本,那么开发android的SDK也最好更新到最新的API。最近在更新API后在Eclipse preference里指向android-sdk-windows时出现This Android SDK requires Android Developer Toolkit version 21.0.0 or above. Current version is 16.0.0.v201102162101-104271. Please update ADT to the latest version.这是由于当前Eclipse开发环境的ADT插件的版本过低造成的。
分析原因
android sdk版本更新到了最新的21.0.0 ,而之前我安装的是16.0.0的版本,在更新到最新的API后android-sdk-windows/tools/lib下的plugin.pro文 件内容变为# begin plugin.prop plugin.version=21.0.0# end plugin.prop而Eclipse开发环境的在查看该文件时,查找到plugin.version=21.0.0,认为当前的sdk需要 21.0.0版本以上的插件,但我们还是以前旧的插件。ADT插件的版本还是16.0.0的,所以导致出现了上述问题。
解决方法有如下两种
1、 修改android-sdk-windows/tools/lib下的plugin.pro文件,用记事本打开,将plugin.version的版本信 息改为旧版本的版本号,诸如提示的16.0.0. 修改为plugin.version=16.0.0,保存,重启Eclipse即可。
2、将ADT插件也更新到最新的版本。"Help-->Install New Software..."在work with中找到你的ADT插件项,然后再更新即可。
我们今天的关于please select Android SDK的分享已经告一段落,感谢您的关注,如果您想了解更多关于Android Display Selected Image and Its Real Path、Android Material Design Ripple Effect 在 Android5.0(SDK=21)以下 Android 版本崩溃问题解决、Android SDK 1.5 Release 3 发布、android sdk更新后出现please update ADT to the latest ve的相关信息,请在本站查询。
本文标签: