2014年1月5日星期日

[Android] Through the Intent to open weixin, reported the wrong signature . Is not to advance a signature ?

        Intent localIntent2 = new Intent();
        localIntent2.setAction("android.intent.action.MAIN");
        localIntent2.addCategory("android.intent.category.LAUNCHER");
        localIntent2.addFlags(268435456);
        localIntent2.setClassName("com.tencent.mm", "com.tencent.mm.ui.LauncherUI");


is not the first signature ? Who did ? ?
------ Solution ---------------------------------------- ----
do not know have not tried
------ Solution -------------------------- ------------------
not done Android
------ Solution --------------- -----------------------------

------ Solution ------------------- -------------------------
not done , I do not know
------ Solution ------ --------------------------------------

------ Solution ---------- ----------------------------------
do not know will not ah. Just come Replies
------ Solution ------------------------------------ --------
no correct answer , you are sharing the rhythm to do ?
------ Solution ---------------------------------------- ----
I do not ah !
------ eference --------------------------------------- < br>
  The reply was deleted administrator at 2013-12-23 10:35:59

------ eference ------------------------------------ ---
  The reply was deleted administrator at 2013-12-23 10:36:23

------ eference ------------------------------------ ---

- ---- eference ---------------------------------------

------ eference ---- -----------------------------------
understand Bangding
------ eference - --------------------------------------

------ eference ---------- -----------------------------
http://blog.csdn.net/abin_gha/article/details/6274303
refer this

[Android] Share based on Qt and I made a small program

GLSL This is my first contribution to the times ......
Regardless , this time to tell you about is that I made ​​based on Qt and GLSL shader applet. We all know that if they produce a shader editor, time-consuming , but fortunately for OpenGL Qt provides a good package, so you can use Qt -based entry-level write powerful applications. Do not believe look:

can write shaders GLSL produced by my editor ( supports syntax highlighting ) .

Here is what I use to complete the gray shader effects :

This is the shader code :

we can try .
Here is what I wrote the blog , you can stroll around more than a look .
based on Qt and GLSL shader examples < / span>
written in Qt-based programs need to pay attention GLSL points
The following is a demo program and source code :
demo
source code
If you have git, you can also try to look into the local clone . I created a code repository on gitorious.
based on Qt and GLSL shader examples of
Finally we have any comments and suggestions you can post on the blog even a demo program that comes with feedback function of the guestbook ah.
------ Solution ---------------------------------------- ----
good top praise , words too
------ Solution ------------------------ --------------------
praise , more recently, learning OpenGL
------ Solution ----------- ---------------------------------
Oh , the top one . Ha ha.
------ eference --------------------------------------- < br>
international practice , grab the sofa by a big reward !
------ eference --------------------------------------- < br> are needed to learn this knowledge , thank you for sharing

[Android] QSound problems playing sounds

I created a Qt quick project , which use QSound play a sound,
Now the sound files into the resources qrc file.
calling the following code

QSound sound(":sound/testsound.mp3");
        sound.play();

only beep once , did not play a sound file .
I checked the path is not wrong , how to modify how it can play a sound ? ?
------ Solution ---------------------------------------- ----
QSound does not support resource files

only play files on disk .
------ Solution ---------------------------------------- ----


should support it.

problem here is QSound does not support mp3 format file playback .
document is described:
Microsoft Windows The underlying multimedia system is used; only WAVE format sound files are supported.
X11 The Network Audio System is used if available, otherwise all operations work silently. NAS supports WAVE and AU files.
Mac OS X NSSound is used. All formats that NSSound supports, including QuickTime formats, are supported by Qt for Mac OS ; X.
Qt for Embedded Linux A built-in mixing sound server is used, accessing / dev / dsp directly. Only the WAVE format is supported.
Symbian CMdaAudioPlayerUtility is used. All formats that Symbian OS or devices support are supported also by Qt.

landlord can try to sound resource converted to wav format to use. If you must use the mp3 on the use of other types of bars , QSound not do
------ eference -------------------------- -------------

Before
I can not play with the absolute path , issued only beep is heard .
If you want to play the voice of the resources
, what to use it?
------ eference --------------------------------------- < br> Qt version there are many online mp3 player , you can download point look .
before seen others use Phonon decode mp3
------ eference ---------------------------- -----------


I found sound.isAvailable pass the test ( ) returns false, the help system is no corresponding device , which should how to solve ah ?
Whether mp3 or WAV can not put ah.
------ eference --------------------------------------- < br> online search , or use the phonon solve it
------ eference -------------------------- -------------


wav format I have tested successfully .
------ eference --------------------------------------- < br> code which will not be a problem
------ eference ------------------------------ ---------


Thank you for your reply , I still use the phonon do it.
------ eference --------------------------------------- < br> QSound can not play much of a wav, small files did not ask

[Android] Little doubt

android interface Such an interface is how do is listview listview do not have to do with the adapter bindings I think this is not necessary ah. Because only turn on the controls from javaweb not understand thank you
------ Solution ---------------------- ----------------------
look preferenceActivity it
------ Solution ----------- ---------------------------------
with SettingsPreferenceFragment achieve, you look at this class will understand. . . . . . . android source code has
------ eference ------------------------------------- -
people do not come ah thank you ,
------ eference ---------------------- -----------------
Thank you . .
------ eference --------------------------------------- < br> Thank you, thank you very much is such
------ eference ------------------------------- --------
very grateful that this is to use a checkbox inside listview good trouble traversing Thank you great help

