nexus-5

Nexus 5 going to sleep mode makes activity life cycle buggy

给你一囗甜甜゛ 提交于 2019-12-04 10:07:50
I have a strange behavior on the Nexus 5 when going in and out to the sleep mode. It kills and relaunchs the app in a really strange way. I show you the log: Going into sleep mode (pressing the power button) 17.005: E/MotherActivity(28940): onPause called 17.025: E/MotherActivity(28940): onStop called 17.315: E/MotherActivity(28940): onDestroy called 17.365: E/GameTuto1Activity(28940): MainActivity Constructor called 17.365: E/MotherActivity(28940): onCreate called 17.695: E/MotherActivity(28940): onStart called 17.705: E/MotherActivity(28940): onResume called 17.705: E/MotherActivity(28940):

Bitcoinj will not compile onto Nexus 5 with Android Studio

拟墨画扇 提交于 2019-12-04 01:52:34
问题 I am building an app using Bitcoinj and I am trying to run it on a Nexus 5. When using grade to build Bitcoinj - compile 'org.bitcoinj:bitcoinj-core:0.12' - and subsequently running the app on the phone, I receive this error... "Failure [INSTALL_FAILED_NO_MATCHING_ABIS]" Does anyone have any idea why this is, or how to fix it? Thanks, Dan. 回答1: When trying to run an android app that uses the BitcoinJ library for Nexus 5, with the latest android version 5.0 (Lollipop) you will get this error

imageView is not shown in Nexus 5 (Android 6.0)

若如初见. 提交于 2019-12-03 16:48:13
问题 I have an ImageView in a RelativeLayout: <ImageView android:id="@+id/image" android:src="@drawable/image1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" android:scaleType="fitCenter" android:layout_centerVertical="true" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" /> It works on many devices (phones and tablets) and emulators, but does not work on Google Nexus 5 with Android 6. The application works

How to upload multiple files on Android using the multiple property?

烈酒焚心 提交于 2019-12-03 16:14:18
问题 I got a, <input type="file" multiple accept="image/*" /> and I want my android users to be able to upload multiple files at a time. Users using nexus-5 report being unable to upload multiple files at a time. I also tried adding capture="camera" to the input but this only auto open the camera and only associate one picture at a time again. This works everywhere except on Android. Is there anything I am missing? 回答1: I've hit the same brick wall. I've tried a number of mobile browsers and can't

App not showing in launcher

感情迁移 提交于 2019-12-03 13:11:58
问题 After installing an app via the run command on Android Studio, the app launches correctly, I can see it in the applications list and account manager. The problem is that it doesn't show up at all in the app launcher. (I have Google Launcher installed on the Nexus 5 device which I am testing on and everything was working fine before 6.0.1). App name is "Pumpkin". Here is the manifest And here's the screenshot where Pumpkin's supposed to fit. 回答1: Your Intent-Filter seems to be wrong. Change to

BackupManagerService restoration timeout leads to force stop

雨燕双飞 提交于 2019-12-03 13:01:20
Since yesterday, my Nexus 5 is running Lollipop and the application I am working on is stopping without any crash. Each time it exits, the device logs the following: 11-20 00:23:32.679: I/ActivityManager(723): START u0 {flg=0x14008000 cmp=com.mycompany.android/.app.LoginActivity} from uid 10549 on display 0 11-20 00:23:32.713: W/ActivityManager(723): Duplicate finish request for ActivityRecord{2cd672e4 u0 com.mycompany.android/.app.StartupActivity t39 f} 11-20 00:23:32.926: I/ActivityManager(723): Displayed com.mycompany.android/.app.LoginActivity: +223ms 11-20 00:23:45.734: I/ActivityManager

How to set Android M default USB config to MTP rather than “charging only”?

余生长醉 提交于 2019-12-03 08:08:20
问题 Whenever my device (Nexus 5, Android M Preview 3) connects via USB, the USB config always defaults to "charging only". This is quite problematic because the USB port on my device is faulty and sometimes disconnects and reconnects when bumped and so I have to manually change the mode to MTP (media transfer protocol) from the notification drawer each time. Debugging mode is enabled Develop settings -> USB Configuration is set to MTP. 回答1: I just tried this on my Nexus 5 (Android 6.0.1) and it

imageView is not shown in Nexus 5 (Android 6.0)

我怕爱的太早我们不能终老 提交于 2019-12-03 06:52:32
I have an ImageView in a RelativeLayout: <ImageView android:id="@+id/image" android:src="@drawable/image1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:adjustViewBounds="true" android:scaleType="fitCenter" android:layout_centerVertical="true" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" /> It works on many devices (phones and tablets) and emulators, but does not work on Google Nexus 5 with Android 6. The application works perfectly but the ImageView background is not displayed. (Image is in drawable folder and I change the

How to upload multiple files on Android using the multiple property?

a 夏天 提交于 2019-12-03 05:26:17
I got a, <input type="file" multiple accept="image/*" /> and I want my android users to be able to upload multiple files at a time. Users using nexus-5 report being unable to upload multiple files at a time. I also tried adding capture="camera" to the input but this only auto open the camera and only associate one picture at a time again. This works everywhere except on Android. Is there anything I am missing? I've hit the same brick wall. I've tried a number of mobile browsers and can't find any that work. I found this link that tells you that none of the Android browsers support this: http:/

How to set Android M default USB config to MTP rather than “charging only”?

给你一囗甜甜゛ 提交于 2019-12-02 21:41:35
Whenever my device (Nexus 5, Android M Preview 3) connects via USB, the USB config always defaults to "charging only". This is quite problematic because the USB port on my device is faulty and sometimes disconnects and reconnects when bumped and so I have to manually change the mode to MTP (media transfer protocol) from the notification drawer each time. Debugging mode is enabled Develop settings -> USB Configuration is set to MTP. I just tried this on my Nexus 5 (Android 6.0.1) and it worked: Make sure your phone is NOT connected to any device over USB cable Go to Settings - Developer options