SlideShare une entreprise Scribd logo
1  sur  43
17.12.2011
Takahiro Yoshimura (@alterakey)
Flash         Web

    Android

Twitter        →@alterakey
https://github.com/taky/lucene




              …
…

    …
Picasa
Eclipse+SDK (r14 , Android 3.2)

             (0.1.1)

  https://github.com/taky/lucene
Eclipse

File→New→New Android Project
Project Name      lucene

Create project from existing source

Location→Browse
               Finish
…

Properties→Android      Android 3.0



Build Path→Add External Archives→libs
      jar
AndroidManifest.xml
<uses-sdk android:minSdkVersion="8"
android:targetSdkVersion="11" />
<application android:label="@string/app_name"
android:icon="@drawable/icon">
    <activity android:name="MainActivity"
...
android:configChanges="keyboard|keyboardHidden|
orientation|screenLayout|uiMode" />
lucene
URL
URL


Intent

    URL
text/plain     Intent

extra

         URL
text/plain   Intent

URL
Intent



text/plain   Intent
Intent
AndroidManifest.xml
AndroidManifest.xml:
  <category
android:name="android.intent.category.DEFAULT" />
  <data android:mimeType="image/*" />
  <data android:mimeType="text/plain" />
 </intent-filter>
</activity>
URL
ACTION_SEND                           …

              text/plain           EXTRA_TEXT



“If using EXTRA_TEXT, the MIME type should be "text/
plain";”