[Android] visual studio 2012 deployment errors occur

When I installed win 8 Professional Edition , the compiler is visual studio 2012, windows phone sdk 8.0 , the latter does not create a project simulator with real test , compile direct deployment errors occur ,
1> to deploy the application to the device failed.
1> Error: Exception from HRESULT: 0x89721800
get one in the afternoon , reloading several versions will not work, check the Baidu , etc. can not be resolved , I hope someone help , tell me what the problem is , how to solve , thank you ~ ~ < br> ------ Solution ----------------------------------------- ---
by removing % LOCALAPPDATA% \ Microsoft \ Phone Tools \ CoreCon \ 10.0 to resolve
Please backup before deleting


------ eference ------------------------------------ ---

this thing where , ah, I have seen this time to solve the problem , but could not find , I hope to inform , thank you.
------ eference --------------------------------------- < br> % LOCALAPPDATA% \ Microsoft \ Phone Tools \ CoreCon \ 10.0

stick to the Explorer address bar
------ eference ----------------------------- ----------

I deleted this , but still useless eh , how do ?
------ eference --------------------------------------- < br>
I deleted this , but still useless eh , how do ?  
simulator not loaded ? You is not never open virtualization and two address translation .

then reinstall the next SDK try again.

never met this problem , you can only try.
------ eference --------------------------------------- < br>
I deleted this , but still useless eh , how do ?          
simulator not loaded ? You is not never open virtualization and    two address translation .   
  
then reinstall the next SDK try again.   
  
never met this problem , you can only try.  
I have to reinstall 2 times , or useless, the simulator is not installed , and that there is no option but to start , at least there is someone else Devices' .
------ eference --------------------------------------- < br> your CPU is Which ? estimated that it does not support two address translation ,
------ eference ---------------------- -----------------

CPU is I3 , and did not understand why, thank you so much to answer . .
------ eference --------------------------------------- < br>
like deleting the wrong place , and now the line, thank you ~ ~
------ eference --------------------- ------------------

like deleting the wrong place , and now the line, thank you ~ ~  
quick solution under ah , ah buddy said
------ eference ---------------------- -----------------
quick solution , said the next ah.

[Android] OpenGL ES2.0 in onDrawFrame drawing with thread you?

RT, I want to set a thread after each call Thread.sleep unfinished (20 ) to allow the thread to sleep
then continue painting until it is fully completed matrix transformations , to enlarge the animation effect .
but the program has been a crash , so my idea of code impress , seeking Great God Guidelines

public void onDrawFrame(GL10 gl){
    GLES20.glClear(GLES20.GL_DEPTH_BUFFER_BIT|GLES20.COLOR_BUFFER_BIT)
    Thread Trans_Thread = new Thread(){
          //zMove用来判定z轴位移量
          float zMove = 0f;
          public void run(){
               boolean flag = true;
               while(flag){
                   画四个图标
                   for(int i=0;i<4;i++){
                       //所有矩阵的定义和操作都放在了MatrixState.java里,纯方法实现
                       //矩阵平移,以便图标一字铺开。
                       MatrixState.translate(i*2f,0,0)
                       //被聚焦的图标会有动画放大的效果
                       if(FocusPosition == i){
                              //进行矩阵缩放,即图标缩放
                             MatrixState.scale(1.3f/50,1.3f/50,1.3f/50);
                       }
                       //Square类的绘制函数
                       Square.drawSelf();   
                   }
                   //判定是否已经缩放完成
                   zMove = zMove + 1.3f/50;
                   //运行标志设为false
                   if(zMove>=1.3f) flag = false;
                   try(Thread.sleep(20);)catch(Exception e){System.out.println(e);}
               }
          }
    }
    Trans_Thread.start();
}


In the absence of additional threads can be stable drawing , but did not focus on the enlarged icon animation .
Great God seek advice
------ Solution --------------------------------- -----------
I think the thread should be placed outside onDrawFrame, then postInvalidate () to inform the system update
------ eference -------- -------------------------------

thanks, buddy, this problem has been solved. Because onDrawFrame function itself is constantly refreshed, as long as the appropriate control parameters can be in it . Your reply this point be rewarded .

android shortcut for the application to set

android how to implement procedures for the application to add shortcuts, for example, I would like to turn the camera on this application , you can simply press ctrl + A shortcut to open without having to create a shortcut , and then click on the shortcut ?
------ Solution ---------------------------------------- ----
you use the soft keyboard, press ctrl it?
program inside their own monitor key events of their own to start the corresponding activity bar
------ Solution ---------------------- ----------------------
@ Override
public boolean onKeyDown (int keyCode, KeyEvent event) {
}
This can listen button
android inside KeyEvent.KEYCODE_CAMERA, KeyEvent.KEYCODE_CALL and other events, if it is to write their own programs , you can also define your own key events .
can listen to the key event, start the corresponding activity or service.
------ eference --------------------------------------- < br> how Meirenhuida ah ? Hard?
------ eference --------------------------------------- < br> onkeydown background when no service in this method ,

