- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我是 Android 开发的新手,我正在阅读“For Dummies Android Application Development. All-in-One For Dummies”一书,我遇到了一个问题。我正在尝试创建一个包含每个级别图像的级别列表,这是代码:
<?xml version="1.0" encoding="utf-8"?>
<level-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@drawable/plain" android:maxLevel="0" />
<item android:drawable="@drawable/pepperoni" android:maxLevel="1" />
<item android:drawable="@drawable/extracheese" android:maxLevel="2" />
<item android:drawable="@drawable/pep_extracheese" android:maxLevel="3" />
</level-list>
这是包资源管理器的层次结构:
当我尝试添加 imgView 时,在 activity_main.xml 中没有,我收到此警告:
Failed to convert D:\Android\test1\res\drawable\plain.jpg into a drawable
Failed to parse file D:\Android\test1\res\drawable\levels.xml
Exception details are logged in Window > Show View > Error Log
这是 activity_main.xml 中的代码:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<include
android:id="@+id/include1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
layout="@layout/new_layout" />
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/include1"
android:layout_centerHorizontal="true"
android:layout_marginTop="154dp"
android:src="@drawable/levels" />
</RelativeLayout>
这是 logCat:
?:??: W/?(?): --------- beginning of /dev/log/system
10-28 17:14:22.095: D/AlarmManager(427): Added alarm Alarm{428747c8 type 2 com.ebay.mobile} type:ELAPSED_REALTIME_WAKEUP when: After 0h:0m:59.0s repeatInterval: 0h:1m:0.0s
10-28 17:14:22.105: D/AlarmManager(427): Triggered Alarm 428747c8 ELAPSED_REALTIME_WAKEUP IntentSender{428a1278: PendingIntentRecord{42aa6270 com.ebay.mobile broadcastIntent}}
10-28 17:14:22.185: I/ActivityManager(427): No longer want com.asus.keyboard (pid 6303): hidden #16
10-28 17:14:22.195: W/ActivityManager(427): Scheduling restart of crashed service com.asus.keyboard/.KeyboardService in 5000ms
10-28 17:14:27.235: I/ActivityManager(427): Start proc com.asus.keyboard for service com.asus.keyboard/.KeyboardService: pid=6690 uid=1000 gids={3003, 1015, 1028, 3002, 3001, 1006, 3007}
10-28 17:14:27.235: I/ActivityManager(427): --------- beginning of /dev/log/main
10-28 17:14:27.275: E/(6690): fail to touchpad on
10-28 17:15:22.095: D/AlarmManager(427): Added alarm Alarm{428747c8 type 2 com.ebay.mobile} type:ELAPSED_REALTIME_WAKEUP when: After 0h:0m:59.0s repeatInterval: 0h:1m:0.0s
10-28 17:15:22.095: D/AlarmManager(427): Triggered Alarm 428747c8 ELAPSED_REALTIME_WAKEUP IntentSender{429003e0: PendingIntentRecord{42aa6270 com.ebay.mobile broadcastIntent}}
10-28 17:15:47.025: D/PowerSaving(5075): onReceived
10-28 17:15:47.025: D/PowerSaving(5075): power_unplugged
10-28 17:15:47.025: D/PowerSaving(5075): back light = 167
10-28 17:15:47.025: D/PowerSaving(5075): back light = 167 , back light = 108.549995
10-28 17:15:47.055: I/fdhttpd(6378): battery level:96 plugged:0
10-28 17:15:47.055: D/LowBatteryService(6466): onReceive:Intent { act=android.intent.action.BATTERY_CHANGED flg=0x60000010 (has extras) }
10-28 17:15:47.055: D/LowBatteryService(6466): mAcOnline = false, mDeviceBatteryLevel = 96, mDockBatteryLevel = 0, mDockBatteryStatus = 0
10-28 17:15:47.055: D/LowBatteryService(6466): Battery level is higher than threshold, no need to apply
10-28 17:15:47.055: D/LowBatteryService(6466): Battery level is good, no need to apply low battery config.
10-28 17:15:47.065: D/DockManagerService(6466): mLastAcOnline:false mAcOnline:false
10-28 17:16:20.855: W/ThrottleService(427): unable to find stats for iface rmnet0
10-28 17:16:21.785: D/AlarmManager(427): Triggered Alarm 42986988 ELAPSED_REALTIME_WAKEUP IntentSender{4279aca8: PendingIntentRecord{429da220 com.android.email startService}}
10-28 17:16:21.825: I/Email(32306): ReconcilePopImapAccountsSync: start
10-28 17:16:21.835: D/AlarmManager(427): Added alarm Alarm{42c68558 type 2 com.android.email} type:ELAPSED_REALTIME_WAKEUP when: After 0h:9m:59.0s
10-28 17:16:21.855: D/AlarmManager(427): Removed alarm Alarm{42c68558 type 2 com.android.email} type:ELAPSED_REALTIME_WAKEUP
10-28 17:16:21.855: D/AlarmManager(427): Added alarm Alarm{42af10d8 type 2 com.android.email} type:ELAPSED_REALTIME_WAKEUP when: After 0h:14m:59.0s
10-28 17:16:21.875: I/Email(32306): ReconcilePopImapAccountsSync: done
10-28 17:16:22.095: D/AlarmManager(427): Added alarm Alarm{428747c8 type 2 com.ebay.mobile} type:ELAPSED_REALTIME_WAKEUP when: After 0h:0m:59.0s repeatInterval: 0h:1m:0.0s
10-28 17:16:22.095: D/AlarmManager(427): Triggered Alarm 428747c8 ELAPSED_REALTIME_WAKEUP IntentSender{427482a8: PendingIntentRecord{42aa6270 com.ebay.mobile broadcastIntent}}
10-28 17:16:22.185: D/GetUserAlerts(29608): Making GetUserAlertsRequest
10-28 17:16:24.365: D/GetUserAlerts(29608): Parsing JSON=
10-28 17:16:24.365: D/GetUserAlerts(29608): {"Timestamp":"2012-10-28T15:16:22.403Z","Ack":"Success","Build":"E777_CORE_BUNDLED_14927770_R1","Version":"777","SessionData":"AQAAATqVN+gAAA1TSUQ9NTkzMTgxMDl8U1Q9MXwxfExBQ1RWPTEzNTE0MzczODIzODh8RUhXTT02MTg0MTMxNzE3fFRJRFg9MXxMSVVQPTEzNTE0MjE2MDMzMjV8UExIUz1bXUX8bkYc6+LfU4Y3v7F6KKPQssgs"}
10-28 17:16:24.375: D/GetUserAlerts(29608): Call was success but no alerts
10-28 17:16:24.375: D/GetUserAlerts(29608): Got response ackCode=1
10-28 17:16:24.375: D/GetUserAlerts(29608): Ack Success, session data=AQAAATqVN+gAAA1TSUQ9NTkzMTgxMDl8U1Q9MXwxfExBQ1RWPTEzNTE0MzczODIzODh8RUhXTT02MTg0MTMxNzE3fFRJRFg9MXxMSVVQPTEzNTE0MjE2MDMzMjV8UExIUz1bXUX8bkYc6+LfU4Y3v7F6KKPQssgs
10-28 17:17:22.095: D/AlarmManager(427): Added alarm Alarm{428747c8 type 2 com.ebay.mobile} type:ELAPSED_REALTIME_WAKEUP when: After 0h:0m:59.0s repeatInterval: 0h:1m:0.0s
10-28 17:17:22.105: D/AlarmManager(427): Triggered Alarm 428747c8 ELAPSED_REALTIME_WAKEUP IntentSender{428d07b8: PendingIntentRecord{42aa6270 com.ebay.mobile broadcastIntent}}
10-28 17:17:47.295: D/BatteryService(427): level:97 scale:100 status:4 health:2 present:true dock_status:1 dock_level:0 dock_ac_online:false voltage: 8 temperature: 280 technology: Li-ion AC powered:false USB powered:false icon:17302867 invalid charger:0
10-28 17:17:47.365: D/PowerSaving(5075): onReceived
10-28 17:17:47.365: D/PowerSaving(5075): power_unplugged
10-28 17:17:47.365: D/PowerSaving(5075): back light = 167
10-28 17:17:47.365: D/PowerSaving(5075): back light = 167 , back light = 108.549995
10-28 17:17:47.385: I/fdhttpd(6378): battery level:97 plugged:0
10-28 17:17:47.385: D/LowBatteryService(6466): onReceive:Intent { act=android.intent.action.BATTERY_CHANGED flg=0x60000010 (has extras) }
10-28 17:17:47.395: D/LowBatteryService(6466): mAcOnline = false, mDeviceBatteryLevel = 97, mDockBatteryLevel = 0, mDockBatteryStatus = 0
10-28 17:17:47.395: D/LowBatteryService(6466): Battery level is higher than threshold, no need to apply
10-28 17:17:47.395: D/LowBatteryService(6466): Battery level is good, no need to apply low battery config.
10-28 17:17:47.395: D/DockManagerService(6466): mLastAcOnline:false mAcOnline:false
10-28 17:18:21.707: D/PowerManagerService(427): forceUserActivityLocked when usb changes
10-28 17:18:21.707: D/PowerManagerService(427): @PowerManagement: Release UWL 'StayOnWhilePluggedIn Screen Dim' flags [screen_dim]
10-28 17:18:21.707: D/PowerManagerService(427): @PowerManagement: Release UWL 'StayOnWhilePluggedIn Partial' flags [partial]
10-28 17:18:21.707: D/PowerManagerService(427): IntentUserActivityLocked, send wakeup intent to Keyguard
10-28 17:18:21.737: D/PowerSaving(5075): onReceived
10-28 17:18:21.737: D/PowerSaving(5075): power_unplugged
10-28 17:18:21.737: D/PowerSaving(5075): back light = 167
10-28 17:18:21.737: D/PowerSaving(5075): back light = 167 , back light = 108.549995
10-28 17:18:21.747: D/KeyguardViewMediator(427): Receive wakeup source, keyguard show:true
10-28 17:18:21.747: D/PowerManagerService(427): range : 114 140 102 104
10-28 17:18:21.747: D/PowerManagerService(427): result : 140 255 104 255
10-28 17:18:21.747: D/PowerManagerService(427): @PowerManagement: Screen Bright {false -> true}
10-28 17:18:21.747: D/PowerManagerService(427): @PowerManagement: Screen turned on mScreenOffTime=1639932ms Battery<C,V>: <97,8>
10-28 17:18:21.747: D/PowerManagerService(427): @PowerManagement: Acquire UWL 'sleep_broadcast' flags [partial] refcount=1
10-28 17:18:21.747: D/PowerManagerService(427): @PowerManagement: Acquire UWL 'sleep_broadcast' flags [partial] refcount=2
10-28 17:18:21.757: E/Sensors(427): enable - sensor Accelerometer (handle 4) dis -> en
10-28 17:18:21.757: V/Sensors(427): enabled_sensors: 16 dmp_started: 0
10-28 17:18:21.757: V/Sensors(427): Starting DMP
10-28 17:18:21.757: E/(427): /home/mcaramello/Software/MPL/branch-CAN-4.1.0/mlsdk/mltools/batch/mlsdk-rel-android-src-CONFIDENTIAL/mldmp/mlsupervisor_9axis.c|inv_enable_9x_fusion_legacy|299 returning 1
10-28 17:18:21.757: E/Sensors(427): Error while trying to enable 9 axis sensor fusion : 1
10-28 17:18:21.767: I/MPL-mldl_cfg_mpu:(427): inv_mpu_resume(,,,,0070) -> 0070
10-28 17:18:21.767: V/Sensors(427): setDelay - sensor Accelerometer (handle 4), rate 200 ms (5.00 Hz)
10-28 17:18:21.767: V/Sensors(427): set fifo rate - divider : 39, delay : 200 ms (5.00 Hz)
10-28 17:18:21.767: I/MPL-fifo(427): Actual ODR: 25000 mHz
10-28 17:18:21.767: V/Sensors(427): setDelay - sensor Accelerometer (handle 4), rate 66 ms (15.00 Hz)
10-28 17:18:21.767: V/Sensors(427): set fifo rate - divider : 13, delay : 66 ms (15.00 Hz)
10-28 17:18:21.767: I/MPL-fifo(427): Actual ODR: 25000 mHz
10-28 17:18:21.827: D/PowerManagerService(427): @PowerManagement: sending ordered bcast for ACTION_SCREEN_ON
10-28 17:18:21.837: D/Ethernet(427): Connect is not possible because : ETHERNET not ENABLE, sleep can sleep,
10-28 17:18:21.847: D/AudioFlinger(121): SRS_Processing::ParamsSet
10-28 17:18:21.907: D/PowerManagerService(427): @PowerManagement: Release UWL 'sleep_broadcast' flags [partial] refcount=1
10-28 17:18:21.927: W/TAG(699): onSurfaceCreated
10-28 17:18:21.927: I/TAG(699): calling onSharedPreferenceChanged from onSurfaceCreated
10-28 17:18:21.927: W/TAG(699): onSharedPreferenceChanged, key: null
10-28 17:18:21.927: W/TAG(699): onSurfaceChanged
10-28 17:18:21.927: I/TAG(699): onSurfaceChanged - surfaceW: -1
10-28 17:18:21.927: I/TAG(699): onSurfaceChanged - width: 800
10-28 17:18:21.957: I/fdhttpd(6378): battery level:97 plugged:0
10-28 17:18:21.957: D/LowBatteryService(6466): onReceive:Intent { act=android.intent.action.BATTERY_CHANGED flg=0x60000010 (has extras) }
10-28 17:18:21.957: D/LowBatteryService(6466): mAcOnline = false, mDeviceBatteryLevel = 97, mDockBatteryLevel = 0, mDockBatteryStatus = 0
10-28 17:18:21.957: D/LowBatteryService(6466): Battery level is higher than threshold, no need to apply
10-28 17:18:21.957: D/LowBatteryService(6466): Battery level is good, no need to apply low battery config.
10-28 17:18:21.957: D/DockManagerService(6466): mLastAcOnline:false mAcOnline:false
10-28 17:18:22.047: D/PowerManagerService(427): range : 114 140 102 104
10-28 17:18:22.047: D/PowerManagerService(427): result : 140 255 104 255
10-28 17:18:22.047: I/WindowManager(427): Lock screen displayed!
10-28 17:18:22.047: D/PowerManagerService(427): @PowerManagement: Release UWL 'sleep_broadcast' flags [partial] refcount=0
10-28 17:18:22.057: D/dalvikvm(119): WAIT_FOR_CONCURRENT_GC blocked 0ms
10-28 17:18:22.077: D/dalvikvm(119): GC_EXPLICIT freed 39K, 6% free 6003K/6339K, paused 3ms+2ms, total 22ms
10-28 17:18:22.077: I/ActivityManager(427): Start proc com.asus.pcsynclauncher for broadcast com.asus.pcsynclauncher/.activity.USBReceiver: pid=6722 uid=10054 gids={3003, 1028}
10-28 17:18:22.087: D/dalvikvm(119): WAIT_FOR_CONCURRENT_GC blocked 0ms
10-28 17:18:22.107: D/dalvikvm(119): GC_EXPLICIT freed <1K, 6% free 6003K/6339K, paused 2ms+2ms, total 19ms
10-28 17:18:22.107: D/dalvikvm(119): WAIT_FOR_CONCURRENT_GC blocked 0ms
10-28 17:18:22.117: D/dalvikvm(119): GC_EXPLICIT freed <1K, 6% free 6003K/6339K, paused 2ms+1ms, total 18ms
10-28 17:18:22.117: D/AlarmManager(427): Added alarm Alarm{428747c8 type 2 com.ebay.mobile} type:ELAPSED_REALTIME_WAKEUP when: After 0h:0m:59.0s repeatInterval: 0h:1m:0.0s
10-28 17:18:22.117: D/AlarmManager(427): Triggered Alarm 428747c8 ELAPSED_REALTIME_WAKEUP IntentSender{42ee55a0: PendingIntentRecord{42aa6270 com.ebay.mobile broadcastIntent}}
10-28 17:18:22.147: D/SurfaceFlinger(118): Screen about to return, flinger = 0x40d24bb8
10-28 17:18:22.157: I/LauncherUsbReceiver(6722): USB Receiver : android.hardware.usb.action.USB_STATE
10-28 17:18:22.157: D/LauncherUsbReceiver(6722): usb state is not connected
10-28 17:18:22.277: I/ActivityManager(427): Start proc com.asus.UpdateLauncher for broadcast com.asus.UpdateLauncher/.UpdateLauncherIntentReceiver: pid=6747 uid=10070 gids={1028}
10-28 17:18:22.277: I/ActivityManager(427): No longer want com.google.android.apps.maps:GoogleLocationService (pid 6316): hidden #16
10-28 17:18:22.297: I/LocationManagerService(427): remove passive (pid 427), next minTime = 0
10-28 17:18:22.297: W/ActivityManager(427): Scheduling restart of crashed service com.google.android.apps.maps/com.google.android.location.internal.server.GoogleLocationService in 5000ms
10-28 17:18:22.307: D/PowerManagerService(427): @PowerManagement: Release UWL 'StayOnWhilePluggedIn Screen Dim' flags [screen_dim]
10-28 17:18:22.317: D/PowerManagerService(427): forceUserActivityLocked when usb changes
10-28 17:18:22.317: D/PowerManagerService(427): @PowerManagement: Release UWL 'StayOnWhilePluggedIn Partial' flags [partial]
10-28 17:18:22.317: D/PowerManagerService(427): IntentUserActivityLocked, send wakeup intent to Keyguard
10-28 17:18:22.327: D/PowerSaving(5075): onReceived
10-28 17:18:22.327: D/PowerSaving(5075): power_unplugged
10-28 17:18:22.327: D/PowerSaving(5075): back light = 167
10-28 17:18:22.327: D/PowerSaving(5075): back light = 167 , back light = 108.549995
10-28 17:18:22.327: D/LowBatteryService(6466): onReceive:Intent { act=android.intent.action.BATTERY_CHANGED flg=0x60000010 (has extras) }
10-28 17:18:22.327: D/KeyguardViewMediator(427): Receive wakeup source, keyguard show:true
10-28 17:18:22.327: I/fdhttpd(6378): battery level:97 plugged:0
10-28 17:18:22.327: D/LowBatteryService(6466): mAcOnline = false, mDeviceBatteryLevel = 97, mDockBatteryLevel = 0, mDockBatteryStatus = 0
10-28 17:18:22.327: D/LowBatteryService(6466): Battery level is higher than threshold, no need to apply
10-28 17:18:22.327: D/LowBatteryService(6466): Battery level is good, no need to apply low battery config.
10-28 17:18:22.327: D/DockManagerService(6466): mLastAcOnline:false mAcOnline:false
10-28 17:18:22.397: I/ActivityManager(427): No longer want com.facebook.katana (pid 6235): hidden #16
10-28 17:18:22.537: I/LauncherUsbReceiver(6722): USB Receiver : android.hardware.usb.action.USB_STATE
10-28 17:18:22.537: D/LauncherUsbReceiver(6722): usb connected
10-28 17:18:22.537: D/LauncherUsbReceiver(6722): extras: Bundle[{configured=false, adb=true, connected=true, mtp=true}]
10-28 17:18:22.597: I/LauncherUsbReceiver(6722): USB Receiver : android.hardware.usb.action.USB_STATE
10-28 17:18:22.597: D/LauncherUsbReceiver(6722): usb connected
10-28 17:18:22.597: D/LauncherUsbReceiver(6722): extras: Bundle[{configured=true, adb=true, connected=true, mtp=true}]
10-28 17:18:22.607: D/MtpService(4859): addStorageLocked 65537 /storage/sdcard0
10-28 17:18:22.607: D/MtpService(4859): starting MTP server in MTP mode
10-28 17:18:22.607: D/MtpService(4859): addStorageLocked 65537 /storage/sdcard0
10-28 17:18:22.727: I/FPS(699): FPS 0.02308548268555613
10-28 17:18:24.087: I/FPS(699): FPS 44.11313843658626
10-28 17:18:24.527: D/PowerSaving(5075): onReceived
10-28 17:18:24.527: D/PowerSaving(5075): power_unplugged
10-28 17:18:24.527: D/PowerSaving(5075): back light = 167
10-28 17:18:24.527: D/PowerSaving(5075): back light = 167 , back light = 108.549995
10-28 17:18:24.537: I/fdhttpd(6378): battery level:97 plugged:0
10-28 17:18:24.537: D/LowBatteryService(6466): onReceive:Intent { act=android.intent.action.BATTERY_CHANGED flg=0x60000010 (has extras) }
10-28 17:18:24.537: D/LowBatteryService(6466): mAcOnline = false, mDeviceBatteryLevel = 97, mDockBatteryLevel = 0, mDockBatteryStatus = 0
10-28 17:18:24.537: D/LowBatteryService(6466): Battery level is higher than threshold, no need to apply
10-28 17:18:24.537: D/LowBatteryService(6466): Battery level is good, no need to apply low battery config.
10-28 17:18:24.537: D/DockManagerService(6466): mLastAcOnline:false mAcOnline:false
10-28 17:18:25.347: I/FPS(699): FPS 47.6573247719597
10-28 17:18:26.587: I/FPS(699): FPS 48.46542315160954
10-28 17:18:26.727: D/PowerSaving(5075): onReceived
10-28 17:18:26.727: D/PowerSaving(5075): power_unplugged
10-28 17:18:26.727: D/PowerSaving(5075): back light = 167
10-28 17:18:26.727: D/PowerSaving(5075): back light = 167 , back light = 108.549995
10-28 17:18:26.747: I/fdhttpd(6378): battery level:97 plugged:0
10-28 17:18:26.747: D/LowBatteryService(6466): onReceive:Intent { act=android.intent.action.BATTERY_CHANGED flg=0x60000010 (has extras) }
10-28 17:18:26.747: D/LowBatteryService(6466): mAcOnline = false, mDeviceBatteryLevel = 97, mDockBatteryLevel = 0, mDockBatteryStatus = 0
10-28 17:18:26.747: D/LowBatteryService(6466): Battery level is higher than threshold, no need to apply
10-28 17:18:26.747: D/LowBatteryService(6466): Battery level is good, no need to apply low battery config.
10-28 17:18:26.747: D/DockManagerService(6466): mLastAcOnline:false mAcOnline:false
10-28 17:18:27.317: I/ActivityManager(427): Start proc com.google.android.apps.maps:GoogleLocationService for service com.google.android.apps.maps/com.google.android.location.internal.server.GoogleLocationService: pid=6783 uid=10026 gids={3003, 1015, 1028}
10-28 17:18:27.467: D/dalvikvm(6783): GC_CONCURRENT freed 69K, 3% free 6439K/6599K, paused 20ms+4ms, total 47ms
10-28 17:18:27.467: D/dalvikvm(6783): WAIT_FOR_CONCURRENT_GC blocked 27ms
10-28 17:18:27.897: D/dalvikvm(6783): GC_CONCURRENT freed 74K, 3% free 6870K/7047K, paused 2ms+13ms, total 32ms
10-28 17:18:27.917: I/FPS(699): FPS 45.276253058033596
10-28 17:18:27.987: D/dalvikvm(6783): GC_CONCURRENT freed 58K, 3% free 7345K/7495K, paused 12ms+4ms, total 52ms
10-28 17:18:27.987: D/dalvikvm(6783): WAIT_FOR_CONCURRENT_GC blocked 7ms
10-28 17:18:28.357: D/dalvikvm(6783): GC_CONCURRENT freed 225K, 5% free 7605K/7943K, paused 14ms+12ms, total 59ms
10-28 17:18:28.527: D/dalvikvm(6783): GC_CONCURRENT freed 150K, 4% free 7989K/8263K, paused 13ms+4ms, total 47ms
10-28 17:18:28.647: I/LocationManagerService(427): request passive (pid 6783) 0 0
10-28 17:18:28.767: D/dalvikvm(6783): GC_CONCURRENT freed 769K, 11% free 7878K/8775K, paused 34ms+20ms, total 108ms
10-28 17:18:29.157: I/FPS(699): FPS 48.33112621190299
10-28 17:18:30.387: I/FPS(699): FPS 48.7477515099616
10-28 17:18:31.627: I/FPS(699): FPS 48.44589602703281
10-28 17:18:32.337: D/PowerManagerService(427): range : 114 140 102 104
10-28 17:18:32.337: D/PowerManagerService(427): result : 140 255 104 255
10-28 17:18:32.337: D/PowerManagerService(427): @PowerManagement: 'keyguard' releaseWakeLock when screen locked
10-28 17:18:32.337: D/PowerManagerService(427): @PowerManagement: Screen Bright {true -> false}
10-28 17:18:32.337: D/PowerManagerService(427): @PowerManagement: Screen turned off mScreenOnTime=10585ms Battery<C,V>: <97,8>
10-28 17:18:32.337: D/PowerManagerService(427): @PowerManagement: Acquire UWL 'sleep_broadcast' flags [partial] refcount=1
10-28 17:18:32.347: D/SurfaceFlinger(118): About to give-up screen, flinger = 0x40d24bb8
10-28 17:18:32.357: E/Sensors(427): enable - sensor Accelerometer (handle 4) en -> dis
10-28 17:18:32.357: V/Sensors(427): enabled_sensors: 0 dmp_started: 1
10-28 17:18:32.357: V/Sensors(427): Stopping DMP
10-28 17:18:32.357: W/Sensors(427): Cannot disable 9 axis sensor fusion - already disabled
10-28 17:18:32.357: I/MPL-mldl_cfg_mpu:(427): inv_mpu_suspend(,,,,7fff) -> 0000
10-28 17:18:32.357: V/Sensors(427): setDelay - sensor Accelerometer (handle 4), rate 66 ms (15.00 Hz)
10-28 17:18:32.367: D/PowerManagerService(427): @PowerManagement: sending ordered bcast for ACTION_SCREEN_OFF
10-28 17:18:32.387: D/Ethernet(427): Screen Off connect_policy = 0 ; bTethered = false
10-28 17:18:32.387: D/Ethernet(427): Screen Off
10-28 17:18:32.397: D/AudioFlinger(121): SRS_Processing::ParamsSet
10-28 17:18:32.467: D/PowerManagerService(427): @PowerManagement: Release UWL 'sleep_broadcast' flags [partial] refcount=0
10-28 17:18:32.487: V/TransportControlView(427): Create TCV com.android.internal.widget.TransportControlView@4284b508
10-28 17:18:32.547: V/LockPatternKeyguardView(427): Set visibility on com.android.internal.policy.impl.LockPatternKeyguardView$4@42950e40 to 8388608
10-28 17:18:32.547: V/LockPatternKeyguardView(427): Set visibility on com.android.internal.policy.impl.LockPatternKeyguardView$4@42950e40 to 8388608
10-28 17:19:00.247: D/dalvikvm(427): GC_CONCURRENT freed 1559K, 39% free 15198K/24903K, paused 5ms+13ms, total 176ms
10-28 17:19:00.507: D/dalvikvm(6653): GC_CONCURRENT freed 275K, 7% free 6361K/6791K, paused 16ms+3ms, total 42ms
10-28 17:19:22.077: D/dalvikvm(800): GC_CONCURRENT freed 662K, 19% free 7374K/9031K, paused 27ms+4ms, total 104ms
10-28 17:19:22.097: D/AlarmManager(427): Added alarm Alarm{428747c8 type 2 com.ebay.mobile} type:ELAPSED_REALTIME_WAKEUP when: After 0h:1m:0.0s repeatInterval: 0h:1m:0.0s
10-28 17:19:22.097: D/AlarmManager(427): Triggered Alarm 428747c8 ELAPSED_REALTIME_WAKEUP IntentSender{42e45520: PendingIntentRecord{42aa6270 com.ebay.mobile broadcastIntent}}
当我尝试运行此应用程序时,它崩溃了。你能帮我理解它崩溃的原因并帮助我修复它吗?
最佳答案
我不知道为什么,但在重新启动 eclipse 后它起作用了谢谢
关于使我的应用程序崩溃的 android 级别列表警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13110023/
我最近在/ drawable中添加了一些.gifs,以便可以将它们与按钮一起使用。这个工作正常(没有错误)。现在,当我重建/运行我的应用程序时,出现以下错误: Error: Gradle: Execu
Android 中有返回内部存储数据路径的方法吗? 我有 2 部 Android 智能手机(Samsung s2 和 s7 edge),我在其中安装了一个应用程序。我想使用位于这条路径中的 sqlit
这个问题在这里已经有了答案: What's the difference between "?android:" and "@android:" in an android layout xml f
我只想知道 android 开发手机、android 普通手机和 android root 手机之间的实际区别。 我们不能从实体店或除 android marketplace 以外的其他地方购买开发手
自Gradle更新以来,我正在努力使这个项目达到标准。这是一个团队项目,它使用的是android-apt插件。我已经进行了必要的语法更改(编译->实现和apt->注释处理器),但是编译器仍在告诉我存在
我是android和kotlin的新手,所以请原谅要解决的一个非常简单的问题! 我已经使用导航体系结构组件创建了一个基本应用程序,使用了底部的导航栏和三个导航选项。每个导航选项都指向一个专用片段,该片
我目前正在使用 Facebook official SDK for Android . 我现在正在使用高级示例应用程序,但我不知道如何让它获取应用程序墙/流/状态而不是登录的用户。 这可能吗?在那种情
我在下载文件时遇到问题, 我可以在模拟器中下载文件,但无法在手机上使用。我已经定义了上网和写入 SD 卡的权限。 我在服务器上有一个 doc 文件,如果用户单击下载。它下载文件。这在模拟器中工作正常但
这个问题在这里已经有了答案: What is the difference between gravity and layout_gravity in Android? (22 个答案) 关闭 9
任何人都可以告诉我什么是 android 缓存和应用程序缓存,因为当我们谈论缓存清理应用程序时,它的作用是,缓存清理概念是清理应用程序缓存还是像内存管理一样主存储、RAM、缓存是不同的并且据我所知,缓
假设应用程序 Foo 和 Eggs 在同一台 Android 设备上。任一应用程序都可以获取设备上所有应用程序的列表。一个应用程序是否有可能知道另一个应用程序是否已经运行以及运行了多长时间? 最佳答案
我有点困惑,我只看到了从 android 到 pc 或者从 android 到 pc 的例子。我需要制作一个从两部手机 (android) 连接的 android 应用程序进行视频聊天。我在想,我知道
用于使用 Android 以编程方式锁定屏幕。我从 Stackoverflow 之前关于此的问题中得到了一些好主意,并且我做得很好,但是当我运行该代码时,没有异常和错误。而且,屏幕没有锁定。请在这段代
文档说: android:layout_alignParentStart If true, makes the start edge of this view match the start edge
我不知道这两个属性和高度之间的区别。 以一个TextView为例,如果我将它的layout_width设置为wrap_content,并将它的width设置为50 dip,会发生什么情况? 最佳答案
这两个属性有什么关系?如果我有 android:noHistory="true",那么有 android:finishOnTaskLaunch="true" 有什么意义吗? 最佳答案 假设您的应用中有
我是新手,正在尝试理解以下 XML 代码: 查看 developer.android.com 上的文档,它说“starStyle”是 R.attr 中的常量, public static final
在下面的代码中,为什么当我设置时单选按钮的外观会发生变化 android:layout_width="fill_parent" 和 android:width="fill_parent" 我说的是
很难说出这里要问什么。这个问题模棱两可、含糊不清、不完整、过于宽泛或夸夸其谈,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开,visit the help center . 关闭 9
假设我有一个函数 fun myFunction(name:String, email:String){},当我调用这个函数时 myFunction('Ali', 'ali@test.com ') 如何
我是一名优秀的程序员,十分优秀!