redex android redex怎么用

后使用快捷导航没有帐号?
一步搞定
只需一步,快速开始
查看: 3415|回复: 17
手机<dd title="在线时间61 小时最后登录阅读权限20UID824761
, 积分 126, 距离下一级还需 74 积分
注册时间积分126精华0主题帖子 金币199 元 智豆1 点
{:soso_e109:}一款阳光沙滩海洋的动态壁纸很好看,昨天发给群里和论坛里分享了下,很多人喜欢,但是就是英文的,小妹想自己汉化下,按照教程都已经汉化完毕了,但是classes.dex拖入redex.bat老是失败,不知道是什么原因,失望了,弄了一天,希望高手能帮忙,把这款好的软件汉化下,谢谢了 ,小妹替喜欢此软件的朋友谢谢各位高手了!{:soso_e100:}
附件: 你需要才可以下载或查看附件。没有帐号?
手机LG Nexus 4在线时间8210 小时最后登录阅读权限200UID471
注册时间积分12399精华16主题帖子 金币116407 元 智豆20 点
把你汉化好但是不能打包的那个classes.dex的文件夹也发上来
论坛私信过多,将不予回复。如有任何问题,请在论坛发帖后将链接私信给我。见谅
手机<dd title="在线时间61 小时最后登录阅读权限20UID824761
, 积分 126, 距离下一级还需 74 积分
注册时间积分126精华0主题帖子 金币199 元 智豆1 点
{:soso_e109:}已经删除了classes.dex 只有汉化好的resources.arsc和res文件了 还有个问题就是这3个地方汉化好了 但是好像没有找到软件里面一些关键的英文 3个地方都没有 我把这2个文件打包了& &{:soso_e100:} 谢谢大哥了
附件: 你需要才可以下载或查看附件。没有帐号?
手机LG Nexus 4在线时间8210 小时最后登录阅读权限200UID471
注册时间积分12399精华16主题帖子 金币116407 元 智豆20 点
呃。找找classes.dex吧,看看能不能恢复
论坛私信过多,将不予回复。如有任何问题,请在论坛发帖后将链接私信给我。见谅
手机<dd title="在线时间61 小时最后登录阅读权限20UID824761
, 积分 126, 距离下一级还需 74 积分
注册时间积分126精华0主题帖子 金币199 元 智豆1 点
{:soso_e149:}没了 我试验classes.dex的时候已经覆盖了 哎 能不能帮忙把这个软件汉化下哦 我已经头疼了 还有些不明白的 比如 软件里的一些英文选项 在这3个地方并没有找到
手机<dd title="在线时间61 小时最后登录阅读权限20UID824761
, 积分 126, 距离下一级还需 74 积分
注册时间积分126精华0主题帖子 金币199 元 智豆1 点
{:soso_e110:}希望能汉化下{:soso_e110:} 谢谢了
手机LG Nexus 4在线时间8210 小时最后登录阅读权限200UID471
注册时间积分12399精华16主题帖子 金币116407 元 智豆20 点
本帖最后由 大星星 于
18:09 编辑
PS:要汉化的部分还有assets下面的beach-settings.txt
论坛私信过多,将不予回复。如有任何问题,请在论坛发帖后将链接私信给我。见谅
手机<dd title="在线时间61 小时最后登录阅读权限20UID824761
, 积分 126, 距离下一级还需 74 积分
注册时间积分126精华0主题帖子 金币199 元 智豆1 点
{:soso_e100:}恩啊 你能帮我汉化下这个软件吗?{:soso_e154:} 非常感谢 我现在有点头大了 要不我晚上重新汉化下 这2个地方 给你发过去 你帮忙打包下
手机LG Nexus 4在线时间8210 小时最后登录阅读权限200UID471
注册时间积分12399精华16主题帖子 金币116407 元 智豆20 点
<font color="#929yf 发表于
回复 大星星 的帖子
{:soso_e100:}恩啊 你能帮我汉化下这个软件吗?{:soso_e154:} 非常感谢 我现在有点头大 ...
恩。你汉化好了,我帮你打包好。
帮你标注汉化作者是你就OK
论坛私信过多,将不予回复。如有任何问题,请在论坛发帖后将链接私信给我。见谅
手机<dd title="在线时间61 小时最后登录阅读权限20UID824761
, 积分 126, 距离下一级还需 74 积分
注册时间积分126精华0主题帖子 金币199 元 智豆1 点
{:soso_e100:}恩啊 有没有汉化完全的 还请你帮忙 嘻嘻 非常感谢!
ATX破晓勋章
ATX破晓专属勋章
ATX新月勋章
ATX新月专属勋章
ATX龙腾勋章
ATX龙腾专属勋章
ATX风雅勋章
ATX风雅专属勋章
ATX预备队勋章
ATX预备队勋章
ROM=VIP专版勋章
论坛ROM推广区专用勋章
安智C团队勋章
安智C团队勋章
当旗舰机纷纷向大屏看齐时,大家想把哪部手机缩小到喜欢的尺寸,缩小到多大呢?
Powered byAndroid开发技术周报RxAndroidBle - 推酷
RxAndroidBle
RxAndroidBle
Introduction
RxAndroidBle is a powerful painkiller for Android's Bluetooth Low Energy headaches. It is backed by RxJava, implementing complicated APIs as handy reactive observables. The library does for you:
Fancy asynchronous operations support (read, write, notifications)
Threading management in order to meet Android contracts
Connection and operation error handling
For support head to
Obtaining the client
It's your job to maintain single instance of the client. You can use singleton, scoped
component or whatever else you want.
RxBleClient rxBleClient = RxBleClient.create(context);
Device discovery
Scanning devices in the area is simple as that:
Subscription scanSubscription = rxBleClient.scanBleDevices()
.subscribe(rxBleScanResult -& {
// Process scan result here.
// When done, just unsubscribe.
scanSubscription.unsubscribe();
Connection
For further BLE interactions the connection is required.
String macAddress = &AA:BB:CC:DD:EE:FF&;
RxBleDevice device = rxBleClient.getBleDevice(macAddress);
Subscription subscription = device.establishConnection(context, false) // &-- autoConnect flag
.subscribe(rxBleConnection -& {
// All GATT operations are done through the rxBleConnection.
// When done... unsubscribe and forget about connection teardown :)
subscription.unsubscribe();
Read / write operations
device.establishConnection(context, false)
.flatMap(rxBleConnection -& rxBleConnection.readCharacteristic(characteristicUUID))
.subscribe(characteristicValue -& {
// Read characteristic value.
device.establishConnection(context, false)
.flatMap(rxBleConnection -& rxBleConnection.writeCharacteristic(characteristicUUID, bytesToWrite))
.subscribe(characteristicValue -& {
// Characteristic value confirmed.
Multiple reads
device.establishConnection(context, false)
.flatMap(rxBleConnection -& Observable.combineLatest(
rxBleConnection.readCharacteristic(firstUUID),
rxBleConnection.readCharacteristic(secondUUID),
YourModelCombiningTwoValues::new
.subscribe(model -& {
// Process your model.
Read and write combined
device.establishConnection(context, false)
.flatMap(rxBleConnection -& rxBleConnection.readCharacteristic(characteristicUuid)
.doOnNext(bytes -& {
// Process read data.
.flatMap(bytes -& rxBleConnection.writeCharacteristic(characteristicUuid, bytesToWrite))
.subscribe(writeBytes -& {
// Written data.
Change notifications
device.establishConnection(context, false)
.flatMap(rxBleConnection -& rxBleConnection.setupNotification(characteristicUuid))
.doOnNext(notificationObservable -& {
// Notification has been set up
.flatMap(notificationObservable -& notificationObservable) // &-- Notification has been set up, now observe value changes.
.subscribe(bytes -& {
// Given characteristic has been changes, here is the value.
Observing connection state
If you want to observe changes in device connection state just subscribe like below. On subscription you will receive the most current state instantly.
device.observeConnectionStateChanges()
.subscribe(connectionState -& {
// Process your way.
For connection debugging you can use extended logging
RxBleClient.setLogLevel(RxBleLog.DEBUG);
Error handling
Every error you may encounter is provided via onError callback. Each public method has JavaDoc explaining possible errors.
More examples
Complete usage examples are located in /sample
compile &com.polidea.rxandroidble:rxandroidble:1.0.0&
&dependency&
&groupId&com.polidea.rxandroidble&/groupId&
&artifactId&rxandroidble&/artifactId&
&version&1.0.0&/version&
&type&aar&/type&
&/dependency&
Contributing
If you would like to contribute code you can do so through GitHub by forking the repository and sending a pull request.
When submitting code, please make every effort to follow existing conventions and style in order to keep the code as readable as possible. Please also make sure your code compiles by running gradle clean checkstyle test .
Maintainers
Dariusz Seweryn (
Pawe? Urban (
Copyright 2016 Polidea Sp. z o.o
Licensed under the Apache License, Version 2.0 (the &License&);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an &AS IS& BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Maintained by
已发表评论数()
已收藏到推刊!
请填写推刊名
描述不能大于100个字符!
权限设置: 公开
仅自己可见
正文不准确
标题不准确
排版有问题
没有分页内容
图片无法显示
视频无法显示
与原文不一致Android 应用启动速度优化之 Systrace 的使用 - 为程序员服务
Android 应用启动速度优化之 Systrace 的使用
By Gracker of
Systrace 简介
Android 应用启动速度优化方式有很多方法,不过在优化之前,需要找到应用启动速度的瓶颈,找到关键点之后,再去优化,则可以达到事半功倍的效果。 Google 提供了很多 Debug 工具来帮助我们优化应用,这其中就包括 Systrace 工具。
Systrace 是 Android 4.1 中新增的性能数据采样和分析工具。它可帮助开发者收集 Android 关键子系统(如 surfaceflinger、WindowManagerService 等 Framework 部分关键模块、服务,View 系统等)的运行信息,从而帮助开发者更直观的分析系统瓶颈,改进性能。
Systrace 的功能包括跟踪系统的 I/O 操作、内核工作队列、CPU 负载以及 Android 各个子系统的运行状况等。在 Android 平台中,它主要由三部分组成:
Systrace 利用了Linux Kernel 中的 ftrace 功能。所以,如果要使用 Systrace 的话,必须开启 kernel 中和 ftrace 相关的模块。
数据采集部分
Android 定义了一个 Trace 类。应用程序可利用该类把统计信息输出给 ftrace。同时,Android 还有一个 atrace 程序,它可以从 ftrace 中读取统计信息然后交给数据分析工具来处理。
数据分析工具
Android 提供一个 systrace.py(python脚本文件,位于Android SDK 目录 /tools/systrace 中,其内部将调用 atrace 程序)用来配置数据采集的方式(如采集数据的标签、输出文件名等)和收集 ftrace 统计数据并生成一个结果网页文件供用户查看。
从本质上说,Systrace 是对 Linux Kernel 中 ftrace 的封装。应用进程需要利用 Android 提供的 Trace 类来使用 Systrace。
关于 Systrace 的官方介绍和使用可以看这里:
Systrace 用法
使用 Systrace前,要先了解一下 Systrace 在各个平台上的使用方法,鉴于大家使用 Eclipse 和 Android Studio 的居多,所以直接摘抄官网关于这个的使用方法,不过不管是什么工具,流程是一样的:
手机准备好你要进行抓取的界面
点击开始抓取(命令行的话就是开始执行命令)
手机上开始操作
设定好的时间到了之后,会将生成 Trace 文件,使用 Chrome 将这个文件打开进行分析
下面介绍了四种使用工具抓取 Systrace 的方法:
In Eclipse, open an Android application project.
Switch to the DDMS perspective, by selecting Window & Perspectives & DDMS.
In the Devices tab, select the device on which to run a trace. If no devices are listed, make sure your device is connected via USB cable and that debugging is enabled on the device.
Click the Systrace icon
at the top of the Devices panel to configure tracing.
Set the tracing options and click OK to start the trace.
Android Studio
In Android Studio, open an Android application project.
Open the Device Monitor by selecting Tools & Android & Monitor.
In the Devices tab, select the device on which to run a trace. If no devices are listed, make sure your device is connected via USB cable and that debugging is enabled on the device.
Click the Systrace icon
at the top of the Devices panel to configure tracing.
Set the tracing options and click OK to start the trace.
Device Monitor
Navigate to your SDK tools/ directory.
Run the monitor program.
In the Devices tab, select the device on which to run a trace. If no devices are listed, make sure your device is connected via USB cable and that debugging is enabled on the device.
Click the Systrace icon
at the top of the Devices panel to configure tracing.
Set the tracing options and click OK to start the trace.
使用命令行工具(
命令行形式比较灵活,速度也比较快,一次性配置好之后,以后再使用的时候就会很快就出结果.
$ cd android-sdk/platform-tools/systrace
$ python systrace.py --time=10 -o mynewtrace.trace sched gfx view wm
从上面的命令可以看到 Systrace 工具的位置,只需要在 Bash 中配置好对应的路径和 Alias,使用起来还是很快速的。另外需要注意的是:
User版本是不可以抓 Trace 的,只有 ENG 版本或者 Userdebug 版本才可以
,是不是又多了一个买 Nexus5 的理由 ^_^。
抓取结束后,会生成对应的 Trace 文件,注意这个文件只能被 Chrome 打开。关于如何分析 Trace 文件,我们下面的章节会讲。
Systrace 命令参数
不论使用那种工具,在抓取之前都会让选择参数,下面说一下这些参数的意思:
-h, –help
Show the help message.(帮助)
-o \&FILE&
Write the HTML trace report to the specified file.(即输出文件名,)
-t N, –time=N
Trace activity for N seconds. The default value is 5 seconds. (Trace抓取的时间,一般是 : -t 8)
-b N, –buf-size=N
Use a trace buffer size of N kilobytes. This option lets you limit the total size of the data collected during a trace.
-k \&KFUNCS&
—ktrace=\&KFUNCS&
Trace the activity of specific kernel functions, specified in a comma-separated list.
-l, –list-categories
List the available tracing category tags. The available tags are(下面的参数不用翻译了估计大家也看得懂,贴官方的解释也会比较权威,后面分析的时候我们会看到这些参数的作用的):
– Graphics
webview – WebView
– Window Manager
– Activity Manager
audio – Audio
video – Video
camera – Camera
hal – Hardware Modules
res – Resource Loading
– Dalvik VM
rs – RenderScript
– CPU Scheduling
– CPU Frequency
– Memory Bus Utilization
– CPU Idle
– Disk input and output
– CPU Load
– Synchronization Manager
– Kernel Workqueues
Note: Some trace categories are not supported on all devices.
Tip: If you want to see the names of tasks in the trace output, you must include the sched category in your command parameters.
\&APP_NAME&
—app=\&APP_NAME&
Enable tracing for applications, specified as a comma-separated list of package names. The apps must contain tracing instrumentation calls from the Trace class. For more information, see Analyzing Display and Performance.
—link-assets
Link to the original CSS or JavaScript resources instead of embedding them in the HTML trace report.
—from-file=\&FROM_FILE&
Create the interactive Systrace report from a file, instead of running a live trace.
—asset-dir=\&ASSET_DIR&
Specify a directory for the trace report assets. This option is useful for maintaining a single set of assets for multiple Systrace reports.
-e \&DEVICE_SERIAL&
—serial=\&DEVICE_SERIAL&
Conduct the trace on a specific connected device, identified by its device serial number.
上面的参数虽然比较多,但使用工具的时候不需考虑这么多,在对应的项目前打钩即可,命令行的时候才会去手动加参数:
我们一般会把这个命令配置成Alias,配置如下:
alias st-start='python /path/to/android-studio/sdk/platform-tools/systrace/systrace.py'
alias st-start-gfx = 'st-start -t 8 gfx input view sched freq wm am hwui workq res dalvik sync disk load perf hal rs idle mmc'
这样在使用的时候,可以直接敲
st-start-gfx
即可,当然为了区分和保持各个文件,还需要加上
-o xxx.Trace
。上面的命令和参数不必一次就理解,只需要记住如何简单使用即可,在分析的过程中,这些东西都会慢慢熟悉的。
Systrace 结果截图
Systrace 抓取结束后,会生成一个文件,这个文件必须使用 Chrome 打开。下面的图是一张典型的应用启动时候的 Systrace 图:
~原创有您,更持久!期待您的支持~
聚焦 Android / Linux
原文地址:, 感谢原作者分享。
您可能感兴趣的代码android:scrollbarStyle可以定义滚动条的样式和位置,可选值有insideOverlay、insideInset、outsideOverlay、outsideInset
推荐一个用了两年的理财产品
我维护的Android经验分享的公众号&40篇
站内推荐文章
阿里、滴滴内推(20k-40k)*16月+
交流讨论区
平安集团 8% 理财产品
那些著名开源库的原理分析
翻.墙.—几十块钱换来大世界
(114,224)(74,159)(72,120)(68,285)(64,685)(59,044)(56,732)(53,638)(52,419)(51,072)
推荐一个用了两年的理财产品
我维护的Android经验分享的公众号&30篇
平安集团 8% 理财产品

我要回帖

更多关于 android redex 的文章

 

随机推荐