[Android] Please predecessors under the expert guidance of new

When I first came internship , the company 's older brother gave me a cell phone company to do system source code, let me change Mms, Contacts app several modules .
now facing tens of thousands of lines of code, plus a small function do not know how to start.
In addition to ask my colleagues to ask , what is the book in this regard , in this respect refers to the system's own app source code analysis .
I now want to add a button to the contact list entries , but for a long time , xml layout did not find , estimated to be written in java . . .
seek help.
------ Solution ---------------------------------------- ----
see documentation to see the screen design, these should have it
------ Solution --------------------- -----------------------
this has layout yet. . I just graduated this practice also allows to change , so that added a check box in the contacts , the landlord will be able to find the next track with Degbug , Eclipse global search for the information you see , a little bit of track , definitely find !
------ Solution ---------------------------------------- ----
you still be familiar with the source architecture android system , and then deep right, if we direct that the overall depth on the whole mess !
------ Solution ---------------------------------------- ----
" now I want to add a button to the contact list entries , but for a long time , xml layout did not find , estimated to be written in java .. ."
---- good, not xml layout , but dynamically generated code , you'll see this file : ContactListItemView.java
------ eference --------- ------------------------------

has been changing for the better , which is reserved showCallButton this method

Push to talk - 3 minutes to run up the open source Android mobile chat system

Push to talk Overview PushTalk Overview
push to talk is a push -based Aurora Android phone chat system. Chat and peer support group chat . Currently includes Android client and Java server side. Three minutes you can run up the whole system .


open source project official website

http://github.com/good-life/pushtalk



functions and features
feature list
• channel in group chat
• peer chat with other users
• chat support text, facial expressions , URL, etc.
• Create a channel , join channel
• Registered users ( no password required )
• My Channel
• My recent chat
• chats cache
• client selects chat server , chat server added

Features
• simple to the extreme http chat server : run up a jar
• Lightweight Client: chat interface using Webview way
• downlink message push ( a free third-party Android Push Service ) , uplink messages using http requests based JPush way to achieve

chat server
use push to talk server-side Java language, based on the most simple and practical open source framework.

• http server using Jetty: lightweight Java Servlet container.
• database using H2: lightweight Java memory / file database.
• page templates using Freemarker: lightweight Java page template engine.
• When packaged as an integrated whole jar package (including all dependencies )
To run the server-side push to talk , in the file download page https://github.com/good-life/PushTalk/downloads/ download github push to talk server jar file.

run the server using the following command :

java-Dfile.encoding = UTF-8-jar pushtalk-server-with-dependencies.jar
Note: The actual name of the file back with a version number generally .

After the above command is run :

• an http server started , listening port is 10010
• Input http://localhost:10010 browser interface can be accessed
• To properly run the server , client access through
push to talk server default port 10010 . You can specify another port after the order . For example, the following command specifies the use of 10,011 to start a chat server push :

java-jar pushtalk-server-with-dependencies.jar 10011

Android client
client running, the file download page at github https://github.com/good-life/PushTalk/downloads/ download Android apk installation to Android phone can be.

installed to the phone you can compile your own / client-android project after .

default built- official chat client server address . You can also directly add a new client server , select a new chat server .

If you have a server resources , you can long run , you are welcome to set up push chat server, add the following pages. After the test no problem, will be selected preset to the client code :

https://github.com/good-life/PushTalk/wiki/PushTalk-Third-Party-Servers

developer support
developers are welcome to join the open source project , we work together to continue to plump , perfect push to talk .

I was interested in his spare time to develop because the push to talk , considering the many IM takes time, so please understand, does not provide any IM communication. I hope you exchange the following manner :

• Email: pushtalk.org @ gmail.com
• Project Wiki: https://github.com/good-life/PushTalk/wiki
• Project Bug: https://github.com/good-life/PushTalk/issues
• PushTalk Channel : pushtalk, report bug, new features discussions
code submitted by: Please submit Bug fixes, the diff on paper mail to me . After co- times, I can add you to the contributors of the project in years, you would feel free to submit code.

You can also free to fork the project themselves to release a new version.

push to talk using the open-source protocol : Apache License 2.0


------ Solution ------------------------------------ --------
good ah. . . . . . . . . . . . . . . Learn
------ Solution - -------------------------------------------
sharp , slowly under study
------ Solution -------------------------------------- ------
mark , said that the future does not necessarily need it
------ Solution ------------------ --------------------------
really powerful, must have covered up slowly Research
------ Solution --------------------------------------------
function is not too many ah , but the basic chat functions have the good
------ Solution --------------------------- -----------------
amazing ah , the key is to develop this idea quite stick
------ Solution -------- ------------------------------------
pretty good, go home to see
------ Solution ------------------------------------------- -
Aurora push can also be used to develop timely and chat applications it? The chat system so what's the difference between it and the micro-channel
------ Solution ------------------------------- -------------
which develop good ideas , it is worth learning
------ Solution ---------------- next ----------------------------
MARK! Also have the opportunity to contribute to open source
------ Solution -------------------------------- ------------
 pretty good, learning under this knowledge
