View
912
Download
1
Embed Size (px)
ANDROID
@JX2015/9/18
RETROFIT+
PICASSO
API
part2
(NO CODE)
API
API
API
API
https://qiita.com/api/v1/
API
GET /api/v1/tags/:url_name/items
:url_name Android
API
https://qiita.com/api/v1/api/v1/tags/Android/items
json
xml(http://qiita.com/tsuyosh/items/7d38f41b2cfb4a6ae24b)
https://qiita.com/api/v1/api/v1/tags/Android/itemshttp://qiita.com/tsuyosh/items/7d38f41b2cfb4a6ae24b
(CODE)
PART2
PICASSO
Picasso.with(mContext).load(url).into(mImageView);
ACTIVITY
AndroidManifest.xml
IntentstartActivity
INTENT
INTENT
Activity(Component)
()
put
putExtra(key, value)
BUNDLE
Bundle
Map
Serializable
getIntent()
Intent
Activity
Intent
LaunchMode, ActionFlagIntent
WEBVIEW
WEBVIEW URLhtml
html
apk
URL loadUrl
URL
Javascript
XSS
WebChromeClient
UI
WebViewClient
URL
WebSettings
WebView
WEBCHROMECLIENT
onJsAlert
WebAlert
WebAndroid
WEBVIEWCLIENT onPageStarted / onPageFinished
URL( / )
onLoadResource
URLimgcssjavascript
WEBVIEWCLIENT
shouldOverrideUrlLoading
URL
trueURLfalseURL
TwitterLINE
()
INTENT ActivityIntent
Intent
Intent
INTENT
Action
Category
Data
ACTION
Intent.ACTION_VIEW
Intent.ACTION_SEND
CATEGORY
Intent.CATEGORY_DEFAULT
Intent
Intent.CATEGORY_LAUNCHER
DATA Data
putExtra(String extra, Bundle data);
Intent.EXTRA_TEXT
ACTION_SENDData()
Intent.EXTRA_STREAM
ACTION_SENDData()
DATA setType(String mimeType)
text/plain
image/jpeg
2
AndroidManifest.xml
Activity
ANDROIDMANIFEST.XML
ACTIVITY Intent
URL setDataURL
ACTION_VIEW
url
SNS
putACTION_SEND
IntentComponent
STARTACTIVITYFORRESULT startActivityForResult(Intent intent, int requestCode)
startActivity
Component
onActivityResult
intent
REQUEST_CODE
ActivityNotFoundException
IntentComponent
ONACTIVITYRESULT onActivityResult(int requestCode, int resultCode, Intent data)
startActivityForResultComponent
requestCode: code
resultCode:
data: data
requestCode
resultCode
URL
URL
URL
Intent
Component
trunk://~
BROWSABLEWeb
Intent
trunk://
trunk://hoge.com
trunk://hoge.com/huga
trunk://hoge.comtrunk://hoge.com/huga
trunk://hoge.com
trunk://
trunk://hoge.com/huga
trunk://hoge.com/
trunk:///huga
trunk:///huga
trunk://hoge.comtrunk://hoge.com/hugatrunk://hoge.com/trunk://%E2%97%AF%E2%97%AF/huga
Intent()