目前日期文章:201202 (116)

瀏覽方式: 標題列表 簡短摘要
將以下內容添加到 AndroidManifest.xml。
<uses-permission
android:name="android.permission.INTERNET"/>
<uses-permission

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

關閉進程,刪掉他們的 PID 值
android.os.Process.killProcess(android.os.Process.myPid()) ;
System.exit(0) ;

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

1149348246  

ImageDownloader.java

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

1050056417

設備 ID 值是特有的識別設備,它是 iPhone UDID (唯一設備識別字)

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

1327795137

// AlertDialog創建多選功能表使用 
finalString[] items ={"第一"、"第二"、"第三"、"第四"};

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

 

1. File -> New -> Android Project

20469C194A3E53531E62BE  

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

import java.io.IOException;

import org.apache.http.client.ClientProtocolException;

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

FROM: http://developer.android.com/guide/developing/building/index.html#detailed-build

Building and Running

The following diagram depicts the components involved in building and running an application:

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

FROM:http://www.androidenea.com/2010/03/share-memory-using-ashmem-and-binder-in.html

To share memory between different processes in the android framework ashmem can be used. Ashmem is a android shared memory addon to the linux kernel. 
Ashmem has reference counting so that if many processes use the same area the area will not be removed until all processes has released it, the memory is also virtual and not physically contiguous. If physically contiguous memory is needed like for hardware reasons pmem can be used, but it has no reference counting and is not part of standard Android kernel. 
In this blog post we will concentrate only on ashmem.

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

Finally we're releasing our first app on Android Market. The app is actually a new type of game that is using the accelerometer in an exiting way. The game is really easy, all you have to do is to throw your phone up in the air as high as you dare. As mentioned we're using the accelerometer and also some secret algorithms to calculate how high a user can throw. We are also using an SQLLite database to store the highscores on the phone and a server with a SQL database to store global highscores.


During development we accidently crashed the sensors on one phone, but considering how many throws we've done, that's ok. Included in the game is four different highscores, Phone, National, Global and also a global hisghscore based on your phone model. 
Right now the Android Team record is 8.5m high! Do you dare try to beat us?!

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

FriendFly   

I have been working with OpenGL on Android for a month and would like to share what I have learned so far. I will go through the main parts of the OpenGL specicode and explain a bit about the different pieces. 

When using version OpenGL ES 2.0, keep in mind that it is not backwards compatible with earlier versions such as 1.0 and 1.1. OpenGL ES 2.0 is supported by the Android platform since version 2.2. 

shadow 發表在 痞客邦 PIXNET 留言(1) 人氣()

Starting an Android service after boot

 
After some consideration we decided that we should have a post about adding a regular Android service at boot and not just consider the cases where you have to modify the platform itself.

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

FROM : http://javaexpert.tistory.com/334

 
 Anyone that is in need of it .. attached here is the Motorola Atrix4G addon for the Android SDK .. also the instructions for installation and execution.

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

FROM : http://snowbora.com/445

 在彈出對話方塊中,如下面的清單以查看花車顯示。

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

FROM : http://www.androidside.com/B46/4671

 1930801786_69b809f0_BCBCB7CE  1930801786_5ec8b95d_BCBCB7CE_1  

 保持在螢幕垂直。

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

d0085505_4acd33671d143

FROM : http://skyswim42.egloos.com/3354981

 

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

출처 : http://arsviator.blogspot.com/2010_05_01_archive.html

 

 

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

package com.*****.***.****;
import! android.app.*;
import! android.content.*;

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()

Form:http://www.androidrom.net/application-development/inserting-media-into-the-media-store.html
Inserting Media into the Media Store

Rather than relying on the Media Scanner you can add new media to the Media Store by creating a new ContentValues object and inserting it into the appropriate Media Store Content Provider yourself.

shadow 發表在 痞客邦 PIXNET 留言(0) 人氣()