------ Solution -------------------------- ------------------
good, a little later to the project site to see
------ Solution --------- -----------------------------------
very good ah slowly Research go
------ Solution --------------------------------------- -----
powerful powerful , I also have the opportunity to try so
------ Solution --------------------------------- -----------
uplink write your own http, pushed downward by Aurora
------ Solution - -------------------------------------------
ask how to download of ?
------ eference --------------------------------------- < br>
  The reply was deleted administrator at 2013-01-24 13:14:27

------ eference ------------------------------------ ---
top, go home to see !
------ eference --------------------------------------- < br>
really good ah, go look at the code first
------ eference --------------------------- ------------
  The reply was deleted administrator at 2013-01-28 10:59:01

------ eference ------------------------------------ ---
to the force , the top
------ eference ------------------------------ ---------
  The reply was deleted administrator at 2013-02-23 13:05:28

------ eference ------------------------------------ ---
Thank collection ! ! ! !
------ eference --------------------------------------- < br> really want to know is how do admire the landlord ah
------ eference ----------------------- ----------------
Mark. Thank you for sharing .
------ eference --------------------------------------- < br>
Aurora can push , and if you wanted to use it, you will die miserable , Aurora immediacy is not too high
------ eference ------- --------------------------------
 powerful learning Oh
------ eference ---------- -----------------------------
learn , somewhat difficult .
------ eference --------------------------------------- < br> a good thing , learning to learn.
------ eference --------------------------------------- < br> pretty good idea of
------ eference ---------------------------------- -----
really folk masters ah
------ eference ---------------------------- -----------
expert in civil ah
------ eference ---------------------- -----------------
supported open source project
------ eference ----------------- ----------------------
amazing! ! ! Master ah
------ eference -------------------------------------- -
learn ,
------ eference - --------------------------------------
really good, support it
- ----- eference ---------------------------------------
worship
------ eference - --------------------------------------
me and my little friends are scared spent
------ eference -------------------------------------- -
+10086
------ eference ---------------------------------- -----
canola flower < br> ------ eference ---------------------------------------
+1024
------ eference - --------------------------------------
really abuse
------ eference - --------------------------------------
really powerful, I came to play
------ eference ---------------------------------------
run up the system for 3 minutes, really abuse
------ eference ------------------------------- --------
use push to talk server-side Java language, based on the most simple and practical open source framework.
------ eference --------------------------------------- < br> +10086
------ eference ------------------------------------ ---
tongs Liu
------ eference - --------------------------------------
  The reply was deleted administrator at 2013-10-30 08:19:23

------ eference ------------------------------------ ---
good idea
----- - eference ---------------------------------------
see and learn about < br> ------ eference ---------------------------------------
I want to IM contact
------ eference - --------------------------------------
page templates using Freemarker: lightweight Java class page template engine.

------ eference ------------------------------------ ---
push to talk server default port 10010 .
------ eference --------------------------------------- < br> to run the server-side push to talk , in the file download page https://github.com/good-life/PushTalk/downloads/ download github push to talk server jar file.
------ eference --------------------------------------- < br> • lightweight client: chat interface using Webview way

[Android] [Share] phonegap push- message push to achieve

Recently been studying a variety of push , ios due to be apns, relatively easy to implement, but andriod more trouble . After reading many solutions , gcm obviously does not work, other options is confused , but needs to be done to develop the second time , too much trouble , and later choose to use third-party services to achieve a push .

currently do have a good push and Aurora .

a push optimal but need to pay . For us this little app, simply can not cope , then decisively choose Aurora .

The following are my phonegap sdk integration process with the aurora .


  1. registered aurora developer account , and register the application information .


create an account after entering the aurora push platform , the first application of the display is to create an interface . Fill in your application name, and the name of this two Android package on it.


with creating successful , enter " Application Details " display. The lower right corner of the interface , you can see behind "appkey" will be used .



  2, download the sdk package. Line integration


specific processes can be seen following documents , of course phonegap integration and this is somewhat different.

http://docs.jpush.cn/pages/viewpage.action?pageId=557214


  3.SDK integration steps

1, import the SDK development kit to your own application project

decompress jpush-sdk_v1.xyzip integrated archive
copied to the project under libs/jpush-sdk-release1.xyjar libs / directory
copy libs/armeabi/libsys1.xyso to the project libs / armeabi directory ( if your project has libs/armeabi-v7a this directory, please libsys1.xyso also copy to this directory )

demand note here is: import into the package after package must take configuer building path.
2, Configuration AndroidManifest.xml

According compressed bag AndroidManifest.xml SDK sample files to configure AndroidManifest.xml application project .

The main steps are:

copy notes as "Required" part
replace the notes as part of the package name , replacing the current package name of the application
Replace the AppKey registered on the Portal of Key applications, such as (9fed5bcb7b9b87413678c407)






package = "Your Package"

android: versionCode = "100"

android: versionName = "1.0.0"

>

<-! Required ->



<-! Required ->





















<-!. Optional Required for location feature ->
















android: icon = "@ drawable / ic_launcher"

android: label = "@ string / app_name"

android: name = "Your Application">

<-! Required ->


android: name = "cn.jpush.android.service.PushService"

android: enabled = "true"

android: exported = "false">















<-! Required ->


android: name = "cn.jpush.android.service.PushReceiver"

android: enabled = "true">





















<-! Required SDK core function - >


android: name = "cn.jpush.android.ui.PushActivity"

