Free Source Code and Program Tips
Archive for November, 2009
Android if they had to switch screen solution (reproduced)
Nov 29th
Original From: http://blog.sina.com.cn/s/blog_4ca975460100g5yj.html Android if they had to switch on the screen solution The time in the development of the game, some games are only horizontal screen play, so when placed in the erection of mobile phone, to keep the game screen is still horizontal screen. To achieve this requirement is very simple to configure
Android custom ContentProvider
Nov 28th
Custom ContentProvider —- The content provider is used to deal with data sources, while the content parser (ContentResolver) responsible for operating the specific content provider. The data source can be a file or database. More content resolver can simultaneously access the content provider because it is thread – safe. A URI can identify a resource,
Android features various JAVA package description
Nov 24th
In the Android application development, usually using JAVA language, in addition to the familiar with the basics of JAVA language, they also need to understand Android provides extended functionality JAVA JAVA applications in the general, if you need to use reference-based library, usually need to use the following method: import javax.swing .*; JAVA expressed above
Eclipse Development Android, the first one HelloWord program (study 1)
Nov 22nd
Glossary: SDK: Software Development Kit AVD: Android Virtual Devices ADT: Android Development Tools 1. Installing Android SDK Download windows android sdk link: http://androidappdocs.appspot.com/sdk/download.html?v=android-sdk_r3-windows.zip Details Address: http://androidappdocs.appspot.com/sdk/index.html Note: I downloaded to D: Android 2. Installing the ADT Plugin Eclipse -> Help> Software Updates …. In the dialog that appears, click the Available Software tab. Click Add
Android HTTP Service
Nov 21st
Using the HTTP service: 1. Apache HttpClinet Http GET Http POST a. Create HttpClient b. The initial HTTP GET method or POST method. c. set the parameters of key pairs d. implementation of the HTTP call e. processing HTTP reply HTTP GET example: 1 2 3 4 5 6 7 8 9 10 11 12
Everything you need to know about Android 2.0
Nov 20th
Android 2.0 (formerly codenamed 'Éclair') is the latest evolution ofthe mobile OS developed by Google and the Open Handset Alliance. This version is a chunky upgrade, superceding the current Android 1.6 software (dubbed 'Donut'), which was actually considered "a minor platform release". The first phone to feature Android 2.0 will be Motorola's comeback phone, the
Android examples of notepad
Nov 17th
AndroidManifest.xml 1 <? xml version = "1.0" encoding = "utf-8"?> <manifest xmlns: android = "http://schemas.android.com/apk/res/android" package = "com.example.android.notepad "> <application android:icon="@drawable/app_notes" android:label="@string/app_name"> <provider android:name="NotePadProvider" android:authorities="com.google.provider.NotePad" /> < activity android: name = "NotesList" android: label = "@ string / title_notes_list"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android: name = "android. intent.category.LAUNCHER "/> </ intent-filter> <intent-filter> <action android:name="android.intent.action.VIEW"
Sending email without user interaction in Android
Nov 17th
[url] http://nilvec.com/sending-email-without-user-interaction-in-android/ [/ url] by nilvecTo send emails from an Activity in Android the easiest way is to fire up the built-in mail application with an Intent, and let it take care of the low-level details about how to assemble the message, negotiate a secure connection with the mail server and send it using the