일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- oracle
- MySQL
- Struts
- GPS
- dock
- WebLogic
- ibsheet
- JSON
- 가우스
- MFC
- appspresso
- Google Map
- PLSQL
- phonegap
- sencha touch
- Spring
- jsr 296
- swingx
- PHP
- 전자정부프레임워크
- Android
- 선택적조인
- node.js
- iBATIS
- tomcat
- Ajax
- JDOM
- rowspan
- jQuery
- Eclipse
- Today
- Total
목록Developement/Mobile (24)
Where The Streets Have No Name
안드로이드에서 최신 websocket 스펙을 지원하는 라이브러리를 선정하는데 시간이 좀 걸렸습니다. 여러가지 테스트중 http://autobahn.ws/android 에서 구한걸로 테스트했습니다. 여러 websocket 라이브러리 비교는 http://en.wikipedia.org/wiki/Comparison_of_WebSocket_implementations 여기 를 참조하세요. node.js에서 사용된 websocket 모듈은 http://einaros.github.com/ws/ 에서 구한걸로 테스트했습니다. node.js소스 var WebSocketServer = require('ws').Server , express = require('express') , fs = require('fs') , ht..
위 이미지와 같이 layout-land, layout-port로 구분해서 작성한다. import android.app.Activity; import android.content.res.Configuration; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class LayoutDemoActivity extends Activity { final static String TAG = "LayoutDemo"; @Override public void onCreate(Bundle sa..
index.html에 추가할 부분 Hello World net.neocorea.flash 플러그인 위치한 MyPlugin소스에서 추가할 부분 import android.webkit.WebSettings; import com.appspresso.api.AxError; import com.appspresso.api.AxPlugin; import com.appspresso.api.AxPluginContext; import com.appspresso.api.AxRuntimeContext; public class MyPlugin implements AxPlugin { private AxRuntimeContext runtimeContext; @Override public void activate(AxRuntimeC..
참고 : http://stackoverflow.com/questions/3028306/download-a-file-with-android-and-showing-the-progress-in-a-progressdialog public class LayoutDemoActivity extends Activity { ProgressDialog mProgressDialog; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mProgressDialog ..
Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse("file:///sdcard/DCIM/Camera/IMG_20120404_090943.jpg"), "image/*"); startActivity(intent); 외부에 있는 이미지 파일인 경우 sd card로 다운로드 한후 위의 방법으로 열어보면됨. sd card 저장 소스 출처 : http://www.androidsnippets.com/download-an-http-file-to-sdcard-with-progress-notification try { //set the download URL, a url that points t..
package com.example.ax.echo; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.util.Log; import android.webkit.WebView; import com.appspresso.api.AxError; import com.appspresso.api.AxPlugin; import com.appspresso.api.AxPluginContext; import com.appspresso.api.AxRuntimeContext; import com.appspresso.api.activity.ActivityAdapter; import com.appspres..
//show webapp: Uri uri = Uri.parse("http://www.google.com"); Intent it = new Intent(Intent.ACTION_VIEW,uri); startActivity(it); //show maps: Uri uri = Uri.parse("geo:38.899533,-77.036476"); Intent it = new Intent(Intent.Action_VIEW,uri); startActivity(it); //show ways Uri uri = Uri.parse("http://maps.google.com/maps?f=d&saddr=startLat%20startLng&daddr=endLat%20endLng&hl=en"); Intent it = new Int..
import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.util.Log; import android.view.Gravity; import android.widget.Toast; public class C2dmReceiver extends BroadcastReceiver { static String registration_id = null; static String c2dm_msg = ""; @O..
import java.io.BufferedInputStream; import java.io.IOException; import java.net.URL; import java.net.URLConnection; import android.app.Activity; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.os.Bundle; import android.util.DisplayMetrics; import android.util.Log; ..
출처 : http://code.google.com/p/jabberoid/ 위 사이트에서 소스를 받아서 smack라이브러리는 asmack으로 교체해서 빌드후 돌려봤는데 그럭저럭 돌아가네요 서버는 openfire로 구성해서 환경을 만들었습니다. 스마트폰으로 메신저 환경을 구성하려는 분들은 참고하면 괜찮을듯합니다.
출처 : http://saltybeagle.com/2009/09/cross-origin-resource-sharing-demo/ 아래 스크립트를 이용해서 안드로이드에서도 정상적으로 호출됩니다. /** * This is for Cross-site Origin Resource Sharing (CORS) requests. * * Additionally the script will fail-over to a proxy if you have one set up. * * @param string url the url to retrieve * @param mixed data data to send along with the get request [optional] * @param function callback fu..
참고 : http://kgriff.posterous.com/phonegap-10-android-plugin-updates http://kgriff.posterous.com/building-a-phonegap-plugin-for-android /res/xml/plugins.xml package net.nnn.phonegapdemo; import org.json.JSONArray; import org.json.JSONException; import android.util.Log; import android.widget.Toast; import com.phonegap.api.Plugin; import com.phonegap.api.PluginResult; import com.phonegap.api.Plugin..
Ext.setup({ tabletStartupScreen: 'tablet_startup.png', phoneStartupScreen: 'phone_startup.png', icon: 'icon.png', glossOnIcon: false, onReady: function() { var panel = new Ext.TabPanel({ tabBar: { dock: 'bottom', ui: 'light', layout: { pack: 'center' } }, fullscreen: true, cardSwitchAnimation: 'slide',//'fade', 'slide', 'flip', 'cube', 'pop', 'wipe' items: [aboutPanel] }); Ext.Ajax.request({ url..
Main Page
출처 : http://www.google.mw/support/forum/p/gmail/thread?tid=5f5ae01849704469&hl=ko&fid=5f5ae018497044690004a35e568095c8&hltp=2 http://maps.google.com/maps/api/js?v=3.3&sensor=true_or_false 위와 같이 버전 정보를 3.3로 설정해서 로딩한다.

Ext.setup({ tabletStartupScreen: 'images/tabletStartupScreen.png', phoneStartupScreen: 'images/phoneStartupScreen.png', tabletIcon:"images/tabletIcon.png", phoneIcon:"images/phoneIcon.png", glossOnIcon: true, statusBarStyle:"black", fullscreen:true, preloadImages:[], scope:this, onReady: function () { // 날짜포멧 Ext.apply(Ext.util.Format, { defaultDateFormat: 'Y/m/d' }); var localMonthNames = ['1월'..
import org.jivesoftware.smack.Connection; import org.jivesoftware.smack.PacketListener; import org.jivesoftware.smack.XMPPConnection; import org.jivesoftware.smack.XMPPException; import org.jivesoftware.smack.filter.MessageTypeFilter; import org.jivesoftware.smack.filter.PacketFilter; import org.jivesoftware.smack.packet.Message; import org.jivesoftware.smack.packet.Packet; import org.jivesoftwa..
smack라이브러는 http://code.google.com/p/asmack/ 에서 가져온걸 사용합니다. import android.app.Activity; import android.os.Bundle; import android.os.Handler; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; import org.jivesoftware.smack.Chat; import org.jivesoftware.smack.Connection; impor..
위와 같이 안드로이드 프로제트를 생성합니다. activity클래스를 phonegap에서 제공되는 DroidGap으로 고친후 webview의 플러그인을 활성화하는 코드를 추가합니다 import android.app.Activity; import android.os.Bundle; import android.webkit.WebSettings; import android.webkit.WebSettings.LayoutAlgorithm; import android.webkit.WebSettings.PluginState; import com.phonegap.*; public class FlashTestActivity extends DroidGap { /** Called when the activity is first..