Summary of problems encountered during android development [2]. android Summary
36. Code specifications
Http://liuzhichao.com/p/1781.html#more-1781
38. In pure layout, set weight to 1 for all Views except the bottom.
39. Add drawable to the left of editview
If you only add images on the left or right, you can use an attribute of EditeView. android: drawableLeft outputs a drawable on the left of text!
If you want to add images in the middle or at will, you need to rewrite EditView to achieve text-and-image mixing!
40. Encryption Algorithm
41.01-07 15:34:23. 160: E/AndroidRuntime (1932): Caused by: java. lang. UnsatisfiedLinkError: Couldn't load AES: findLibrary returned null
01-07 15:37:43. 240: E/AndroidRuntime (2537): java. lang. unsatisfiedLinkError: Native method not found: com. jetsun. hbfc. core. AESCoder. decryptCNew :() Ljava/lang
/String;
01-07 15:37:43. 230: D/dalvikvm (2537): No JNI_OnLoad found in/data/com. jetsun. hbfc/lib/libAES. so 0x4160abe0, skipping init
01-07 15:37:43. 230: W/dalvikvm (2537): No implementation found for native Lcom/jetsun/hbfc/core/AESCoder;. decryptCNew :() Ljava/lang/String;
Return makes pointer from integer without a cast [enabled by default]
01-07 17:51:47. 520: D/dalvikvm (12438): No JNI_OnLoad found in/data/com. jetsun. hbfc/lib/libAES. so 0x41601a80, skipping init
01-07 17:51:47. 525: I/JNIMsg (12438): jclass = NULL
01-07 17:51:47. 525: I/JNIMsg (12438): step 1: jclass Begin OK!
01-07 17:51:47. 525: I/JNIMsg (12438): encryptC = NULL
01-07 17:51:47. 525: I/JNIMsg (12438): step 2: decryptC new failed
01-07 17:51:47. 525: I/JNIMsg (12438): step 2: decryptC method prepared OK!
41. jni Basics
AndroidAndroid_log_print print functionSource http://blog.csdn.net/sno_guo/article/details/8143050
JNI field descriptor "([Ljava/lang/String;) V" http://fgsink.blog.163.com/blog/static/16716997020124310169911/
Jni function description http://blog.csdn.net/caimouse/article/category/661872/2
Study Tour Based on Android NDK -- C call Java http://www.cnblogs.com/luxiaofeng54/archive/2011/08/17/2142000.html
No JNI_OnLoad found in... Skipping init http://stackoverflow.com/questions/11798054/no-jni-onload-found-in-skipping-init.
Eclipse ndk configuration detailed description http://www.cnblogs.com/chenjiajin/archive/2012/04/12/2444188.html
Learning Journey Based on Android NDK
Summary of ndk highlights
http://www.cnblogs.com/chenjiajin/archive/2012/04/12/2444188.htmlhttp://www.cnblogs.com/luxiaofeng54/archive/2011/08/17/2142000.htmlhttp://blog.csdn.net/caimouse/article/details/6853795http://fgsink.blog.163.com/blog/#m=0&t=1&c=fks_084071081085086066085080094095085080086066082095095068084
42. md5 aes Encryption
AES encryption http://fenglingcorp.iteye.com/blog/586600 with fixed key
Android Rsa encryption plaintext-> Public Key-> ciphertext-> key-> plaintext http://blog.sina.com.cn/s/blog_6568e7880100x8r9.html
Java encryption and decryption art author http://snowolf.iteye.com/blog/379860
Android AES Encryption Algorithm and Its http://blog.csdn.net/randyjiawenjie/article/details/6587986
AES encryption and decryption Android http://www.cnblogs.com/carlosk/archive/2012/05/18/2507975.html
Encryption Method AES encryption mode AES/CBC/PKCS5Padding encryption vector ivsecretkey key encoding method UTF-8
43. Use of proguard
44. socket
Simple Socket usage http://www.cnblogs.com/harrisonpc/archive/2011/03/31/2001565.html
Instant Messaging
Introduction and deployment of openfire Based on xmpp openfire smack [1] http://blog.csdn.net/shimiso/article/details/8816558
Openfire + Spark chat Demo http://www.apkbus.com/android-69413-1-1.html
Openfire Android client implementation http://download.csdn.net/detail/sky_monkey/5820879#comment
45. Audio Codec
FFmpeg Android platform porting-compile http://blog.csdn.net/gobitan/article/details/22750719#reply
46. f5 Load Balancing
48. mobile App Architecture Design
Http://blog.csdn.net/uxyheaven/article/details/38041091
Layered Architecture + MVC http://www.cnblogs.com/Logen/archive/2012/11/08/2760638.html of mobile App Design
49. Android boutique open-source project
Http://blog.csdn.net/caesardadi/article/details/21091645
50. Use GDB to debug JNI code
Android NDK principle of application http://shihongzhi.com/ndk/
Android NDK overview http://hualang.iteye.com/blog/1135105
51. The sogou input method under ubuntu suddenly becomes unavailable because "sogou panel program loading failed. Please restart to use the input method ".
Solution: terminal sogou-qimpanel &
52. Role of layout_alignBaseline
53. android: the true meaning of layout_weight
Android: layout_weight: once this attribute is set for a View (assuming it is valid), the width of the View is equal to the original width (android: layout_width) add the percentage of remaining space!
Http://blog.csdn.net/yanzi1225627/article/details/24667299
54. Instant Messaging
Basic: socket
Principle:
How to Ensure socket persistent connection http://blog.csdn.net/chengyingzhilian/article/details/7633640
Long connection to the server in android [socket] http://blog.csdn.net/yaya_soft/article/details/11778593
1. Android Socket-based chat application (2) http://www.cnblogs.com/-run/archive/2012/04/07/2434837.html! Comments download demoUbuntu 14.04 MySQL server and client installation http://www.linuxidc.com/Linux/2014-10/107912.htmUbuntu install mysql and simple operation http://www.cnblogs.com/zhuyp1015/p/3561470.htmlhow to create a database in mysql database connection steps require google account, currently, you cannot log on to this project as a real-time android Chat Server Based on android + asmack + openfire + xmpp. The project is directly connected to google tal. K server, you can use a Google account to log on to the client. The test requires at least two Google accounts. In the program to add friends to chat 3. Android mobile phone through socket and pc communication http://blog.csdn.net/tobacco5648/article/details/7742295
55. ubuntu displays the port usage, running programs, and forces a process to be disabled.
1. display the program that occupies a port
Lsof-I: 80 lsof-I: 50002. shows whether a program is running. Check that a running program ps-aux | grep "paster" ps-aux | grep apache23. kills a process, and force kill 211119 sudo kill-s 9 21119 to kill a process
56. Set Activity to exit Animation
Use Code settings
You can call overridePendingTransition () to modify the Activity switching animation in real time. Note that the function must be called immediately after startActivity () or finish () is called and only valid once.
57. Sliding return
Android-swipelistview
SwipeBackLayout
SlidingFinish
Since swipebacklayout is used, the friendliness has improved a lot. However, another problem is that the desktop can be viewed on each interface while sliding back, and then the desktop can be jumped to my main interface. Solution: Do not set transparency in the main interface window <item name = "android: javaswistranslucent"> false </item>. Other interfaces are true.
58. Android virtual keyboard pop-up solution to top the Bottom Bar
Solution:
Add android: windowSoftInputMode = "adjustPan" to the corresponding activity of AndroidManifest"
Http://www.linuxidc.com/Linux/2011-10/46070.htm