Android obtains the names of all applications in the system.

From: http://blog.sina.com.cn/s/blog_766aa3810100quzv.html Code example: Activitymanager AM = (activitymanager) This. getsystemservice (activity_service); List L = aM. getrunningappprocesses (); iterator I = L. iterator (); packagemanager PM =

Multiple simulator startup methods for Android

    1. The first simulator is started through eclipseMethod: Open eclipse and run a project at will. eclipse will help us start an android simulator.2. Start the second simulator until the nth one by running the DOS command.Method: start --> Run.

Set of "whether" judgment methods in Android Development

/*** @ Title hassd * @ description determines whether an SD card exists * @ Param @ return * @ return Boolean * @ date 2012-10-25 9:03:56 */private Boolean hassd () {If (environment. getexternalstoragestate (). equals (Android. OS. environment.

Android widget development from simple to deep demo

I. Simplest widget example The widget program consists of the following four parts: A. Implementation of appwidgetprovider B. widget exterior layout definition file C. Implement the activity configuration when adding widgets (optional) D. widget

Android Advanced Programming

1. Improve UI performance 1. Improve the efficiency of adapter and adapterview Reuse the generated item View Add viewholder to avoid repeated searches for controls to be modified Cache item data Segmented reality Instance: class OptAdapter extends

Android pop-up box

When we do development at ordinary times, we will inevitably use a variety of dialogs. I believe that anyone who has experience developing other platforms will know that most of the platforms only provide a few of the simplest implementations, if we

Multiple APK files are implemented in Android.

Sometimes there are many small modules under a large project. If there is no connection between small modules, you can use each small module as a separate project to generate an APK. In this case, how to put multiple APK files in a project is

Usage of onactivityresult in Android

For example, one thing I want to do is to connect a main interface (main activity) to many different sub-function modules (child activity ), after the sub-module is finished, it will return to the main interface. It may also return some data

Call the address book and return the phone number in Android

Contactactivity. javapackage Yu. hong. contact; import android. app. activity; import android. content. contentresolver; import android. content. intent; import android. database. cursor; import android.net. uri; import android. OS. bundle; import

Decompile APK in Android

I. Method 1:Tool download: requires the dex2jar and JD-GUI tools Dex2jar: http://laichao.googlecode.com/files/dex2jar-0.0.7-SNAPSHOT.zipJD-GUI:Windows JD-GUI: http://laichao.googlecode.com/files/jdgui.zipLinux JD-GUI:

Capture the screen through the drawing cache (drawingcache)-android capture screen

From: http://androidbiancheng.blogspot.com/2011/05/drawingcache.html When you click the button, the application captures the screen effect display through the drawing cache and displays it in the imageview. The effect is as follows: Main

Android file access skills

From: http://www.360doc.com/content/11/1230/12/7471983_176041552.shtml First, the internal storage path is/data/youpackagename/. The paths described below are based on the internal storage path of your own application. All files stored in the

Unity3d how to access third-party sdks-android

This article takes unity3d access to 91sdk as an example. My development environment: Mac system, Eclipse, unity4.0Development Process:1. Prepare the class. jar file that unity provides for interaction with Android.My operation procedure is:

Add and delete browser bookmarks in Android

Previously, we implemented browser bookmarks in Android. Now we can add and delete bookmarks as follows: First, add the write permission to bookmark in androidmainfest. xml: Then add two methods to the activity. Adding bookmarks is simple.

Sharing the entire process of compiling Android source code

By referring to relevant information on the Internet, follow these steps to compile the android source code: 1. My system is Ubuntu 8.04. 2. The following tools must be installed on the system (from documents on the Internet ): Sudo apt-Get

Implementation of the dialog Display Method for Android (with diagram + Source Code)

During this time, I read some documents and summarized some methods for implementing the dialog box. In general, there are two principles: one is to use the dialog class, the second is to apply the dialog topic to the activity to achieve the dialog

% 1 $ S % 1 $ D Android string conveniently changes the value of string dynamically

1. Integer. For example, "I am 23 years old this year". This 23 is an integer. This can be written in string. xml. I am % 1 $ d this year . [Java]View Plaincopy String sageformat = getresources (). getstring (R. String. Old ); String sfinalage =

Android: one project references another project

Sometimes this happens when Google code downloads the source code and learns. One project contains another project. It is equivalent to a reference of a jar package. But it is not a jar package, but a package. I found this method on the

Android uses the xfire WebService framework to remotely operate sqlserver (including adding, deleting, modifying, and querying) instances !! Tested on a real machine

Two days ago, the company had a project using Android to remotely operate sqlserver. I had no clue about this, but I was also very interested. So I began to search online. There were many methods on the Internet, I found that WebService was widely

Create an XML file using Android Sax

The first two articles briefly describe the method for parsing XML by using Sax to implement the parsing function. The following uses Sax to create an XML file. The specific method of using Sax to create XML is to add relevant comments to the

Total Pages: 2774 1 .... 2326 2327 2328 2329 2330 .... 2774 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.