Problems encountered in Android development "six"

Source: Internet
Author: User

Genymotion Crash after a few minutes

E/eglcodeccommon (2163): WriteFully:failed:Broken pipe

Http://stackoverflow.com/questions/23855115/genymotion-crash-after-a-few-minutes

It‘s not really caused by your application, so don‘t worry.It often happens when you computer goes in sleep mode and when you come back Genymotion will throw this exception (it happens to me very often).In your specific case sounds like the device goes in sleep mode so a way to fix it is simply to enable "Always stay awake" in developers options.
192. A WebView method was called on thread ' Timer-1 '. All WebView methods must is called on the UI thread. The future versions of WebView could not be the support use on the other threads.

Java.lang.IllegalStateException:Timer was canceled
At Java.util.Timer.scheduleImpl (timer.java:561)
At Java.util.Timer.schedule (timer.java:481)
At com.jetsun.hbfc.activity.base.commonwebviewactivity$3.onpagestarted (commonwebviewactivity.java:178)

Webview Reload page Get force close

Change your timertask to the following:

New TimerTask () {
@Override
public void Run () {
Runonuithread (New Runnable () {
public void Run () {
Wvnovamenzacammera.reload ();
}
});
}
}

193.http://blog.csdn.net/xieyuooo/article/details/8607220

The true principles & use of timer and TimerTask

194.http://233.io/article/1057296.html fragment communication related issues, why does the new fragment not pass parameters in the constructor method 195.Add a new file in Intellij doesn ' t Add to Subversion
http://stackoverflow.com/questions/2817452/add-a-new-file-in-intellij-doesnt-add-to-subversion    Go to File -> Settings -> Version control -> Confirmation -> When files are created You‘re probably looking for "Add silently".
196. Use Android Studio lint to clear the unused resource files http://waychel.com/ shi-yong-android-studiode-lintqing-chu-wu-yong-de-zi-yuan-wen-jian/197. Android app release When you hit the signature package, an error occurred: "XXX" is not translated in "AF" (Afrikaans), "AM" (Amharic), "Ar" (Arabic) .....

Eclipse
http://blog.csdn.net/u012264122/article/details/39371343

Androidstudio Http://stackoverflow.com/questions/20699147/gradle-build-fails-on-lint-task

// This is important, it will run lint checks but won‘t abort build  lintOptions {      abortOnError false  }if abortOnError false will not resolve your problem, you can try this.lintOptions {    checkReleaseBuilds false}
198.

Improve the performance of Ubuntu Linux operating system

1.六招让你的Ubuntu马上提速  http://article.yeeyan.org/view/205625/294577       Where did the startup-applications-preferences program go?  ubuntu satartup applications preference     http://askubuntu.com/questions/159887/where-did-the-startup-applications-preferences-program-go    The if you can‘t find the program anywhere, try running gnome-session-properties from the command line (or alt+f2).    If it‘s not installed, I‘m sure you can install the package gnome-session-properties.2. 将localhost化名为主机名    据说这个方法可以改善使用Ubuntu一段后,在GNOME中启动应用程序变慢的问题    # vi /etc/hosts    127.0.0.1 localhost    127.0.1.1 Ubuntu    ===>    127.0.0.1 localhost Ubuntu    127.0.1.1 Ubuntu    注:在第一行末尾加上主机名,也就是第二行的那个名字。3.安装preload    可以把一些常用到的lib库和应用程序预加载到内存,以提高程序的启动速度    # apt-get install preload
199.volley because of slow network access, resulting in a two-time access phenomenon http://stackoverflow.com/questions/22428343/ Android-volley-double-post-when-have-slow-request?
    http://stackoverflow.com/questions/3352424/httpurlconnection-openconnection-fails-second-time
200. When you want a child control with a height value of less than ScrollView to fillparent, a separate definition android:layout_height= "fill_parent" does not work, and the Fillviewport attribute must be added, This label has no meaning when the height of the child control is greater than the height of the ScrollView. 201.activity Flag_activity_reorder_to_front cannot startactivity http://blog.csdn.net/mingli198611/article/details/ 8678513202. Genymotion Simulator Run Project Jpush error Jpush couldn ' t load Jpush:findlibrary returned NULL

At Cn.jpush.android.api.JPushInterface.init (Unknown Source)

