I began to learn Android time is not long, write blog, not afraid of you onlookers jokes, hope to find a job when can send useful, my agency teacher said, enterprises like such people, can continue to learn, enterprises see you write Bo, naturally added points. I think so, but, now I want to use the blog as a note, but also review the learning experience, I hope that in the future can become a technical great God, this step may be necessary.
Not much to mention, after my class outside the study, summed up, I am currently learning some of the tools Android encountered problems.
1. Select the simulator:
The simulator of the system is really too slow, I learned the organization uses the speed simulator (actually I have not installed), but I think Ah, computer installation simulator is still slow, Luohe computer is also hurt, ah, it is better to use mobile phone measurement, Luohe I bought a Taiwan red rice, but the mobile phone test led to some of the choice of tools.
2. Mobile phone adb commissioning
The phone connection data cable can be debugged, but can not be wired to debug it? The answer is yes, Luohe deliberately found the application, the recommended "remote ADB" app, in fact, is "ADB wireless" of the same kind, because it is recommended in the Chinese version, wireless debugging, remember to be in the same LAN, and also in the cmd Knock command to build the debugging environment.
There is a picture for proof:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/45/98/wKiom1Po3mWTh1BgAAhCcAciDwc049.jpg "style=" float: none; "title=" Screenshot_2014-08-11-23-11-59.png "alt=" Wkiom1po3mwth1bgaahccacidwc049.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/45/98/wKiom1Po3majyyMYAAIBaxcKRtM057.jpg "style=" float: none; "title=" Screenshot_2014-08-11-23-12-21.png "alt=" Wkiom1po3majyymyaaibaxckrtm057.jpg "/>
Enter this command to set up a wireless debugging environment.
3. Debugging problem of no real network for real machine
Use HFS and other virtual service-side real machine debugging, in the same LAN can be implemented debugging, but once the network (no open common hotspot when intermediary), such as mobile office, carry a notebook in the coffee shop development project, coffee shop without WiFi, you need to debug network download function, how to do?
In fact, the solution is very easy, recommend the use of 360 free WiFi, the real machine connected to build the network, can be equipped with a good network environment.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/45/99/wKiom1Po4OLANgPtAAAt8U_sTQM383.jpg "style=" float: none; "title=" 2222.jpg "alt=" Wkiom1po4olangptaaat8u_stqm383.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/45/99/wKiom1Po4OKzyiRcAABG4a8iEc8338.jpg "style=" float: none; "title=" 3333.jpg "alt=" Wkiom1po4okzyircaabg4a8iec8338.jpg "/>
4. About viewing database file issues
Self-built program, database in data/data/inside the package
But when the phone even the computer debugging, found that Eclipse can not see the contents of the system permissions, how to do? How do you export a database when you want to export it?
Here's a solution.
First make sure that your phone is rooted, because it requires root access to view the system's files.
With the permission, the next "RE Manager", the Chinese version, you can view all the system files. For example, to export a database, you can use re
Copy the database file into the SD card so that Eclipse can see it.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/45/9A/wKiom1Po5GCCtzHFAAhBnlCs1ng413.jpg "style=" float: none; "title=" Screenshot_2014-08-11-23-36-32.png "alt=" Wkiom1po5gcctzhfaahbnlcs1ng413.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/45/9A/wKiom1Po5GOBP2LMAAU29r47f3w285.jpg "style=" float: none; "title=" Screenshot_2014-08-11-23-36-55.png "alt=" Wkiom1po5gobp2lmaau29r47f3w285.jpg "/>
5. View database issues directly on the phone.
Why do we have to export the database to the computer to see it?
Luohe was going to use SQLite to view the contents of the data. Later, why Luohe want to test out to see, directly on the phone side to view the database line, the answer is OK.
It is recommended to use the "SQLite editor" on the mobile phone.
There is a picture for proof:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/45/9B/wKioL1Po5yyCUc2-AAhEZB-QnvA289.jpg "style=" float: none; "title=" Screenshot_2014-08-11-23-47-45.png "alt=" Wkiol1po5yycuc2-aahezb-qnva289.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/45/9A/wKiom1Po5hfA1kN7AARJUwuWnjc847.jpg "style=" float: none; "title=" Screenshot_2014-08-11-23-47-25.png "alt=" Wkiom1po5hfa1kn7aarjuwuwnjc847.jpg "/>
Luohe There are several applications recommended to learn Android friends use, time problems Luo Shui first written to this, the back will slowly expand.