From developer-tech.com
Category Archives: Uncategorized
Some investigation about MIME type on Android(To be continued)
1. Gmail (Platform: Nexus 7) When open an plain text document without any file extension, Gmail will send an intent as below:
ACTION: android.intent.action.VIEW DATA: content://gmail-ls/davidyoung8906@gmail.com/messages/2234/attachments/0.1/BEST/false TYPE: application/octet-stream
FLAGS: FLAG_GRANT_READ_URI_PERMISSION FLAG_ACTIVITY_FORWARD_RESULT FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET FLAG_ACTIVITY_PREVIOUS_IS_TOP
2 ACTIVITIES MATCH THIS INTENT: c:geo (cgeo.geocaching – cgeo.geocaching.cgeocaches) 快播 (com.qvod.player – com.qvod.player.activity.PlayerActivityNew)
Obviously, the
A good practice of retrieving attachment:
REGISTERING YOUR ANDROID APP FOR FILE TYPES AND EMAIL ATTACHMENTS
Android 常用 mimeType 表
Inter-App Communication – Document Support in iOS Application
As we can see from this post, IOs share a lot of similarity with Android apps in inter application communication. Such communication information resides in Info.plist of iOS application. As described in the post, the iOS inter app communication techniques falls into two categories:
- Custom URL prefixes, e.g. someapp://something/somethingelse?somestuff=whatever
- Custom file type handlers by file extension (e.g. *.txt) or by MIME type (e.g. text/plain).
Android combine both of the attribute in its <data> tag.
getMimeTypeFromExtension getFileExtensionsFromUrl() http://twigstechtips.blogspot.com/2011/09/android-get-file-mime-type-from.html http://developer.android.com/reference/android/content/Intent.html#ACTION_SEND
Analyzing Millions of GitHub Commits
https://www.youtube.com/watch?feature=player_embedded&v=U_LNo_cSc70
It’s a very interesting talk, what’s more interesting is the tool developed by the presenter.
You can find the slides here: http://www.igvita.com/slides/2012/bigquery-github-strata.pdf
The tool: http://www.githubarchive.org/ Github page: https://github.com/igrigorik/githubarchive.org/tree/master/bigquery
I actually tried a query to search the top 100 Android repository by push
Here’s my query on https://bigquery.cloud.google.com/: ”
SELECT repository_name, count(repository_name) as pushes, repository_description, repository_url
FROM [githubarchive:github.timeline]
WHERE type=”PushEvent”
AND repository_language=”Java”
AND PARSE_UTC_USEC(created_at) >= PARSE_UTC_USEC(‘2012-04-01 00:00:00’)
AND repository_description CONTAINS “Android”
GROUP BY repository_name, repository_description, repository_url
ORDER BY pushes DESC
LIMIT 100
”
Here is the result
From the result I immediately spotted that several projects in cyanogenmod repository is on the List. From that I know that cyanogenmod(http://www.cyanogenmod.org/) is aftermarket firmware.