203.androidstudio Check for updates. Android Studio supports automatic check for updates. There are times in a week when the official version has not been released. You can set the type of check to control the type of update.
Settings --> Updates 。勾选 Check for updates in channel ,即开通了自动检查更新。你可以禁用自动检查更新。右侧的列表,是更新通道。Stable Channel : 正式版本通道,只会获取最新的正式版本。Beta Channel : 测试版本通道,只会获取最新的测试版本。Dev Channel : 开发发布通道,只会获取最新的开发版本。Canary Channel : 预览发布通道,只会获取最新的预览版本。rc  release candidates

In the above 4 channels, the Stable channel is the most stable, the problem is relatively small, Canary channel can obtain the latest version, the problem is relatively more.

204.androidのactivity's ListView Component Quick Drag android:fastscrollenabled= "true" android:focusable= "true" 205. Lint:how to ignore "isn't translated in" errors?

Http://stackoverflow.com/questions/11443996/lint-how-to-ignore-key-is-not-translated-in-language-errors
to ignore a Gradle build add this to the Android section of your build file:

lintoptions {
Disable ' missingtranslation '
}

Authentication Error errorcode:201 UID:-1 appid-1 msg:app disabled by user

Ubuntu Apktool 2.0 Exception in thread "main" Brut.androlib.err.UndefinedResObject

Keytool-list-keystore Sportsapp.keystore

206.Exception in thread "main" brut.androlib.AndrolibException:Could not decode ARSC file
  at Brut.androlib.res.decoder.ARSCDecoder.decode (arscdecoder.java:56) at BRUT.ANDROLIB.RES.ANDROLIBRESOURCES.GETRESPACKAGESFROMAPK (androlibresources.java:491) at brut.androlib.res.AndrolibResources.loadMainPkg (androlibresources.java:74) at Brut.androlib.res.AndrolibResources.getResTable (androlibresources.java:66) at brut.androlib.Androlib.getResTable (androlib.java:50) at brut.androlib.ApkDecoder.getResTable (apkdecoder.java:189) at Brut.androlib.ApkDecoder.decode (apkdecoder.java:114) at Brut.apktool.Main.cmdDecode (main.java:146) at Brut.apktool.Main.main (main.java:77)  

caused by:java.io.ioexception:expected:0x001c0001, got:0x00000000
At Brut.util.ExtDataInput.skipCheckInt (extdatainput.java:48)
At Brut.androlib.res.decoder.StringBlock.read (stringblock.java:44)
At Brut.androlib.res.decoder.ARSCDecoder.readPackage (arscdecoder.java:102)
At Brut.androlib.res.decoder.ARSCDecoder.readTable (arscdecoder.java:83)
At Brut.androlib.res.decoder.ARSCDecoder.decode (arscdecoder.java:49)
... 8 more

It seems there ' s some problem in building the resources while recompiling the APK. What if you decompile your apk with this command

Apktool D-f-R apkfilename.apk
Here-f is to replace previous decompiled apk ' s code and-r are to ignore the decompiling of resources.

This would prevent the resources from being decompiled and would simply copy the same resources when you recompile the APK.

208 Android SHARESDK share how to get the app signature you need to create your app

A tool signature generation tool provided on this page
Https://open.weixin.qq.com/cgi-bin/readtemplate?t=resource/app_download_android_tmpl&lang=zh_CN
Android Resources Download
Development Kit
The libraries and files needed to develop third-party applications. Click to download
Sample code
Contains a complete example project. The use of this example can be found in the Android platform get started Guide: [email protected]. Click to download
The signature generation tool is used to get the APK package that is signed by the third-party app installed on the phone. Click to download

Can be a string, similar to:
Application Signature: 049a9fde46bfc5087f3825582208b248
Install this app to get an Android software already installed on the phone, based on the package name of the software, similar to: Com.demo.AppX to find this software, and to obtain the application signature of this software.
There is also a tool in
Http://wiki.open.qq.com/wiki/mobile/SDK Download
android_sdk_v2.3.1 's Tools directory has a get signature. APK, this can also be obtained, but I test found that only a part of the native application, some applications can not be found, it is troublesome.

209.:app:lintvitalrelease

Failed converting ECJ parse tree to Lombok for file/home/yyb/work/boshitong/trunk/hbfc/android/comment/hbfc-as2/app/ Src/main/java/com/jetsun/hbfc/widget/ioc/abiocview.java
Java.lang.ClassCastException:lombok.ast.Annotation cannot is cast to lombok.ast.Expression

Ignoring innerclasses attribute for an anonymous inner class211. WebView on Android4.4 's phone onpagefinished () callback will be called more once (for specific reasons to be traced)

It is necessary to avoid doing business operations in onpagefinished (), which will cause repeated calls and may cause logical errors.
Onpagestarted and onpagefinished will load two times

Problems encountered in Android development "six"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.