public test (Context context, AttributeSet attrs) { super (context, attrs); }
@ Override public boolean onKeyPreIme (int keyCode, KeyEvent event) { if (event.getKeyCode () == android.view.KeyEvent.KEYCODE_BACK) { / / To do something } return super.onKeyPreIme (keyCode, event); } }
OnKeyPreIme which used to precede the soft keyboard input back to capture the key, ask the following: 1. How will this event here in onKeyPreIme submitted to cite this extension EditText class program, or trigger refers to this extended class program code; 2. Such classes can obtain a reference to the name of the class in this extension do? That is such a gallery.class cite this test.class, to get the name of the gallery test.class it?
Reply: You constructor in context to come to pass, you can determine the context of the type if (context instanceof gallery) { Of course, you can get its class name Reply:
Xiangnong a real-time bus arrival query software, but how we can get the bus to official data, the online software applications that transit is how to obtain the official data, is not an official bus interface, or a corresponding api documentation ? ? ?
Hope insiders let us know .... Reply: You can use Baidu map api, is free Reply: Baidu api including mobile development and web development, good use http://developer.baidu.com/map/ Reply:
You can get real-time bus arrival information? ? ? Reply:
Support for bus information, bus transfer inquiry, driving route planning and walking route search.
Bus information: For more information on public transportation can be queried; Bus Ride query: According since the end of the query strategy, route planning program; Driving route planning: providing different strategies, planning driving routes; (supports setting waypoints) Walking route search: Support planning walking paths. Reply:
Baidu api including mobile development and web development, good use http://developer.baidu.com/map/
You can get real-time bus arrival information? ? ?
Support for bus information, bus transfer inquiry, driving route planning and walking route search.
Bus information: For more information on public transportation can be queried; Bus Ride query: According since the end of the query strategy, route planning program; Driving route planning: providing different strategies, planning driving routes; (supports setting waypoints) Walking route search: Support planning walking paths.
You can know the exact location of a real-time, a bus, the distance from the site, such as short of a few stops? Reply:
Baidu api including mobile development and web development, good use http://developer.baidu.com/map/
You can get real-time bus arrival information? ? ?
Support for bus information, bus transfer inquiry, driving route planning and walking route search.
Bus information: For more information on public transportation can be queried; Bus Ride query: According since the end of the query strategy, route planning program; Driving route planning: providing different strategies, planning driving routes; (supports setting waypoints) Walking route search: Support planning walking paths.
You can know the exact location of a real-time, a bus, the distance from the site, such as short of a few stops?
The specific location of the bus can be queried through Baidu map api, but the distance from the site, such as a few stops short of the necessary logic to write their own algorithms, and should not provide such api Reply: Such products have been available in the market, such "Rainbow Bus" is used to do figure it out maps api Reply: Real-time interface to the station will not open, you can go to tender, purchase Reply: Decompiled code yourself, your own research Reply:
Also add any extra jar package? Can hair a little longer Reply: This is an internal interface, not easily open. Reply:
This is an internal interface, not easily open.
..... Get real-time location of buses in a line ah
Reply: You think about the principle, or network location through GPS positioning obtained, after you get the need to be preserved in order to use it, save the place from between your application, it will certainly have to have a path, this path will need someone to achieve, that is, after the package features provided by the external API. Only through this way, you can use it. Reply:
you think about the principle, the location via GPS or network positioning is obtained, after you get the need to be preserved in order to use it, From a place to save between your application, it will certainly have to have a path, this path would need someone to realize, that is, after the package features provided by the external API. Only through this way, you can use it.
I know the truth, but how to get your GPS location and get tangled on the API issues ....
I want to download android source on ubuntu. I follow the step by step method of online conduct. Installed git and curl. Then curl http://android.git.kernel.org/repo> ~ / bin / repo repo command to download the file. Download a success. Also through the command chmod a + x repo given the authority. But when I use:. / Bin / repo init-u git :/ / android.git.kernel.org / platform / manifest.git command to download the source code of the time, but always report: / bin / repo:. Line 1: Unexpected symbol `newline 'Incorrect syntax near . / Bin / repo: line 1: ` ' Did not find the reason. Confused for a long time, please know that prawns help. Thank
Reply: http://wanran.iteye.com/blog/1046264 http://hi.baidu.com/lizhengjun2010/blog/item/0b84aa406f2d579eb2b7dcf7.html http://www.forlinx.com/Download.htm http://bbs.witech.com.cn/thread-3809-1-1.html Landlord try these bars. I have tried for a long time before the download was successful or not. That is not your problem, but android.git.kernel.org a wall or is being attacked. If successful, the landlord sent me a copy, thank you. Reply: Web site looks like to be black, and now does not download. These methods are can be downloaded before Reply: I am also the same problem Reply:
I am also the same problem
I re-download a repo files can be Reply: , Where to re-download the repo 4 floor Reply: With lz ah, I do not know the problem is not solved, nothing out of the day progress, alas Reply: Top, I used http://hi.baidu.com/lizhengjun2010/blog/item/0b84aa406f2d579eb2b7dcf7.html This approach to the problem of Reply: I have encountered this problem, there is no get, ah?
The service and android UI thread with the thread, so why deliberately put forward a service, directly to the code written in the activity is not enough. Such as playing MP3, write the code inside the event listener is not the same as it Reply: service is a task running in the background, invisible.
actvity if not visible. Gc in the recovery, low priority, the system can easily be recovered out. However, the high priority service. To ensure long-term operation in the background. Reply: Agree 1L In addition, according to a modular design idea, it is still a separate module, low coupling Well If more than one activity to the same call using a service, is it still there, they are written in each activity over service Reply: There are a lot of points with a JAva Andorid design patterns Relationship that relationship Activity, Service, Provider somewhat similar in the JAVA JavaScript, JavaBean, Servlet's Reply: Top 1,2 F Reply: 1,2,3 floor, grasp wanted to say it! Hey Reply:
a little Andorid JAva many have adopted the design patterns Relationship that Activity, Service, Provider JAVA somewhat similar in the JavaScript, JavaBean, Servlet's relationship
is the legendary MVC design pattern it, but feel the relationship of the four components of MVC it can not meet that android in mvc how to explain, please advice? Reply: I also think this issue. service and UI are not in the same thread as well? Reply: Since the Service is not in a separate thread, then why can access the network in the Service as well? (3.0 later versions also possible)
Such as access to data sent on the problem, trying to phone via USB to your computer, but do not know the specifics of how to achieve this, please give pointers about the great God, or give a relevant example Reply: Top about themselves, seeking Great God Reply: Analysis ADB it. Reply: Adb logcat to get on the computer logs on it, you print out the information in the mobile terminal Reply:
analysis ADB bar
I'm sorry, am finished stickers to go on to class, so. now to restore, adb is the driving piece of it, can be directly connected using the existing mobile phones to transmit data assistants and the like, now still can not start, look to guidance Reply:
adb logcat on
computer logs on it to get your information in the mobile terminal to print out
I want to transfer the data on the phone to the computer, ah, little did not understand what you say, it can not specifically point Reply:
Analysis ADB it.
sorry, am finished stickers to go on the school, so now to reply, adb is driven piece of it, can directly use the existing connection like mobile assistant to transmit data, now still can not start, but also look pointing
I said that you refer to now that you know the principles on PC phones such procedures as tools. Go drive to. Reply:
Analysis ADB it.
sorry, am finished stickers to go on the school, so now to reply, adb is driven piece of it, can directly use the existing connection like mobile assistant to transmit data, now still can not start, but also look pointing
I said that you refer to now that you know the principles on PC phones such procedures as tools. Go drive to.
Well, I ask you there are similar examples of it, whether borrowed reference? Reply: socket or persistent data, and then send the file. Reply:
socket or persistent data, and then send the file
can specifically point ah, no. quite understand Reply:
socket or persistent data, and then send the file.
Can specific points, ah, do not understand
1 You can save the data to be transferred into a file, and then notify the PC out with adb pull, PC data does not get it? 2.PC and phone socket to transfer data directly. Reply:
socket or persistent data, and then send the file.
Can specific points, ah, do not understand
1 You can save the data to be transferred into a file, and then notify the PC out with adb pull, PC data does not get it? 2.PC and phone socket to transfer data directly.
this will do? I try to express my gratitude Reply: Phone open http server and consequently get Reply: Has been achieved through adb
jquery1.83 + jqm1.2 + phonegap2.1 in the performance is very slow AndrewsSingle html page multiple Page, resources locally, the device is android210 development board, UI performance of this framework is very bad, incident response delay is relatively large, the effect of clicking the button completely get out, within a single page page jqm about switching 3-4 seconds black and white, giving the impression that the refresh rate is very low, dragging down the page to display the new part from confusion to clarity, sometimes a one out, this performance is difficult to receive. Before using jqm1.1 made a similar software, webview frame embedded web page without using phonegap, part of the same operation webpage reaction is very slow. Do we not have a similar experience to share about how to optimize this framework. Reply: Answered. . Reply: No one uses a similar architecture yet Reply: I also use the same very slow .. can not stand ... Reply: The registered event handlers to the touch event instead of mouse events. Reply: I now use this jquery-mbile-1.3, feels very slow Reply: The same problem, seeking brick home Reply: I also produce APK installed on the phone, very slow, switch interface, there is 3 seconds black and white. Reply: I also use, slowly die ah. Wondered whether it be about phonegap optimization? ? Reply: Now with the jqm1.4, + phonegap 3.0, all pages of basic black and white movie with none ah not more than 1 second