目前分類:Android (2)

瀏覽方式: 標題列表 簡短摘要

 

需先在/sdcard/下放入一份UrlList.txt。

檔案裡面儲存你要自動瀏覽的網址,注意最後一行還要再斷行才可以

例如:

urlListShot

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

暫時記一下,有空再來整理

 

While googling around, I've stumbled upon an interesting project - Android Market API. This project is clearly a result of some Android reverse engineering work, still it's hosted on Google Code site. Funny, isn't it? Oh, by the way - the Android Market protocol uses Google's Protocol Buffers with HTTP as a transport layer.

Anyway, to play with the API you need a Google account (obviously), but also a sort of device identifier referred to as "Android ID". Funny enough, this is not the Android ID which can be obtained usingandroid.provider.Settings.Secure class etc., the right ID can be obtained by "dialing" *#*#8255#*#* - look forDevice ID, remove `android-` prefix.

But is there a way to retrieve this ID programmatically? It required a bit of hacking to reveal, but here's the recipe:

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