I used to think that the service is a backgroundProgramIn fact, it is not. The service is just an activity without interface. If time-consuming operations are put in onstart, it will throw
ANR (no response) error. If you want to keep running in the
Android adds an attribute Android: theme = "@ Android: style/theme to the activity in mainfest. dialog ", you can move the activity to another window. In the layout, you can set the activity size. When you click an area outside the floating activity
During Android development, button events generally need to interact with users, that is, Human-Computer Interaction Events. When a user clicks, event responses are generated. However, sometimes we may need to simulate click events, that is, it is
JavaCode
Import Java. text. simpledateformat; simpledateformat formatter = new simpledateformat ("yyyy-mm-dd hh: mm: SS"); Date curdate = new date (system. currenttimemillis (); // obtain the current time string STR = formatter. format (curdate );
What is the difference between startservice () and bindservice () of service?
A: The startservice () method is used to enable the service. There is no relation between the caller and the service. Even if the caller exits, the Service continues
Many androidDevelopmentWho have passed the preliminary and intermediate levels, how to become an android master? Android123 classifies various levels of programmers as follows.
I. Beginner
1. skillfulJavaUnderstanding the design model, such as the
Many times, after we connect the phone to the computer, we will find a drive letter similar to the CR-ROM drive, which contains the content of the phone. The procedure is as follows:
(1) Add cell phone partitions
Adjust the MTD Partition Table of
I saw a blog post about APK network upgrade on the Internet, which explained the details carefully and recorded it here for backup. The flowchart is:
To implement automatic updates, we must first let our applications know whether new versions of
Android multi-column table
The android multi-column table is a free, open-source Multi-column table. The table has the following features:
Multicolumns and multirows
Column (header) sorting
Select data row
Header that defines the
My project uses a serial barcode scanner and requires Android JNI to use the android serial-Port-API source code and the dynamic link library generated in the project. No implementation found for native lcom/stelcom/SerialPort;. Open
The Android system supports full-text search, which is supported by SQLite's fts3.
See:
Http://androidappdocs.appspot.com/guide/topics/search/search-dialog.html
The searching your data section.
The reason is that it is slow to use like. in
Using openfire as the server saves a lot of time without having to write another server. openfire can implement the basic functions of a communication server through simple configuration,
Openfire
Developed using Java, the open-source RTC server
Get File Size
Public static final int max_attachment_upload_size = (5*1024*1024 );
File file = new file ("/sdcard/default/aaa.txt ");
Long size = file. Length (); // get the file size, in bytes
If (size> email. max_attachment_upload_size) //
1. To return the data of the previous activity, you need to call it before Super. Finish:
Public void finish (){Intent intent = new intent ();Intent. putextra ("name", "samyou ");Setresult (200, intent );Super. Finish ();}
If it is called later, no
Using Bluetooth microphone recording on Android and uploading via wifi, we find that there are frequent conflicts between Bluetooth and WiFi. This means that WiFi will be disconnected after Bluetooth is used.
I found that WiFi and Bluetooth both
It is a little troublesome to start the service after android4.0, but it is actually a service started in broadcastreciever when listening for the boot broadcast according to the online method,
The code for starting the service is:
Public class
I finally found out how to query database tables in SQLite and shared it with you.
Transferred from: www.javaeye.com/wiki/topic/425471. You must use an agent to open it.Background
SQLite is a very popular embedded database. It provides a refreshing
A few days ago, my boss told me why we didn't sell a product to others. I read this article and understood it.
Http://www.36kr.com/p/44964.html
Gartner's latest report said that Android phones surpassed the iPhone in terms of shipments with a
Transfer http://wang-peng1.iteye.com/blog/523869
In gradientdrawable1's attempt, I finally learned the shape. I used to understand it clearly. Now I finally figured out what was in it. I also admired Google's intentions and deliberately set some
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