是否有一些Gapps可闪存的拉链,适用于GenVIEWotion上的PREVIEW - Google Nexus 5X - 6.0.0(API 23)?
我试过了
Slim_zero_gapps.BETA.6.0.build.0.x-20151008a
gapps-600-base-20151009-2-signed
benzo-gapps-M-20151011-signed-chroma-r3
Run Code Online (Sandbox Code Playgroud)
还有其他几个人,但只有苯并成功闪烁.由于缺少一些*.so文件,使用benzo Google应用程序崩溃.
有没有人成功地将gapps闪存到PREVIEW中 - 谷歌Nexus 5X - 6.0.0(API 23)并且可以告诉哪个gapps包正在运行?
一些"专业人士"的更新 负面投票需要解释或解决方案!
这是我用android studio 1.0.2实现的错误日志
02-03 13:05:23.831 8385-8385/com.******.*******E/AndroidRuntime? FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: android.support.v4.app.NavUtilsJB
at android.support.v4.app.NavUtils$NavUtilsImplJB.getParentActivityName(NavUtils .java:125)
at android.support.v4.app.NavUtils.getParentActivityName(NavUtils.java:302)
at android.support.v4.app.NavUtils.getParentActivityName(NavUtils.java:281)
at android.support.v7.app.ActionBarActivityDelegateBase.onCreate(ActionBarActivityDelegateBase.java:142)
at android.support.v7.app.ActionBarActivity.onCreate(ActionBarActivity.java:123)
at com..******.*******.****.ActivityWelcome.onCreate(ActivityWelcome.java:33)
at android.app.Activity.performCreate(Activity.java:5104)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
Run Code Online (Sandbox Code Playgroud)
组态
buildToolsVersion "21.1.2"
android SDK TOOLS"24.0.2"
multidex enabled
predexLibraries =false
incremental = true
jumboMode = false
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.gms:play-services:6.5.87'
compile …Run Code Online (Sandbox Code Playgroud) 我有android应用程序,从蓝牙GPS接收器获取GPGGA和GPRMC句子,如何计算给定位置的水平精度与米?
我开发了一个应用程序,并注意到我在logcat中收到了很多"太多的属性引用"警告.
W/ResourceType? Too many attribute references, stopped at: 0x########
Run Code Online (Sandbox Code Playgroud)
我使用support.v7.23.1.0也设计库.我定义我的样式如下:
<style name="AppTheme.Description.TextView" parent="@android:style/Widget.TextView">
<item name="android:textColor">@color/textColorSecondary</item>
<item name="android:textColorPrimary">@color/textColorSecondary</item>
<item name="android:textSize">@dimen/textSizeItemDescription</item>
</style>
Run Code Online (Sandbox Code Playgroud)
应用主题:
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:textColorHighlight">@color/colorPrimaryLight</item>
<item name="colorPrimary">@color/colorPrimary</item>
<!--status bar background color-->
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<!-- color of drawer toggle and other stuff-->
<item name="android:textColorSecondary">@color/textColorSecondary</item>
<!-- Used to define what color preference categories titles will be-->
<item name="colorAccent">@color/colorAccent</item>
<!--overrides text color secondary for widgets and action mode -->
<item name="colorControlNormal">@color/colorControlNormal</item> …Run Code Online (Sandbox Code Playgroud) 哪个RecyclerView函数返回最大滚动偏移量?
我需要Activity通过RecyclerView滚动来确定,我可以隐藏或不隐藏页脚.
我试图实现“ 材料设计规格”中显示的行为。
Pre Lollipop设备上的视觉连续性的“注意事项”部分。
因此,基本上我需要创建一种向其他View动画的View过渡。是否有任何特定的图书馆可以做到这一点?还是我应该写我自己的?
就我而言,没有共享的Views,只有一个动画。实际上还动画返回列表。
android-animation android-studio android-transitions material-design
我的目标是从相机应用程序请求图片,将其保存在我的应用程序数据中,并将相同的图片写入图库,因此如果用户删除应用程序,它仍然保留拍摄的照片(与信使不同,我们的实用工具图片即使没有应用程序)。
我面临的问题与 29 API 级别女巫密切相关是构建目标(提供降级是不可接受的)。
所以基本上我得到的是:
第一个问题:即使Manifest.permission.WRITE_EXTERNAL_STORAGE授予我也无法访问使用Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES)我得到 IOException构造的文件(权限被拒绝)
第二个问题:contentResolver.insert(contentUri, contentValues)在预 Q 设备(诺基亚 8 Android Pie)上抛出这个:
java.lang.SecurityException: Permission Denial: writing com.android.providers.media.MediaProvider uri content://media/external/images/media from .... requires android.permission.WRITE_EXTERNAL_STORAGE, or grantUriPermission()
Run Code Online (Sandbox Code Playgroud)
如果我在 Android 10 设备(在我的情况下为模拟器)上运行,则使用选项可以contentResolver.insert(..)正常工作。
主要问题是如何在定位 29Api 级别时将图片正确写入 android 管理的图库文件夹,以便它可以在 android 10 之前的设备上使用?
额外参考
我用于将图片从我的应用缓存存储写入 android 10 画廊的代码是:
fun writePictureToGalleryQ(context: Context, pictureUri: Uri, pictureName: String) {
val contentResolver = context.contentResolver
val relativeLocation = "${Environment.DIRECTORY_PICTURES}${File.separator}WaiJuDuDisAndroid"
val contentValues = ContentValues().apply {
put(MediaStore.Images.ImageColumns.DISPLAY_NAME, pictureName)
put(MediaStore.MediaColumns.MIME_TYPE, …Run Code Online (Sandbox Code Playgroud) 我两次都得到ANR:
throw new NullPointerException("random null pointer");
Run Code Online (Sandbox Code Playgroud)
和
while(true){}
Run Code Online (Sandbox Code Playgroud)
仅在异常部分VM实际关闭(D/AndroidRuntime:关闭VM).
第二个问题是:如何强制app崩溃而不是ANR并在logcat中获取堆栈跟踪?
更新 已更改标题从ANR和崩溃之间的区别.
更新 它发生在大约3-4个月前.从那时起,只有找到崩溃的方法就是在任何地方放置try catch盒子,没有任何理由.
我做了一个活动,图片应该用工具栏折叠,只有下面的文字可见.但是当工具栏折叠时,工具栏和NestedScrollView之间会出现很大的差距
<android.support.design.widget.CoordinatorLayout xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/coordinatorLayout"
android:layout_width="match_parent"
android:background="@color/white"
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:id="@+id/appBarLayout"
android:layout_width="match_parent"
app:elevation="5dp"
app:layout_collapseMode="pin"
android:fitsSystemWindows="true"
android:layout_height="wrap_content">
<android.support.design.widget.CollapsingToolbarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:toolbarId="@+id/toolbar"
android:id="@+id/collapsing"
android:fitsSystemWindows="true"
app:contentScrim="?attr/colorPrimary"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
<com.noframe.farmisagronom.util.ResizibleImageView
android:id="@+id/image_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_scrollFlags="scroll|enterAlwaysCollapsed"
android:minHeight="100dp"
android:maxHeight="400dp"
android:fitsSystemWindows="true"
app:layout_collapseMode="parallax"
app:layout_collapseParallaxMultiplier="0.5"
android:scaleType="centerCrop"/>
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:popupTheme="@style/ThemeOverlay.AppCompat.Light"
android:minHeight="?attr/actionBarSize"
app:layout_collapseMode="pin"
/>
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
<android.support.v4.widget.NestedScrollView
android:id="@+id/nesteview"
app:layout_anchorGravity="top"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
.....
</android.support.v4.widget.NestedScrollView>
</android.support.design.widget.CoordinatorLayout>
Run Code Online (Sandbox Code Playgroud)
这项活动看起来非常好.

但是当我向上滚动NestedScrollView时,这就失控了.

工具栏和文本之间的这个小空间让我很紧张.
请注意,如果NestedScrollView中存在大文本问题则不会显示,但如果NestedScrollView +折叠工具栏没有占用所有手机屏幕,那么它们之间就存在差距.
我从服务器获得空 json (“{}”) 作为删除响应,代码为 204。
在okhttp3.internal.http.HttpEngine课堂上,有一个令人讨厌的事情被抛出:
if ((code == 204 || code == 205) && response.body().contentLength() > 0) {
throw new ProtocolException(
"HTTP " + code + " had non-zero Content-Length: " + response.body().contentLength());
}
Run Code Online (Sandbox Code Playgroud)
如果您尝试返回标头中没有内容(服务器端)的内容,内容长度仍然大于 0;
任何非服务器端的想法如何解决这个问题?