( http://developer.android.com/reference/android/content/
Intent.html#ACTION_SEND )
text/plain   Intent   extra
      EXTRA_TEXT
(2)


AsyncImageLoader.read:
if (extras.containsKey(Intent.EXTRA_STREAM))
! return context.getContentResolver()....
if (extras.containsKey(Intent.EXTRA_TEXT))
    Log.d(“AIL.read”, String.format(“extra: %s”,
extras.getCharSequence(Intent.EXTRA_TEXT).toString()));
(3)
…


Intent   URL

    http…
http

HttpClient
AndroidHttpClient   DefaultHttpClient
AndroidHttpClient

2.2                 HC
AndroidHttpClient
(HttpUriRequest)



HttpGet, HttpPost, HttpHead, ...

                       →
GET
HttpGet

new HttpGet('http://...')
AHC.execute(HG)     HttpEntity

HttpEntity   HTTP
(2)


HE.getContent() InputStream

                   →
AIL.read:
if (extras.containsKey(Intent.EXTRA_STREAM))
! return context.getContentResolver()....
if (extras.containsKey(Intent.EXTRA_TEXT))
{
! HttpGet req = new
HttpGet(extras.getCharSequence(Intent.EXTRA_TEXT).toS
tring());
! return AndroidHttpClient.newInstance("Lightboxdroid/
0.1.2").execute(req).getEntity().getContent();
}
…


URL
null
AIL.read:
try {
! HttpGet req = ...
! return AndroidHttpClient....
}
catch (IllegalArgumentException e) {
   return null;
}
catch (IOException e) {
   return null;
}
Picasa
Picasa



text/plain   Intent
(2)


text/plain   Intent   URL

URL
github        (GPL-3)




Text Viewer (dawne)
Scribbler (effy) …
アプリを弄ってみる #3 #antama_ws

Contenu connexe

En vedette

CLAS PLUACLD071 Evaluation
CLAS PLUACLD071 EvaluationCLAS PLUACLD071 Evaluation
CLAS PLUACLD071 Evaluationclasleaders
 
serp-iq-buy-viagra-ranking-report
serp-iq-buy-viagra-ranking-reportserp-iq-buy-viagra-ranking-report
serp-iq-buy-viagra-ranking-reportserpIQ
 
Strategies for class
Strategies for classStrategies for class
Strategies for classnucmxh
 
アプリを弄ってみる #2 #antama_ws
アプリを弄ってみる #2 #antama_wsアプリを弄ってみる #2 #antama_ws
アプリを弄ってみる #2 #antama_wsTakahiro Yoshimura
 
アプリを弄ってみる #1 #antama_ws
アプリを弄ってみる #1 #antama_wsアプリを弄ってみる #1 #antama_ws
アプリを弄ってみる #1 #antama_wsTakahiro Yoshimura
 
Viagra-ranking-report
Viagra-ranking-reportViagra-ranking-report
Viagra-ranking-reportserpIQ
 
Eco Shift Power Corp. Overview
Eco Shift Power Corp. OverviewEco Shift Power Corp. Overview
Eco Shift Power Corp. Overviewryancook003
 
LESION LIGAMENTO CRUZADO ANTERIOR
LESION LIGAMENTO CRUZADO ANTERIORLESION LIGAMENTO CRUZADO ANTERIOR
LESION LIGAMENTO CRUZADO ANTERIORBernell Marquez
 
Fracturas e inmovilizaciones
Fracturas e inmovilizacionesFracturas e inmovilizaciones
Fracturas e inmovilizacionesBernell Marquez
 
Enfermedad de charcot marie tooth
Enfermedad de charcot marie toothEnfermedad de charcot marie tooth
Enfermedad de charcot marie toothBernell Marquez
 

En vedette (10)

CLAS PLUACLD071 Evaluation
CLAS PLUACLD071 EvaluationCLAS PLUACLD071 Evaluation
CLAS PLUACLD071 Evaluation
 
serp-iq-buy-viagra-ranking-report
serp-iq-buy-viagra-ranking-reportserp-iq-buy-viagra-ranking-report
serp-iq-buy-viagra-ranking-report
 
Strategies for class
Strategies for classStrategies for class
Strategies for class
 
アプリを弄ってみる #2 #antama_ws
アプリを弄ってみる #2 #antama_wsアプリを弄ってみる #2 #antama_ws
アプリを弄ってみる #2 #antama_ws
 
アプリを弄ってみる #1 #antama_ws
アプリを弄ってみる #1 #antama_wsアプリを弄ってみる #1 #antama_ws
アプリを弄ってみる #1 #antama_ws
 
Viagra-ranking-report
Viagra-ranking-reportViagra-ranking-report
Viagra-ranking-report
 
Eco Shift Power Corp. Overview
Eco Shift Power Corp. OverviewEco Shift Power Corp. Overview
Eco Shift Power Corp. Overview
 
LESION LIGAMENTO CRUZADO ANTERIOR
LESION LIGAMENTO CRUZADO ANTERIORLESION LIGAMENTO CRUZADO ANTERIOR
LESION LIGAMENTO CRUZADO ANTERIOR
 
Fracturas e inmovilizaciones
Fracturas e inmovilizacionesFracturas e inmovilizaciones
Fracturas e inmovilizaciones
 
Enfermedad de charcot marie tooth
Enfermedad de charcot marie toothEnfermedad de charcot marie tooth
Enfermedad de charcot marie tooth
 

Plus de Takahiro Yoshimura

Looking Back: CIS on Managed K8S
Looking Back: CIS on Managed K8SLooking Back: CIS on Managed K8S
Looking Back: CIS on Managed K8STakahiro Yoshimura
 
Drawing Dataflow On Dalvik Bytecodes
Drawing Dataflow On Dalvik Bytecodes Drawing Dataflow On Dalvik Bytecodes
Drawing Dataflow On Dalvik Bytecodes Takahiro Yoshimura
 
Trueseeing: Effective Dataflow Analysis over Dalvik Opcodes
Trueseeing: Effective Dataflow Analysis over Dalvik OpcodesTrueseeing: Effective Dataflow Analysis over Dalvik Opcodes
Trueseeing: Effective Dataflow Analysis over Dalvik OpcodesTakahiro Yoshimura
 
10 (about make 10 with 4 numbers challenge)
10 (about make 10 with 4 numbers challenge)10 (about make 10 with 4 numbers challenge)
10 (about make 10 with 4 numbers challenge)Takahiro Yoshimura
 
Go goes Mobile: Quick Exploration on Go 1.5 and Gomobile
Go goes Mobile: Quick Exploration on Go 1.5 and GomobileGo goes Mobile: Quick Exploration on Go 1.5 and Gomobile
Go goes Mobile: Quick Exploration on Go 1.5 and GomobileTakahiro Yoshimura
 
GroovyなAndroidテスト #atest_hack
GroovyなAndroidテスト #atest_hackGroovyなAndroidテスト #atest_hack
GroovyなAndroidテスト #atest_hackTakahiro Yoshimura
 

Plus de Takahiro Yoshimura (20)

Looking Back 2023
Looking Back 2023Looking Back 2023
Looking Back 2023
 
Fill In The Blank
Fill In The BlankFill In The Blank
Fill In The Blank
 
Ticket To The Dark World
Ticket To The Dark WorldTicket To The Dark World
Ticket To The Dark World
 
Looking back 2022
Looking back 2022Looking back 2022
Looking back 2022
 
Hazy Datagrams
Hazy DatagramsHazy Datagrams
Hazy Datagrams
 
Wartime Pigeons
Wartime PigeonsWartime Pigeons
Wartime Pigeons
 
Securing Supply Chains
Securing Supply ChainsSecuring Supply Chains
Securing Supply Chains
 
Looking Back: CIS on Managed K8S
Looking Back: CIS on Managed K8SLooking Back: CIS on Managed K8S
Looking Back: CIS on Managed K8S
 
Beijing Report 2022
Beijing Report 2022Beijing Report 2022
Beijing Report 2022
 
Asynchronicity
AsynchronicityAsynchronicity
Asynchronicity
 
Outsmarting Smartphone Apps 2
Outsmarting Smartphone Apps 2Outsmarting Smartphone Apps 2
Outsmarting Smartphone Apps 2
 
Outsmarting Smartphone Apps 2
Outsmarting Smartphone Apps 2Outsmarting Smartphone Apps 2
Outsmarting Smartphone Apps 2
 
Outsmarting Smartphone Apps
Outsmarting Smartphone AppsOutsmarting Smartphone Apps
Outsmarting Smartphone Apps
 
Drawing Dataflow On Dalvik Bytecodes
Drawing Dataflow On Dalvik Bytecodes Drawing Dataflow On Dalvik Bytecodes
Drawing Dataflow On Dalvik Bytecodes
 
Trueseeing: Effective Dataflow Analysis over Dalvik Opcodes
Trueseeing: Effective Dataflow Analysis over Dalvik OpcodesTrueseeing: Effective Dataflow Analysis over Dalvik Opcodes
Trueseeing: Effective Dataflow Analysis over Dalvik Opcodes
 
10 (about make 10 with 4 numbers challenge)
10 (about make 10 with 4 numbers challenge)10 (about make 10 with 4 numbers challenge)
10 (about make 10 with 4 numbers challenge)
 
Go goes Mobile: Quick Exploration on Go 1.5 and Gomobile
Go goes Mobile: Quick Exploration on Go 1.5 and GomobileGo goes Mobile: Quick Exploration on Go 1.5 and Gomobile
Go goes Mobile: Quick Exploration on Go 1.5 and Gomobile
 
Android Wear: Good Parts
Android Wear: Good PartsAndroid Wear: Good Parts
Android Wear: Good Parts
 
DEFCON21×S2 REPORT
DEFCON21×S2 REPORTDEFCON21×S2 REPORT
DEFCON21×S2 REPORT
 
GroovyなAndroidテスト #atest_hack
GroovyなAndroidテスト #atest_hackGroovyなAndroidテスト #atest_hack
GroovyなAndroidテスト #atest_hack
 

アプリを弄ってみる #3 #antama_ws

Notes de l'éditeur

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n
  33. \n
  34. \n
  35. \n
  36. \n
  37. \n
  38. \n
  39. \n
  40. \n
  41. \n
  42. \n
  43. \n