android: theme = "@ android: style / Theme.Translucent.NoTitleBar"

android: configChanges = "orientation | keyboardHidden">













<-! Required SDK core function - >


android: name = "cn.jpush.android.service.DownloadService"

android: enabled = "true"

android: exported = "false">



<-! Required SDK core function - >



<-!. Required For publish channel feature ->

<-! JPUSH_CHANNEL is to facilitate the development of statistical APK distribution channels. - >

<- example: ! - >

<-! sent to the Google Play APK can be set to google-play; ->

<-! sent to other markets APK can be set to xxx-market. - >

<-! Currently the report is not yet open channel statistics . - >



<-!. Required AppKey copied from Portal ->









It should be noted that: some had previously been added xml information , this time to eleven control this inside information a one added.

Note the order :




3, add the code

JPush SDK API interfaces provided are mainly concentrated in the cn.jpush.android.api.JPushInterface class.

accordance with the following methods to modify :



4, tests confirm

confirm the required permissions have been added . If permission is not necessary to add, log an error .
confirm AppKey ( on the Portal generated ) is correctly written Androidmanifest.xml.
recognized in the program start time to call the init (context) Interface
confirmation test phone ( or emulator ) has been successfully connected to the network
client shortly after the call init , if all goes well , there should be a successful login log information
start the application , the Portal to send a custom message or prompt notification bar to the application . Please refer to the Management Portal.
within a few seconds , the client should be notified under the definition of a message being sent or

If the SDK is working properly , the log information is as follows:

As shown, the client initiates divided into four steps :

check the metadata of appKey and channel, and if not, then failed to start effectiveness
initialization JPush SDK, check the JNI library files , etc. , if the library file is invalid , then failed to start
check Androidmanifest.xml, if you have permission Required does not exist , then failed to start
connect to the server login, if there is a network problem, login fails, or three steps in front of a problem , do not start JPush SDK


As long as the test is successful , ok, you can go to manage Portal, to send the information. No accident, then , will be able to receive the information .

Of course, this is just a simple push messaging features , some of the specific application , you can then refer to the official api documentation to their development .

Author : Ye Lan rain

------ Solution ------------------------------------ --------
advertising ah, China mobile has AOI
------ Solution ---------------------- ----------------------
access points.
I also used to push the aurora is very good I have a php asp web push code
If you need to add me to you q 10047588
------ Solution ------------------- -------------------------
very detailed, learn about the
------ Solution ------ --------------------------------------
 I realize I get when it comes to mistakes, saw the landlord did not know she was still not enough sharing careful ah
------ Solution ---------------------------------------- ----
that the landlord has not tried androidpn? aurora is not a good lot of it
------ Solution ----------------- ---------------------------
seemingly quite simple integration process , learning the
------ Solution --------------------------------------------
good thing , the aurora is free?
------ Solution ---------------------------------------- ----
documents in great detail , basically able to understand the development of their own to get, very good
------ eference ---------------- -----------------------
 The original can be as simple as the landlord to force ah
------ eference ---------------- -----------------------
 powerful ah, learn
------ eference -------------------- -------------------
simple ah, stability is not enough to push the message is timely arrival of it ?
------ eference --------------------------------------- < br> just need the first collection it.
------ eference --------------------------------------- < br> tried it, very timely
------ eference ------------------------------- --------
quite simple push implementation process , thanks to the landlord to share
------ eference ------------------- --------------------
so simple , according to try to see how effective
------ eference ------- --------------------------------
very detailed , try
------ eference ---------------------------------------
thank for sharing
- ---- eference ---------------------------------------
looks good , to try
------ eference ------------------------------------ ---
really detailed, hard, thanks for sharing
------ eference -------------------------- -------------
landlord really clever
------ eference - --------------------------------------
very detailed , thank for sharing
------ eference ---------------------------------------
Thank you , is looking for information integration
------ eference --------------------------------- ------
very detailed wow
------ eference - --------------------------------------
thank the landlord for phonegap sdk and the aurora integration
------ eference ---------------------------------------
I am also , just look
------ eference ----------------------------- ----------
Thank sharing
------ eference - --------------------------------------
landlord and the integration of phonegap sdk 's aurora process is very detailed
------ eference ------------------------------------- -
very detailed, learn about
------ eference ------------------------------ ---------
mark, must go down
------ eference ----------------------- ----------------
the news pushed to achieve actually do not have to write a line of code .
------ eference --------------------------------------- < br> specific processes can be seen following documents , of course phonegap integration and this is somewhat different.

http://docs.jpush.cn/pages/viewpage.action?pageId=557214

