Problems encountered in Android development "two"

Source: Internet
Author: User

36. Code Specification
http://liuzhichao.com/p/1781.html#more-1781

    1. Disallow Parent Intercept, just in case
      Viewparent parent = GetParent ();
      if (parent! = NULL) {
      Parent.requestdisallowintercepttouchevent (TRUE);
      }

38. In a purely layout, the view other than the bottom is set to weight 1.

39.editview left plus drawable
If you just add a picture to the left or right, you can use one of the properties of Editeview; Android:drawableleft output a drawable on the left side of text, slice!
If in the middle or at random add pictures, you need to rewrite the EditView to achieve the text mix!

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/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/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 Foundation
Android android_log_print print function source code http://blog.csdn.net/sno_guo/article/details/8143050
JNI Field Descriptor "([ljava/lang/string;) V" http://fgsink.blog.163.com/blog/static/16716997020124310169911/
The JNI function explains HTTP://BLOG.CSDN.NET/CAIMOUSE/ARTICLE/CATEGORY/661872/2
Learning journey based on the 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 the Android NDK

Summarize NDK Essentials

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 key
Android Rsa algorithm encryption plaintext, public key, Millimi –> 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 implementation http://blog.csdn.net/randyjiawenjie/article/details/6587986
AES Encryption decrypt Android version http://www.cnblogs.com/carlosk/archive/2012/05/18/2507975.html

加密方式  AES加密模式  AES/CBC/PKCS5Padding加密向量 ivsecretkey 秘钥编码方式 utf-8

Use of 43.proguard

44.socket
Socket simple Usage http://www.cnblogs.com/harrisonpc/archive/2011/03/31/2001565.html
Instant Messaging
OpenFire introduction and deployment based on XMPP openfire smack development [1] http://blog.csdn.net/shimiso/article/details/8816558
Openfire+spark Chat Demo http://www.apkbus.com/android-69413-1-1.html
OpenFire's Android Client implementation http://download.csdn.net/detail/sky_monkey/5820879#comment

45. Audio encoding and decoding
FFmpeg Android Platform porting-compiling article http://blog.csdn.net/gobitan/article/details/22750719#reply

46.F5 Load Balancing

    1. -–app Architecture and navigation design of palm-pointing signpost http://www.yixieshi.com/ucd/13188.html
      The steps of the app navigation design are the following three stages:

      1. App Framework: Information architecture or Task analysis

      2. Frame-level judgment: flat vs Tree

      3. Navigation specific representation: control form and placement position

48. Mobile App Architecture Design
http://blog.csdn.net/uxyheaven/article/details/38041091
Mobile app design layered architecture +mvc http://www.cnblogs.com/Logen/archive/2012/11/08/2760638.html

49.Android Boutique Open Source project
http://blog.csdn.net/caesardadi/article/details/21091645

50. Debugging JNI Code with GDB
Android NDK Application Principle http://shihongzhi.com/ndk/
NDK Development Guide-android NDK Overview http://hualang.iteye.com/blog/1135105

51.ubuntu Sogou Input method, the use of the process suddenly appeared "Sogou panel program load failure please restart to use the input method" resulting in the inability to use
Solution: Terminal Sogou-qimpanel &

The role of 52.layout_alignbaseline

The true meaning of 53.android:layout_weight
The true meaning of android:layout_weight is that once the view has this property set (assuming it is valid), the view width is equal to the original width (android:layout_width) plus the amount of space remaining!
http://blog.csdn.net/yanzi1225627/article/details/24667299

54. Instant Messaging

Base: Socket
Principle:
How to ensure a long socket connection http://blog.csdn.net/chengyingzhilian/article/details/7633640
Long-connected "socket" http://blog.csdn.net/yaya_soft/article/details/11778593 on the server in Android

1.Android 基于Socket的聊天应用(二)  http://www.cnblogs.com/-run/archive/2012/04/07/2434837.html#!comments   下载demoUbuntu 14.04下MySQL服务器和客户端的安装  http://www.linuxidc.com/Linux/2014-10/107912.htmUbuntu 安装mysql和简单操作   http://www.cnblogs.com/zhuyp1015/p/3561470.html如何在mysql中创建数据库  http://www.360doc.com/content/11/0719/18/2104556_134548635.shtmlJava连接MYSQL 数据库的连接步骤  http://database.51cto.com/art/201006/204217.htm2.基于XMPP的即时聊天项目  需要google账号,目前无法登录 本项目是一套基于android+asmack+openfire+xmpp的安卓即时聊天服务端,项目直连google talk服务器,可以使用谷歌帐号登录客户端,测试需要至少两个谷歌帐号。在程序里添加好友即可聊天3.Android手机通过socket与pc通信 http://blog.csdn.net/tobacco5648/article/details/7742295

55.ubuntu displays port occupancy, running programs, and forcing a process to close
1. Show programs that occupy a port

lsof -i:80lsof -i:50002. 显示某个程序是否在运行,查看某个运行的程序ps -aux | grep "paster"ps -aux | grep apache23. 杀掉一个进程,和强制杀掉一个进程kill 211119sudo kill -s 9 21119

56. Set activity into exit animation
Using Code settings

You can modify the activity's toggle animation in real time by calling Overridependingtransition (). Note, however, that the function must be called immediately after calling StartActivity () or finish () and only once.

57. Slide Back
Android-swipelistview
Swipebacklayout
Slidingfinish

自从用了swipebacklayout, 友好度提高了许多。但是又遇到一个问题 如下每个界面在滑动返回时候都能够看到桌面 ,然后才跳到我的主界面。 解决方法: 主界面窗口不要设置透明 <item name="android:windowIsTranslucent">false</item>,其他界面true

58.Android Virtual keyboard pop up the bottom bar to the top of the solution
Workaround:

Add: Android:windowsoftinputmode= "Adjustpan" in the corresponding activity of androidmanifest
Http://www.linuxidc.com/Linux/2011-10/46070.htm

Problems encountered in Android development "two"

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.