Recently, I want to write an android program for fun.
Development Environment eclipse, android2.2
Development Environment Construction
1. Install JDK first
2. Download and install eclipse
3. download and install the android SDK
4. Install the Eclipse plug-in ADT
5. Configure the android SDK path in WINDOW> preferences
6. Create AVD
The implementation method is
What about the lack of memory for Android phones?
Method One:
Install the RE manager, open to find the/data/local/directory, which has rights and TMP two folders, if there is no Rights folder, open the Tmp folder, here are all the software failed to install before, and then empty it.
Method Two:
Open the "RE Manager"--find "data"-"Dalvik-cache" in this folder are all the system cache files and uninstall custom program left the useless log f
The previous article introduced three methods of phone pairing connection. This article describes how to search for Bluetooth devices and actively pair and connect to them using a complete code example.
Package jason.com; import java. io. IOException; import java. lang. reflect. method; import java. util. arrayList; import java. util. list; import java. util. UUID; import android. app. activity; import
There is a millet 2A in the hand because the USB port is damaged, can not use the USB cable debugging development, see online said can use WiFi connection debugging, record the method and encountered problems.
The first stepMobile phone installation WiFi ADB : Https://play.google.com/store/apps/details?id=com.ttxapps.wifiadbStep TwoPerform on the computeradb connect 172.27.35.2 //IP替换为手机WiFi ADB显示的IPUseadb devicesCheck for success, if present, un
card, as long as the satisfaction:1. Data networking;2. Install the Bank Mobile client and log in;3.HCE (NFC-enabled phone)The above 3 conditions, generated an electronic virtual smart card .You can use the mobile phone to brush ATM or counter way to complete the withdrawal, transfer and other cards can be completed by the bank card work.Security is now consider
Socket Android Phone client and PC server LAN inline test, the author uses the PC servers, Android tablet client, PC Simulator client,A while ago to deepen The memory of the socket communication and the depth of knowledge, I imitated some elements of QQ, but also borrowed some other cattle source ideas, wroteone called IQ. an
written to the hardware underlying device in real time, skipping over the cache, which is good for unexpected outages such as downloading files Randomaccessfile RAF = new Rand
Omaccessfile (file, "RWD");//rwd, real-time write to the underlying device/set the size of the temporary file raf.setlength (length);
Raf.close (); , calculate each threadHow many bytes should be downloaded int size = length/threadcount;//If there are more than one, the last part of the thread is respons
In Linux, when the Android mobile phone management software QtADB is used in Linux, there is often a problem that the mobile phone connection does not respond, and even if there is a reaction in Linux, it is difficult to find a better mobile phone management software, after many searches, I finally found a better tool,
1. We enter the mobile phone needs to screen the interface and then we also press the phone "volume-" + "shutdown button" to achieve screenshots of the action. Then the picture will be in the Pictures/screenshots folder.
2. We can use like 360 mobile phone assistants and then use the software to connect the phone af
from the outer cuff. We will synthesize the left and right eye images on both sides of the cylindrical lens. In fact, the ordinary plane image or video can also be converted to the left and right eye 3D or naked, as long as the picture is divided into two, leaving the parallax, you can form the left and right eye, 3D with VR glasses or Google paper tray can get 3D effect, and then the left and right eye image according to the open-hole 3D synthesis l
Android audio and video goes deep into the 16 FFmpeg streaming mobile phone camera to achieve live broadcast (with source code download), androidffmpeg
Source Code addressHttps://github.com/979451341/RtmpCamera/tree/masterAfter configuring the RMTP server, paste it here.1. Configure the RTMP Server
I don't want to post two blogs on mac and windows respectively.Set up an RTMP server on MACHttps://www.jianshu
it to yuv420p formatmemcpy(pFrameYUV->data[0], in, y_length); //YpFrameYUV->pts = count;for (int i = 0; i Encode Avframe dataAvcodec_send_frame (Pcodecctx, PFRAMEYUV);Get the data obtained after encodingAvcodec_receive_packet (Pcodecctx, ENC_PKT);Release AvframeAv_frame_free (PFRAMEYUV);Configure the encoded data, set the playback time, etc.enc_pkt.stream_index = video_st->index;AVRational time_base = ofmt_ctx->streams[0]->time_base;//{ 1, 1000 };enc_pkt.pts = count * (video_st->time_base.den)
From: http://blog.csdn.net/moruite/article/details/6028547
1. terms and concepts
Terms
Description
Remarks
Screen Size)
It refers to the actual physical size of the mobile phone, such as commonly used 2.8 inch, 3.2 inch, 3.5 inch, 3.7 inch, diagonal
Motorola's milestone mobile phone is 3.7 inch
Aspect Ratio (width/height ratio)
Refers to the actual physical size wid
First, you must understand that the communication between android programs is broadcast broadcastReceiver, and the data sharing between programs is using the content provider Contentproved. Therefore, you must start the service when the mobile phone starts, you need to know when the mobile phone is turned on. At this time, you can register a broadcast to receive
system;
8, on the desktop, for the needs of the official application, but also need to add another click to download;
9, download completed, will be the official telephone, SMS, cloud storage and other related system experience
10, after the completion of the above settings, you have completed a certain degree of "hammer desktop" settings.
Step 2, how to set the default desktop
1, in the settings, click on "Application Manage
In Linux, when the Android mobile phone management software QtADB is used in Linux, there is often a problem that the mobile phone connection does not respond, and even if there is a reaction in Linux, it is difficult to find a better mobile phone management software, after many searches, I finally found a better tool,
Reprint Please specify source: http://blog.csdn.net/l1028386804/article/details/47375595At present, many Android phone software in the market has the function of clearing SD card cache, such as 360, Jinshan and so on. So how does the software implement the ability to clean up the SD card cache data? Below, I will show you how these features are implemented.First, the principleFirst of all, let's talk about
in the direction of the square after the sum, and then the root. (Math forgot, remember wrong ...) )Monitor the class that shakes your phone:/*** @author Renxinwei** @date 2013-1-17 09:19:58*/public class Sensormanagerhelper implements Sensoreventlistener {//Speed threshold, which occurs when the shaking speed reaches this value private static final int speed_shreshold =; Time interval for two detections private static final int uptate_interval_ti
Someone asked me a question about the root of Android phone, she said clearly itools display has been rooted, but she is not able to run on the phone requires root permissions of the app, such as titanium backup and so on. I told her the best way to confirm this is to go to/data/with the ADB instructions. Data path, and then execute Ls–al, if you can get the resu
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.