------ eference ------------------------------------ ---
phonegap not studied acridine
------ eference ----------------------------- ----------
have tried a lot of solutions , especially GCM really powerless tucao
------ eference -------------- -------------------------
who can explain phonegap thing ?
------ eference --------------------------------------- < br> phonegap what is ?
------ eference --------------------------------------- < br> according to compress the bag AndroidManifest.xml SDK sample files to configure AndroidManifest.xml application project .
------ eference --------------------------------------- < br> in great detail ,
------ eference - --------------------------------------
other options even more confused , and the need for a second development, too much trouble , and later choose to use third-party services to achieve a push .
------ eference --------------------------------------- < br> decompress jpush-sdk_v1.xyzip integrated compression package
------ eference ------------------------ ---------------
with creating successful , enter " application details " display. The lower right corner of the interface , you can see "appkey" will be used later .
------ Eference ------------------- --------------------
copy libs/armeabi/libsys1.xyso to the project libs / armeabi directory ( if your project there libs/armeabi-v7a this directory
------ eference -------------------------------- -------
andriod more trouble later read a lot of solutions , gcm obviously is not enough ,

[Share] on the Android platform on the push function analysis

On Android, because Google's own Android standard implementation GCM (Google Cloud Messaging, originally called C2DM) basically unavailable in the country , so , for developers , if necessary Push function , how to choose to become a problem.

So far, there is not yet completely free to developers and open Push service is available. There are several third-party push services abroad , but generally should be charged . So, in general , the domestic developers have to consider yourself to build Push services.

build their own Push service, a more natural choice is based on open source solutions do now .

use Google or Baidu search "Android Push Push " and other words , show that there are a lot of people have been studied . The top edge is such articles :

Android push way to achieve solutions
push to achieve with androidpn Push on to achieve
Android
Android Push Notification using information push to achieve

article mentioned above scheme, basically referred to an open source Android Push to achieve : androidpn .

androidpn it is essentially based on the server side Openfire , client -based asmack, which both open source implementation of the XMPP IM in the two basic components , it should be said ; androidpn just two more combine to make Push the scene .

I did chat App, here are willing to put practical experience doing open source XMPP -based IM system to others.

We do chat class App, more natural way , starting from the beginning is also open source XMPP IM systems research .

said first server-side options. Openfire is one of the oldest open source XMPP IM Server, do almost all the IM should have studied . However , it is also applied to the production of the most inopportune IM Server, because : single concurrency is very limited, cluster programs mature, old code and the lack of timely updates . For a concrete example : Openfire cluster assembly called Connection Manager , but you can see in the Openfire official website , the most recent version was released in February 2009 . Visible, based Openfire achieve androidpn is not enough to stabilize the foundation .

Update : App -based chat Openfire do communicate with a friend , their users than the larger, multiple Openfire cluster nodes do . Openfire they do a lot of transformation, such as XMPP protocol interaction complex , to simplify ; XMPP protocol text bloated , then converted to binary . Cluster is concerned, is entirely their own re- development. They load up to 300,000 users a single point .

In fact, relatively little has another two good options: ejabberd , tigase . ejabberd is using Erlang language, understand Erlang users rarely , it is generally not vote . We had a preliminary chat server option is tigase (Java implementation ) .

tigase authors maintain very active , the test results can be clustered to support a relatively large capacity, which is to attract our place. But after actual production operations point of view, because of its cluster program implementation complexity , as well as single- node capacity is limited, we do not have confidence in the 500,000 users on the cluster nodes to support , so the reach 500,000 before users , quickly developed its own alternative.

again for XMPP protocol with the client 's question: For mobile clients , the original XMPP somewhat complicated and traffic consumption . XMPP protocol is essentially the structure of the body are in the xml string , the amount of each agreement are a bunch of string , xml where there are a lot of meaningless structure. In addition , XMPP for its flexibility , you need to log in this matter there are N and forth . For mobile client care about traffic and capacity for , XMPP relatively bulky.

Our approach is : the agreement to a binary format , simplifying interaction on the agreement, but retained the original XMPP compatible .

androidpn Push is open source implementation is based on the XMPP open source components integrated, it does not make the necessary optimized for mobile application scenarios. In addition , XMPP IM is essentially a two-way agreement, and to achieve a direct XMPP -based Push function is not specifically optimized for Push features , such as client network strategies connections.

summarize in androidpn typical open-source Android Push program there will be a problem :

1) open source server implementation capacity stand , still need to improve their own open source implementation of new programs or completely re- use , high cost of investment and development is inevitable .

2) the agreement and implementation of such traffic consumption , network connectivity strategies , not specifically optimized for mobile Push is not economical.

our team based on the open source XMPP chat App system implementation experience , we have come to the conclusion that, in the IM client moving scenes , the open-source program is not an easy solution available . Later we own a complete re- architecture of the whole system . After that, this new architecture is based IM system , evolved out of the aurora push.
------ Solution ---------------------------------------- ----
androidpn have not been used, because there have been problems
------ Solution ----------------------- ---------------------
Aurora push push service is designed to do it
------ Solution ------- -------------------------------------
 Aurora push push platform it is , then that is not their own development push slightly
---- - eference ---------------------------------------

analysis quite right ah
------ eference ------------------------------ ---------
look first ! ! ! ! ! ! ! ! ! !
------ eference --------------------------------------- < br> on Android push really not easy to achieve
------ eference ---------------------------- -----------
after watching the first horse
------ eference - --------------------------------------
is based on improved XMPP it
------ eference ---------------------------------------
their development is not a small cost , third-party platform can really save a lot of push things
------ eference ----------------- ----------------------
aurora push and principles is not the same as Google's C2DM it ?
------ eference --------------------------------------- < br> IOS platform so much easier , to achieve a simple push .
------ eference --------------------------------------- < br> XMPP protocol really is difficult to engage
------ eference ------------------------------- --------
learned , collection , thank you for sharing
------ eference -------------------- -------------------
learned the original androidpn is based on XMPP , ah
------ eference ----- ----------------------------------
aurora push with what agreement? Is xmpp it?
------ eference --------------------------------------- < br> Thank you for sharing
------ eference ----------------------------------- ----
look at third-party push
------ eference ---------------------------- -----------
Erlang small congregation of
------ eference --------------------- ------------------
support it, thank for sharing
------ eference ------------- --------------------------
professional third-party platform push it ?
------ eference --------------------------------------- < br> analysis was justified
------ eference ---------------------------------- -----
pit father GCM
------ eference ----------------------------- ----------
right, support open source
------ eference --------------------- ------------------
I am using XMPP for
------ eference -------------- -------------------------
 MQTT also use ah
------ eference ------------------ ---------------------
openfire too old . . .
------ eference --------------------------------------- < br> friend Openfire transformation , and finally it is just a single point of capacity 300,000
------ eference ----------------------- ----------------
tigase authors maintain very active , the test results can be clustered to support a relatively large capacity
------ eference ----- ----------------------------------
for mobile clients , the original XMPP some complex and traffic consumption
------ eference ---------------------------------- -----
Openfire based foundation is not enough to achieve androidpn steady
------ eference ----------------- ----------------------
according to the landlord said , would be better to start from XMPP point ?
------ eference --------------------------------------- < br> with androidpn message push to achieve , such as the agreement with the realization flow consumption , network connectivity strategies , not specifically optimized for mobile push is not economical.
------ eference --------------------------------------- < br> open source server implementation capacity stand , still need to improve their own open source implementation
------ eference --------------------- ------------------
Android Push Notification realize I have seen the use of information push
------ eference - -------------------------------------
support a
------ eference - --------------------------------------
for mobile clients , the original XMPP traffic consumes some complex and large .
------ eference --------------------------------------- < br> XMPP to their flexibility , they log on this matter needs to have N and back . For mobile client care about traffic and capacity for , XMPP relatively bulky.
------ eference --------------------------------------- < br> tigase authors maintain very active , the test results can be clustered to support a relatively large capacity, which is to attract our place.
------ eference --------------------------------------- < br> we do chat class App, more natural way , but also from the study at the beginning of the open source XMPP IM system start.
------ eference --------------------------------------- < br> click to androidpn summarize the typical open source Android Push program will exist problems
------ eference ---------------- -----------------------
single concurrency is very limited, cluster programs mature, old code and the lack of timely updates .

[Android] iOS imitation micro-channel audio interface portion

I simply want to achieve as the voice of the micro-channel interface section , slide cancel sending , release sent , the content, I think we should use the gesture , but there is no point thinking , ah, there is no expert guidance grateful brother in .
------ Solution ---------------------------------------- ----
should have done it .... If you do not do it then I'll give you my pink hair recently , I also do this one hehe
--- --- eference ---------------------------------------
I have a book , speaking gestures piece speaks very good to you see, add me Q 506341588
------ eference ------------------- --------------------
I would like to use gestures also, can also be used directly UIButton , the need to use different methods for different event UIButton inside ,

[Android] listview nested gridview, how to determine the point of the picture is still blank gridview part

My listview nested gridview, gridview is only one long picture , I click on the picture is enlarged , but I actually click on a blank part of the side or click on the picture , I did not write girdview of OnTouch event , only the onclickitem click event , how to listen , when you click a blank part of the item rather than responding to gridview listview 's item event . .
------ Solution ---------------------------------------- ----
hair code layout sent to ah
------ Solution --------------------------- -----------------
onclickitem item click event is set . Where can itemAdapter fuss , such as adding pictures directly on the listener .
------ eference --------------------------------------- < br> .... Finally, I made ​​a deal with myself , I put gridview distribution width, height, according to the screen. The perfect solution to this problem. Thank you.

android ddms inside the file explorer does not display files

I used to run a virtual machine can be connected to the program can show the folder, but when using the real device (moto defy) connection does not show any document , file explorer is empty. I taught myself Andrews data storage this chapter, find a lot of methods row barrier. Also please master can I answer, thank you !
------ Solution ---------------------------------------- ----
view permissions , see if there is permission to go .
Also you can use adb shell into the data / data directory to see.
------ eference --------------------------------------- < br> can specifically point does not ? You said this two-step how to operate, first thank you ah
------ eference ---------------------------- -----------
expressed encountered a similar problem

------ eference ------------------------------------ ---
refer this to try , http://zhidao.baidu.com/question/415949223.html, I have encountered this situation .
------ eference --------------------------------------- < br> solved? ? ? ? ? ? ? ?
------ eference --------------------------------------- < br>
this is a positive solution !

you say is not in eclipse in DDMS file explorer?
If so, first ensure that the emulator is started or connected via usb debugging real machine
you can see the
If you still do not see , use the following steps
system / system / bin which can be found no ls file, so can not call file explorer in DDMS
solution:
1. In Eclipse open inside the simulator , through the simulator DDMS-> file explorer find / system / bin, export toolbox replace real machine files in the same directory (you may need ROOT explorer software )
2. Ls to make a name in the real machine / system / bin file to point connection toolbox. Under
linux commands can be directly used Link
mobile terminal open root explorer, find the same connection file a pointer toolbox in / system / bin, such as cat, copy , rename ls can !
------ eference --------------------------------------- < br>
wrong, is this

you say is not in eclipse in DDMS file explorer?
If so, first ensure that the emulator is started or connected via usb debugging real machine
you can see the
If you still do not see , use the following steps
system / system / bin which can be found no ls file, so can not call file explorer in DDMS
solution:
1. In Eclipse open inside the simulator , through the simulator DDMS-> file explorer find / system / bin, export toolbox replace real machine files in the same directory (you may need ROOT explorer software )
2. Ls to make a name in the real machine / system / bin file to point connection toolbox. Under
linux commands can be directly used Link
mobile terminal open root explorer, find the same connection file a pointer toolbox in / system / bin, such as cat, copy , rename ls can !

[Android] Inherit two application

I now have a third-party package needs to import , import and my example no problem running, but imported into the program discovered the problem , logcat print out the error java.lang.ExceptionInInitializerError, the Internet is said in the calculation of the initial value of a static or an exception occurs during the initial value of a static variable , through my observation , it is estimated that a third party needs to inherit the bag comes with application, application example is the direct successor to the third-party package , up and running no problem , but I now have program an application , I want to how to merge these two application? also, or there are other solutions , the novice neighborhoods ah
------ Solution ---------------- ----------------------------
with your application inherit his realization application
------ eference ---------------------------------------
not inherit two application, directly you inherit Application code you need to write , a can .
------ eference --------------------------------------- < br> the problem in this , ah, I put the jar in the application.class decompile it , put it inside the application process , but I found inside the jar still need to use its own application, and that I am now to all decompile it, then let 's have changed need to use the application together with the applacation me what
------ eference ------------------ ---------------------
his application libraries written in a similar form
------ eference ------- --------------------------------
did not expect such a simple problem to solve , thank you !!
------ eference ---------------------------------------
not expect such a simple problem to solve , thank you ! !  

. . . I did not expect such a simple

[Android] qt part of the text can not be achieved in a dynamic language switching

In his qt project has both English and Chinese languages ​​can be switched at any time , but now found that some text can not be switched into Chinese . For example, the following code :
MainWindow :: MainWindow (QWidget * parent):
QMainWindow (parent),
ui (new Ui :: MainWindow)
{
ui-> setupUi (this);

QTranslator trans;
trans.load ("gui_zh");
QApplication :: installTranslator (& trans);
ui-> retranslateUi (this);
}

MainWindow :: ~ MainWindow ()
{
delete ui;
}

void MainWindow :: on_pushButton_clicked ()
{
QString fileName = QFileDialog :: getOpenFileName (this, tr ("open"), QDir :: currentPath (), "* . cpp ");
}

The red part is to open a dialog box to get the path to a file , "open" is how the string are not a Chinese translation , such examples in my project there are many, who can tell me this is how things , there is no solution ?
Note: I have generated the specified qm file
------ Solution -------------------------. -------------------
first you write or translate a document class file must have Q_OBJECT, first make sure your *. qm files which are English translation of all the best to your translation files (*. qm) joined the program resource file , and then add in the main program
QTranslator * translator = new QTranslator (0);
translator-> load (":/ * qm.");
QApplication object using the call app
app.installTranslator (translator);
I hope to help you
------ Solution ------------------------------- -------------


strongly recommend that you look at this: http://blog.sina.com.cn/s/blog_a6fb6cc90101f89v.html
used to switch part of the classic interface : http://bbs.csdn.net/topics/390614347
----- - eference ---------------------------------------
their first top
------ eference - --------------------------------------
your question is not very clear .
first load did not translate ? After the switch is in English, the switch did not translate over time ?
I feel the possibility of a second relatively large .

when switching languages. Sends LanguageChange events.
generally when handling this event . ui-> retranslateUi (this); Ui interface will be re- translated.
but tr function inside part of the program before you call may fail .
You have to re-set inside LanguageChange events.
------ eference --------------------------------------- < br> Also in check there is no such Q_OBJECT.
------ eference --------------------------------------- < br>

class there Q_OBJECT, after running the software will load the translation file , then the translation part is normal, but for example, the code inside the red phrase "open" string was not a Chinese translation , not what you say second , re-set in which you say LanguageChange event , which function in this what you want to set , how to set up , please let us know !
------ eference --------------------------------------- < br> you this question , really did not come across. Are you sure you qm translation ?
You can try to print QApplication :: translate ("MainWindow", "open", 0, QApplication :: UnicodeUTF8)
look is not Chinese ?
if not Chinese . Qm explain your problem , there is no translation .
------ eference --------------------------------------- < br>

or not, do not know if my computer problems, try to go home with a laptop , you do not come across this question, in my project this problem many ah
------ eference - --------------------------------------
if QApplication :: translate (" ; MainWindow "," open ", 0, QApplication :: UnicodeUTF8) this is the English words.
That is your translation problem.
look ts and qm it.
------ eference --------------------------------------- < br>
  
strongly recommend that you look at this:    http://blog.sina.com.cn/s/blog_a6fb6cc90101f89v.html   
used to switch part of the classic interface :    http://bbs.csdn.net/topics/390614347  

Thank you very much , although it is in the official forum qt solutions found , but the resources you have provided very good, especially the 360 , Fantastic, huh.