Android рдПрдкреНрд▓рд┐рдХреЗрд╢рди рдХреЗ рд▓рд┐рдП рдЕрдкрдирд╛ рдкрд╣рд▓рд╛ PHP рдмрдирд╛рдПрдБ

рдПрдВрдбреНрд░реЙрдЗрдб рдСрдкрд░реЗрдЯрд┐рдВрдЧ рд╕рд┐рд╕реНрдЯрдо рдиреЗ рд╕реНрдорд╛рд░реНрдЯрдлреЛрди рдмрд╛рдЬрд╛рд░ рдХреЛ рдЭрдЯрдХрд╛ рджрд┐рдпрд╛ :)ред Apple рдХреЗ рд╡рд┐рдкрд░реАрдд, рдЬреЛ рдбреЗрд╡рд▓рдкрд░реНрд╕ рдХреЗ рд▓рд┐рдП рдХрдареЛрд░ рдЖрд╡рд╢реНрдпрдХрддрд╛рдПрдВ рд╣реИрдВ рдЬреЛ iPhone рдРрдк рд╕реНрдЯреЛрд░ рдкрд░ рдЕрдкрдиреЗ рдПрдкреНрд▓рд┐рдХреЗрд╢рди рдкреНрд░рджрд░реНрд╢рд┐рдд рдХрд░рдирд╛ рдЪрд╛рд╣рддреЗ рд╣реИрдВ, Google рдиреЗ рдПрдВрдбреНрд░реЙрдЗрдб рдкреНрд▓реЗрдЯрдлрд╝реЙрд░реНрдо рдУрдкрди (рдореВрд▓ рд╡рд┐рд╕реНрддреГрдд рдЦреБрд▓реЗ рдореЗрдВ) рдмрдирд╛рдпрд╛ред рдЖрдк рд╡рд░реНрддрдорд╛рди рдореЗрдВ PHP рдПрдкреНрд▓рд┐рдХреЗрд╢рди рд▓рд┐рдЦ рд╕рдХрддреЗ рд╣реИрдВред рдЖрдпрд░рдирдЯреЗрдХ рдХреЗ рд▓реЛрдЧреЛрдВ рдиреЗ рдЖрд╡рд╢реНрдпрдХ рдмрдирд╛рдпрд╛ рд╣реИ, рдФрд░ рдПрдВрдбреНрд░реЙрдЗрдб (рдПрд╕рдПрд▓ 4 рдП) рдХреЗ рд▓рд┐рдП рд╕реНрдХреНрд░рд┐рдкреНрдЯрд┐рдВрдЧ рд▓реЗрдпрд░ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдХреЗ, рдЖрдк рдПрдВрдбреНрд░реЙрдЗрдб рдХреЗ рд▓рд┐рдП рдкреАрдПрдЪрдкреА рдПрдкреНрд▓рд┐рдХреЗрд╢рди рдмрдирд╛ рд╕рдХрддреЗ рд╣реИрдВред



рдирд╣реАрдВ!

рдЗрд╕ рд▓реЗрдЦ рдореЗрдВ рдореИрдВ рдЖрдкрдХреЛ рдмрддрд╛рдКрдВрдЧрд╛ рдХрд┐ рдПрдВрдбреНрд░реЙрдЗрдб рдФрд░ рдПрд╕рдПрд▓ 4 рдП рдХреЗ рд▓рд┐рдП рдкреАрдПрдЪрдкреА рдХреИрд╕реЗ рд╕реНрдерд╛рдкрд┐рдд рдХрд░реЗрдВ, рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдХрд░реЗрдВ рдФрд░ рдЙрдкрдпреЛрдЧ рдХрд░реЗрдВ, рд╣рдо рдбреЗрдореЛ рдПрдкреНрд▓рд┐рдХреЗрд╢рди рднреА рджреЗрдЦреЗрдВрдЧреЗ рдФрд░ рдЖрдкрдХреЛ рдкреАрдПрдЪрдкреА рдХреЗ рд▓рд┐рдП рдПрдВрдбреНрд░реЙрдЗрдб рдПрдкреНрд▓рд┐рдХреЗрд╢рди рд╡рд┐рдХрд╕рд┐рдд рдХрд░рдиреЗ рдореЗрдВ рдкрд╣рд▓рд╛ рдЕрдиреБрднрд╡ рдорд┐рд▓реЗрдЧрд╛ред



Android рдХреЗ рд▓рд┐рдП PHP рд╕реНрдерд╛рдкрд┐рдд рдХрд░реЗрдВ



рдПрдВрдбреНрд░реЙрдЗрдб рдХреЗ рд▓рд┐рдП PHP рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, рдЖрдкрдХреЗ рдкрд╛рд╕ рдПрдХ рдлрд╝реЛрди рдпрд╛ рдПрдореБрд▓реЗрдЯрд░ рд╣реЛрдирд╛ рдЪрд╛рд╣рд┐рдП рдЬреЛ рдПрдВрдбреНрд░реЙрдЗрдб рд╕рдВрд╕реНрдХрд░рдг 1.5 рдпрд╛ рдЙрд╕рд╕реЗ рдЕрдзрд┐рдХ рдХрд╛ рд╕рдорд░реНрдерди рдХрд░рддрд╛ рд╣реИ, рдПрдкреНрд▓рд┐рдХреЗрд╢рди рдЗрдВрд╕реНрдЯреЙрд▓реЗрд╢рди рд╕реЗрдЯрд┐рдВрдЧреНрд╕ рдореЗрдВ рднреА, рдЕрдЬреНрдЮрд╛рдд рд╕реНрд░реЛрддреЛрдВ рд╕реЗ рдПрдкреНрд▓рд┐рдХреЗрд╢рди рдЗрдВрд╕реНрдЯреЙрд▓ рдХрд░рдиреЗ рдкрд░ рдПрдХ рдЪреЗрдХрдорд╛рд░реНрдХ рд╣реЛрдирд╛ рдЪрд╛рд╣рд┐рдПред рдЗрд╕ рд╕рдм рдХреЗ рдмрд╛рдж, рдмрд╕ Android APK рдХреЗ рд▓рд┐рдП SL4A рдкрд░реНрдпрд╛рд╡рд░рдг рдФрд░ PHP рдХреЗ рджреЛ рдкреИрдХреЗрдЬ рд╕реНрдерд╛рдкрд┐рдд рдХрд░реЗрдВред



SL4A рдХреЛ рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдирд╛ рдХрд╛рдлреА рд╕рд░рд▓ рд╣реИ, рд╣рд╛рд▓рд╛рдВрдХрд┐, Android рдПрдкреНрд▓рд┐рдХреЗрд╢рди рдкреИрдХреЗрдЬ рдХреЗ рд▓рд┐рдП PHP рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдиреЗ рдХреЗ рдмрд╛рдж, рдЖрдкрдХреЛ рдЗрд╕реЗ рдЪрд▓рд╛рдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реИ рдФрд░ рдкреВрд░реНрдг рд╕реНрдерд╛рдкрдирд╛ рдХреЗ рд▓рд┐рдП "рдЗрдВрд╕реНрдЯреЙрд▓" рдкрд░ рдХреНрд▓рд┐рдХ рдХрд░реЗрдВ (рд╕реНрдерд╛рдкрдирд╛ рдХреЗ рджреМрд░рд╛рди, рдкреНрд░реЛрдЧреНрд░рд╛рдо 2 рдПрдордмреА рдХреЗ рдЖрд╕рдкрд╛рд╕ рдХрд╣реАрдВ рднреА рдбрд╛рдЙрдирд▓реЛрдб рд╣реЛрддрд╛ рд╣реИ )ред рдпрджрд┐ рдЖрдкрдХреЛ рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдиреЗ рдореЗрдВ рд╕рдорд╕реНрдпрд╛ рд╣реИ, рддреЛ Vimeo ( рдпрд╛ рдпрд╣рд╛рдБ ) рдкрд░ рдПрдХ рд╡реАрдбрд┐рдпреЛ рдкреНрд░рджрд░реНрд╢рди рд╣реИред



Android рдХреЗ рд▓рд┐рдП PHP рд╡рд┐рдХрд╛рд╕ рд╡рд╛рддрд╛рд╡рд░рдг рдХреА рд╕реНрдерд╛рдкрдирд╛



рдпрджрд┐ рдЖрдкрдиреЗ рдПрдВрдбреНрд░реЙрдЗрдб рдХреЗ рд▓рд┐рдП PHP рд╕реНрдерд╛рдкрд┐рдд рдХрд┐рдпрд╛ рд╣реИ, рддреЛ рд╕реИрджреНрдзрд╛рдВрддрд┐рдХ рд░реВрдк рд╕реЗ, рдЖрдк рдЕрдкрдиреЗ рдлреЛрди рдкрд░ рдПрдкреНрд▓рд┐рдХреЗрд╢рди рд▓рд┐рдЦ рд╕рдХрддреЗ рд╣реИрдВред рд▓реЗрдХрд┐рди рд╡реНрдпрд╛рд╡рд╣рд╛рд░рд┐рдХ рджреГрд╖реНрдЯрд┐рдХреЛрдг рд╕реЗ, рдпрд╣ рдПрдХ рдЕрдЪреНрдЫрд╛ рд╡рд┐рдЪрд╛рд░ рдирд╣реАрдВ рд╣реЛрдЧрд╛ред рдЖрдкрдХреЛ рдЬреЛ рдХрд░рдирд╛ рд╣реИ, рд╡рд╣ рдПрдВрдбреНрд░реЙрдЗрдб рдПрд╕рдбреАрдХреЗ рдбрд╛рдЙрдирд▓реЛрдб рдХрд░реЗрдВ, рдПрдореБрд▓реЗрдЯрд░ рдЗрдВрд╕реНрдЯреЙрд▓ рдХрд░реЗрдВ рдФрд░ рдЕрдкрдиреЗ рдкрд╕рдВрджреАрджрд╛ рд╕рдВрдкрд╛рджрдХ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдХреЗ рдХреЛрдб рд▓рд┐рдЦрдирд╛ рд╢реБрд░реВ рдХрд░реЗрдВред



рдПрд╕рдбреАрдХреЗ рдбрд╛рдЙрдирд▓реЛрдб рдХрд░рдиреЗ рдХреЗ рдмрд╛рдж, рд╕рд╛рдордЧреНрд░реА рдХреЛ рдЕрдирдЬрд╝рд┐рдк рдХрд░реЗрдВ, рдЯреВрд▓ рдбрд╛рдпрд░реЗрдХреНрдЯрд░реА рдореЗрдВ рд╕реНрдерд┐рдд рдПрдВрдбреНрд░реЙрдЗрдб рдПрдкреНрд▓рд┐рдХреЗрд╢рди рдХреЛ рд▓реЙрдиреНрдЪ рдХрд░реЗрдВ, рдФрд░ рдПрдореБрд▓реЗрдЯрд░ рдХреЛ рд╕реНрдерд╛рдкрд┐рдд рдХрд░реЗрдВред рдПрдВрдбреНрд░реЙрдЗрдб рдПрд╕рдбреАрдХреЗ рдФрд░ рдПрд╡реАрдбреА рдореИрдиреЗрдЬрд░ рдореЗрдиреВ рдореЗрдВ, рд╡рд░реНрдЪреБрдЕрд▓ рдбрд┐рд╡рд╛рдЗрд╕реЗрд╕ рдЪреБрдиреЗрдВ рдФрд░ рдиреНрдпреВ рдмрдЯрди рдкрд░ рдХреНрд▓рд┐рдХ рдХрд░реЗрдВред рдЕрдкрдиреЗ рдПрдореБрд▓реЗрдЯрд░ рдХрд╛ рдирд╛рдо (рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП, "Droid2") рдФрд░ Android 2.2 рдЪреБрдиреЗрдВред рдПрд╕рдбреА рдХрд╛рд░реНрдб рдХреЗ рдЖрдХрд╛рд░ рдХреЗ рд░реВрдк рдореЗрдВ 10 рдПрдордмреА рджрд░реНрдЬ рдХрд░реЗрдВ рдФрд░ рдПрд╡реАрдбреА рдмрдирд╛рдПрдВ рдкрд░ рдХреНрд▓рд┐рдХ рдХрд░реЗрдВред



рдЕрдм рдЖрдкрдХреЗ рдкрд╛рд╕ рдПрдореБрд▓реЗрдЯрд░ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рд╣реИ, рд╕реНрдЯрд╛рд░реНрдЯ рдмрдЯрди рдкрд░ рдХреНрд▓рд┐рдХ рдХрд░реЗрдВред рдпрд╣рд╛рдБ рдХреБрдЫ рдХрдард┐рдирд╛рдИ рд╣реИ, рдЖрдк рд╕рд┐рд░реНрдл рдЖрдкрдХреЗ рджреНрд╡рд╛рд░рд╛ рдмрдирд╛рдП рдЧрдП рд╡рд░реНрдЪреБрдЕрд▓ рдбрд┐рд╡рд╛рдЗрд╕ рдкрд░ рдлрд╝рд╛рдЗрд▓реЛрдВ рдХреЛ рдХреЙрдкреА рдирд╣реАрдВ рдХрд░ рд╕рдХрддреЗред рдЖрдкрдХреЛ рдкреЛрд░реНрдЯ рдлрд╝реЙрд░реНрд╡рд░реНрдбрд┐рдВрдЧ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдХрд░рдиреЗ рдФрд░ рдЕрдкрдиреА PHP рд╕реНрдХреНрд░рд┐рдкреНрдЯ рдХреЛ adb рдирд╛рдордХ рдПрдХ рдкреНрд░реЛрдЧреНрд░рд╛рдо рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдХреЗ рд╡рд░реНрдЪреБрдЕрд▓ рдбрд┐рд╡рд╛рдЗрд╕ рдкрд░ рд░рдЦрдиреЗ рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реИ, рдЬреЛ Android SDK рдХрд╛ рд╣рд┐рд╕реНрд╕рд╛ рд╣реИред рдпрд╣ рдЙрдкрдХрд░рдг рдирд┐рд░реНрджреЗрд╢рд┐рдХрд╛ рдореЗрдВ рднреА рд╕реНрдерд┐рдд рд╣реИред



рдЕрдЧрд▓рд╛, рдЖрдк рдЕрдкрдиреЗ рд╡рд░реНрдЪреБрдЕрд▓ рдбрд┐рд╡рд╛рдЗрд╕ рдкрд░ рд╕рд░реНрд╡рд░ рд╢реБрд░реВ рдХрд░рддреЗ рд╣реИрдВ, рдЕрдкрдиреА рд╕реНрдХреНрд░рд┐рдкреНрдЯ рдХреЛ рд╕реНрдерд╛рдирд╛рдВрддрд░рд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рд╕рд░реНрд╡рд░ рд╕реЗ рдХрдиреЗрдХреНрдЯ рдХрд░рддреЗ рд╣реИрдВред рдирд┐рдореНрди рдЪрд░рдг рдЖрдкрдХреЛ рд╣рд░ рдЪреАрдЬ рдХреЛ рдпрдерд╛рд╕рдВрднрд╡ рддреЗрдЬ рдЪрд▓рд╛рдиреЗ рдореЗрдВ рдорджрдж рдХрд░реЗрдВрдЧреЗред (рдЖрдк рдЗрд╕ рдкреНрд░рдХреНрд░рд┐рдпрд╛ рдХрд╛ рдкреВрд░рд╛ рдкреНрд░рд▓реЗрдЦрди рдпрд╣рд╛рдБ рдкрдврд╝ рд╕рдХрддреЗ рд╣реИрдВ)ред



рдЕрдкрдиреЗ рд░рдирд┐рдВрдЧ рд╡рд░реНрдЪреБрдЕрд▓ рдбрд┐рд╡рд╛рдЗрд╕ рдкрд░, рдПрдкреНрд▓рд┐рдХреЗрд╢рди рд╕реНрдХреНрд░реАрди рдкрд░ рдЬрд╛рдПрдВ рдФрд░ SL4A рджрдмрд╛рдПрдВред

# SL4A рд╕реНрдХреНрд░реАрди рдкрд░, рдореЗрдиреВ рдмрдЯрди рджрдмрд╛рдПрдВ, рджреГрд╢реНрдп рдЪреБрдиреЗрдВ рдФрд░ рдЗрдВрдЯрд░рдкреНрд░рд┐рдЯрд░реНрд╕ рдЪреБрдиреЗрдВред

# рдлрд┐рд░ рд╕реЗ рдореЗрдиреВ рджрдмрд╛рдПрдВ, рдкреНрд░рд╛рд░рдВрдн рд╕рд░реНрд╡рд░ рдХрд╛ рдЪрдпрди рдХрд░реЗрдВ рдФрд░ рдирд┐рдЬреА рдЪреБрдиреЗрдВред

# рдиреАрдЪреЗ рд╕реВрдЪрдирд╛ рдХреНрд╖реЗрддреНрд░ (Android рд╕реВрдЪрдирд╛ рдкрдЯреНрдЯреА) рдХреЛ рдХрдо рдХрд░реЗрдВ рдФрд░ рдЖрдкрдХреЛ SL4A рд╕реЗрд╡рд╛ рджрд┐рдЦрд╛рдИ рджреЗрдЧреАред (рд╕реЗрд╡рд╛ рдкрд░ рдХреНрд▓рд┐рдХ рдХрд░реЗрдВ рдФрд░ рдЙрд╕ рдкреЛрд░реНрдЯ рдирдВрдмрд░ рдХреЛ рд▓рд┐рдЦреЗрдВ, рдЬрд┐рд╕ рдкрд░ рдЖрдкрдХрд╛ рд╕рд░реНрд╡рд░ рд╕реБрди рд░рд╣рд╛ рд╣реИ, рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП 47000ред)

# рдПрдХ рдХрдорд╛рдВрдб рдкреНрд░реЙрдореНрдкреНрдЯ рдЦреЛрд▓реЗрдВ рдФрд░ adb рдХрдорд╛рдВрдб рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдХреЗ рдкреЛрд░реНрдЯ рдлрд╝реЙрд░рд╡рд░реНрдбрд┐рдВрдЧ рд╕реЗрдЯ рдХрд░реЗрдВред рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП, рдХрдорд╛рдВрдб "adb рдлреЙрд░рд╡рд░реНрдб tcp: 9999 tcp: 47000" рджрд░реНрдЬ рдХрд░реЗрдВ (рдЕрдкрдиреЗ рдкреЛрд░реНрдЯ рдирдВрдмрд░ рдХреЗ рд╕рд╛рде 47000 рдмрджрд▓реЗрдВ)ред

# рдкрд░реНрдпрд╛рд╡рд░рдг рдЪрд░ AP_PORT рд╕реЗрдЯ рдХрд░реЗрдВред UNIX рдпрд╛ Mac рдкрд░, "рдирд┐рд░реНрдпрд╛рдд рдХрд░реЗрдВ AP_PORT = 9999"ред рд╡рд┐рдВрдбреЛрдЬ рдкрд░, "AP_PORT = 9999 рд╕реЗрдЯ рдХрд░реЗрдВред"

# рдПрдореБрд▓реЗрдЯрд░ рдХрд╛ рдкрд░реАрдХреНрд╖рдг рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, "рд░рди рдПрдбреАрдмреА рдкреБрд╢ my_script.php / sdcard / sl4a / рд╕реНрдХреНрд░рд┐рдкреНрдЯ" (рдЕрдкрдиреА рд╕реНрдХреНрд░рд┐рдкреНрдЯ рдХреЗ рдирд╛рдо рдХреЗ рд╕рд╛рде my_script.php рдХреЛ рдмрджрд▓реЗрдВ) рдЪрд▓рд╛рдПрдВред



рдЖрдк рдЕрд╕рд▓реА рдлреЛрди рдХреЗ рд╕рд╛рде рднреА рдХрд╛рдо рдХрд░ рд╕рдХрддреЗ рд╣реИрдВред рдПрдореБрд▓реЗрдЯрд░ рдХреЗ рд╕рд╛рде рд╕рдорд╛рди рдЪрд░рдгреЛрдВ рдХрд╛ рдкрд╛рд▓рди рдХрд░реЗрдВред рдкреНрд░рдХреНрд░рд┐рдпрд╛ рдХреЛ рд╕реБрд╡рд┐рдзрд╛рдЬрдирдХ рдмрдирд╛рдиреЗ рдХреЗ рд▓рд┐рдП, ANDROID_HOME рдкрд░реНрдпрд╛рд╡рд░рдг рдЪрд░ рд╕реЗрдЯ рдХрд░реЗрдВ, рдЬреЛ рдЖрдкрдХреЗ Android SDK рдХреЗ рд╕реНрдерд╛рди рдХреЛ рдЗрдВрдЧрд┐рдд рдХрд░реЗрдЧрд╛ рдФрд░ рдкрде рдирд┐рд░реНрджреЗрд╢рд┐рдХрд╛ рдХреА рд╕реВрдЪреА рдореЗрдВ рдкрде рдирд┐рд░реНрджреЗрд╢рд┐рдХрд╛ рдореЗрдВ рдЬреЛрдбрд╝ рджреЗрдЧрд╛ ( рдХреБрдЫ рдРрд╕рд╛ рдЬреЛ рдореБрдЭреЗ рд╡рд╛рд╕реНрддрд╡ рдореЗрдВ рд╕рдордЭ рдореЗрдВ рдирд╣реАрдВ рдЖрдпрд╛ рдХрд┐ рдпрд╣ рдлреЛрди рдкрд░ рдХреИрд╕реЗ рдХрд┐рдпрд╛ рдЬрд╛рдП, рдЕрдЧрд░ рдкрд╛рдардХреЛрдВ рдХреЛ рдкрддрд╛ рд╣реИ, рддреЛ рдЙрдиреНрд╣реЗрдВ рдЯрд┐рдкреНрдкрдгрд┐рдпреЛрдВ рдореЗрдВ рд▓рд┐рдЦреЗрдВ )



PHP рдореЗрдВ Android рдПрдкреНрд▓рд┐рдХреЗрд╢рди рдмрдирд╛рдирд╛



PHP рдореЗрдВ рдПрдкреНрд▓рд┐рдХреЗрд╢рди рд▓рд┐рдЦрдирд╛ рдПрдХ рдмрд╣реБрдд рд╣реА рдЖрд╕рд╛рди рдкреНрд░рдХреНрд░рд┐рдпрд╛ рд╣реИ рдХреНрдпреЛрдВрдХрд┐ рдЖрдкрдиреЗ рдКрдкрд░ рд╡рд░реНрдгрд┐рдд рд╕рдм рдХреБрдЫ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдХрд┐рдпрд╛ рд╣реИред рдХреЗрд╡рд▓ рдзреНрдпрд╛рди рджреЗрдиреЗ рдпреЛрдЧреНрдп рдмрд╛рдд рдпрд╣ рд╣реИ рдХрд┐ Android рдХреЗ рд▓рд┐рдП PHP рдХрд╛ рд╕рдВрд╕реНрдХрд░рдг рдмрд╣реБрдд рдЫреЛрдЯрд╛ рд╣реИред рдЖрдкрдХреЗ рдирд┐рдкрдЯрд╛рди рдореЗрдВ PHP рдФрд░ JSON рд╕рдорд░реНрдерди рдХреЗ рдореВрд▓ рдХрд╛рд░реНрдп рд╣реЛрдВрдЧреЗред рдФрд░ рдЕрдЧрд░ рдЖрдк рдПрдХ рдПрдВрдбреНрд░реЙрдЗрдб рдбреЗрд╡рд▓рдкрд░ рд╣реИрдВ рдЬреЛ рдПрдВрдбреНрд░реЙрдЗрдб рдХреЗ рд▓рд┐рдП рдЬрд╛рд╡рд╛ рдлреНрд░реЗрдорд╡рд░реНрдХ рд╕реЗ рдЕрдЪреНрдЫреА рддрд░рд╣ рд╕реЗ рдкрд░рд┐рдЪрд┐рдд рд╣реИрдВ, рддреЛ рдЖрдк рджреЗрдЦреЗрдВрдЧреЗ рдХрд┐ рдПрдВрдбреНрд░реЙрдЗрдб рдХреЗ рд▓рд┐рдП рд╕реНрдХреНрд░рд┐рдкреНрдЯрд┐рдВрдЧ рд▓реЗрдпрд░ рдЙрди рд╕рднреА рдШрдЯрдХреЛрдВ рддрдХ рдкрд╣реБрдВрдЪ рдкреНрд░рджрд╛рди рдирд╣реАрдВ рдХрд░рддрд╛ рд╣реИ рдЬреЛ рдЖрдкрдХреЛ рдЬрд╛рд╡рд╛ рд╡рд┐рдХрд╛рд╕ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдорд┐рд▓реЗрдЧрд╛ ( рдЪрд▓реЛ рдЖрд╢рд╛ рдХрд░рддреЗ рд╣реИрдВ рдХрд┐ рдпрд╣ рдХреЗрд╡рд▓ рдЕрдм рдХреЗ рд▓рд┐рдП рд╣реИ )ред



SL4A рдЬреЛ рдкреНрд░рджрд╛рди рдХрд░рддрд╛ рд╣реИ, рд╡рд╣ Android API рдХреЗ рд╕рдмрд╕реЗрдЯ рдХрд╛ рдПрдХ рдкрд╣рд▓реВ рд╣реИред (SL4A рджреНрд╡рд╛рд░рд╛ рдкреНрд░рджрд╛рди рдХреА рдЧрдИ рд╡рд┐рдзрд┐рдпреЛрдВ рдХреА рдПрдХ рдкреВрд░реА рд╕реВрдЪреА рдпрд╣рд╛рдВ рдЙрдкрд▓рдмреНрдз рд╣реИ ) Android рдХреЗ рд▓рд┐рдП PHP рдХреА рдкрдХрдбрд╝ рдХреНрдпрд╛ рд╣реИ - рдЖрдк рдЖрд╕рд╛рдиреА рд╕реЗ рдПрдкреНрд▓рд┐рдХреЗрд╢рди рдХреЛ рд╡рд┐рдХрд╕рд┐рдд рдХрд░ рд╕рдХрддреЗ рд╣реИрдВ рдФрд░ рджреЗрдЦ рд╕рдХрддреЗ рд╣реИрдВ рдХрд┐ рдпрд╣ рдХреЛрдб рдХреА рдХреБрдЫ рдкрдВрдХреНрддрд┐рдпреЛрдВ рдХреЛ рд▓рд┐рдЦрдХрд░ рдХреИрд╕реЗ рдХрд╛рдо рдХрд░рддрд╛ рд╣реИред рдЖрдЗрдП рдПрдХ рдПрдкреНрд▓рд┐рдХреЗрд╢рди рджреЗрдЦреЗрдВ рдЬреЛ рдЙрджреНрдзрд░рдг рдХреЗ рд╕рд╛рде рдХрд╛рдо рдХрд░рддрд╛ рд╣реИ, рдЬреЛ рдХреЛрдб рдХреА 60 рд╕реЗ рдХрдо рд▓рд╛рдЗрдиреЛрдВ рдХреЛ рд▓реЗрддрд╛ рд╣реИред



<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  1. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  2. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  3. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  4. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  5. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  6. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  7. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  8. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  9. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  10. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  11. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  12. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  13. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  14. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  15. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  16. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  17. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  18. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  19. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  20. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  21. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  22. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  23. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  24. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  25. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  26. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  27. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  28. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  29. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  30. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  31. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  32. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  33. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  34. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  35. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  36. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  37. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  38. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  39. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  40. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  41. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  42. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  43. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  44. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  45. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  46. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  47. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  48. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  49. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



  50. <?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .



<?php define( 'QUOTE_SERVER' , 'http://quoter.take88.com/?ticker=%s' ); require_once( "Android.php" ); $droid = new Android(); $action = 'get_tickers' ; $tickers = '' ; while (TRUE) { switch ($action) { case 'quote' : $droid->dialogCreateSpinnerProgress( "Querying stock information server ..." , "Please wait" ); $droid->dialogShow(); $quotes = @array_slice(json_decode(file_get_contents(sprintf(QUOTE_SERVER, $tickers))), 0, 3); $droid->vibrate(); $droid->dialogDismiss(); // Possible data points. // "SYMBOL","NAME","LAST_TRADE","MORE_INFO","LAST_TRADE_DATE","LAST_TRADE_TIME","OPEN","DAYS_HIGH","DAYS_LOW","DIVIDEND_SHARE","PE_RATIO","52_WEEK_LOW","52_WEEK_HIGH","VOLUME" $output = '' ; for ($i = 0, $cnt = count($quotes); $i < $cnt; $i++) { $output .= "Company: " . $quotes[$i]->NAME . "\n" ; $output .= "Ticker: " . $quotes[$i]->SYMBOL . "\n" ; $output .= "Last trade: $" . $quotes[$i]->LAST_TRADE . "\n" ; $output .= "\n" ; } $output = html_entity_decode($output, ENT_QUOTES, "UTF-8" ); // Something is wrong with ' $output = str_replace( "'" , "'" , $output); $droid->dialogCreateAlert( "Your stock quotes" , $output); $droid->dialogSetPositiveButtonText( "Get new quote" ); $droid->dialogSetNegativeButtonText( "Exit" ); $droid->dialogShow(); $response = $droid->dialogGetResponse(); if ($response[ 'result' ]->which == 'negative' ) { $action = "exit" ; } else { $action = 'get_tickers' ; } break ; case 'get_tickers' : $response = $droid->getInput( "Stock Tickers (max. 3)" , "Enter Tickers.\nSeparate with spaces." ); $tickers = str_replace( ' ' , '+' , $response[ 'result' ]); $droid->vibrate(); $action = 'quote' ; break ; case 'exit' : $droid->exit(); exit(); break ; } } ?> * This source code was highlighted with Source Code Highlighter .







рдЗрд╕ рдХреЛрдб рдХреЛ рд╕рдВрдкрд╛рджрдХ рдореЗрдВ рдХреЙрдкреА рдФрд░ рдкреЗрд╕реНрдЯ рдХрд░реЗрдВ, рдЗрд╕реЗ quoter4android.php рдирд╛рдо рд╕реЗ рд╕рд╣реЗрдЬреЗрдВ рдФрд░ рдПрдореБрд▓реЗрдЯрд░ рдореЗрдВ рдбрд╛рдЙрдирд▓реЛрдб рдХрд░реЗрдВред рдпрджрд┐ рдПрдореБрд▓реЗрдЯрд░ рдирд╣реАрдВ рдЪрд▓ рд░рд╣рд╛ рд╣реИ, рддреЛ рдЗрд╕реЗ рд╢реБрд░реВ рдХрд░реЗрдВ, рдкреЛрд░реНрдЯ рдлрд╝реЙрд░рд╡рд░реНрдбрд┐рдВрдЧ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдХрд░реЗрдВ, рдФрд░ adb рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░рдХреЗ quoter4android.php рдбрд╛рдЙрдирд▓реЛрдб рдХрд░реЗрдВред



рдПрдкреНрд▓рд┐рдХреЗрд╢рди рдХреЛ рдЕрдкрдиреЗ рдПрдореБрд▓реЗрдЯрд░ рдореЗрдВ рд▓реЙрдиреНрдЪ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, рдПрдкреНрд▓рд┐рдХреЗрд╢рди рд╕реНрдХреНрд░реАрди рдкрд░ рдЬрд╛рдПрдВ, SL4A рдЖрдЗрдХрди рдкрд░ рдХреНрд▓рд┐рдХ рдХрд░реЗрдВ рдФрд░ quoter4android.php рдкрд░ рдХреНрд▓рд┐рдХ рдХрд░реЗрдВред



рдЕрдкрдиреЗ рдлрд╝реЛрди рдкрд░ quoter4android.php рдХреЛ рд╕реНрдерд╛рдкрд┐рдд рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП, рдЖрдк рдкреЛрд░реНрдЯ рдлрд╝реЙрд░рд╡рд░реНрдбрд┐рдВрдЧ рдХреЛ рдХреЙрдиреНрдлрд╝рд┐рдЧрд░ рдХрд░ рд╕рдХрддреЗ рд╣реИрдВ, рд▓реЗрдХрд┐рди USB рдХреЗ рдорд╛рдзреНрдпрдо рд╕реЗ рдлрд╝реЛрди рдХреЛ рдХрдВрдкреНрдпреВрдЯрд░ рд╕реЗ рдХрдиреЗрдХреНрдЯ рдХрд░рдирд╛ рдЖрд╕рд╛рди рд╣реИ рдФрд░ рд╕реНрдХреНрд░рд┐рдкреНрдЯ рдХреЛ sl4a / рд╕реНрдХреНрд░рд┐рдкреНрдЯ рдирд┐рд░реНрджреЗрд╢рд┐рдХрд╛ рдореЗрдВ рдХреЙрдкреА рдХрд░реЗрдВред рд╣рд╛рд▓рд╛рдВрдХрд┐, рд╕реНрдХреНрд░рд┐рдкреНрдЯ рдХреЛ рдЪрд▓рд╛рдиреЗ рдХреЗ рд▓рд┐рдП, рдЖрдкрдХреЛ рдЗрд╕реЗ рдХрдВрдкреНрдпреВрдЯрд░ рд╕реЗ рдбрд┐рд╕реНрдХрдиреЗрдХреНрдЯ рдХрд░рдирд╛ рд╣реЛрдЧрд╛, рдЕрдиреНрдпрдерд╛ рдЖрдк рдЗрдВрд╕реНрдЯреЙрд▓ рдХреА рдЧрдИ рд╕реНрдХреНрд░рд┐рдкреНрдЯ рдирд╣реАрдВ рджреЗрдЦреЗрдВрдЧреЗ, рдлрд┐рд░ SL4A рдЖрдЗрдХрди рдкрд░ рдХреНрд▓рд┐рдХ рдХрд░реЗрдВред



рдирд┐рд╖реНрдХрд░реНрд╖



Android рдХреЗ рд▓рд┐рдП SL4A рдФрд░ PHP рдХреЗ рд╕рд╛рде, рдЖрдк рдХрдИ рджрд┐рд▓рдЪрд╕реНрдк рдЪреАрдЬреЗрдВ рдХрд░ рд╕рдХрддреЗ рд╣реИрдВ; рдпрд╣ рд▓реЗрдЦ рд╕рдВрднрд╛рд╡рдирд╛рдУрдВ рдХрд╛ рдПрдХ рдЫреЛрдЯрд╛ рд╕рд╛ рдкреНрд░рджрд░реНрд╢рди рд╣реИред рдпреЗ рд╕рднреА рдПрдкреНрд▓рд┐рдХреЗрд╢рди рдмрд╣реБрдд рдпреБрд╡рд╛ рд╣реИрдВ - SL4A рдХрд╛ рдирдпрд╛ рд╕рдВрд╕реНрдХрд░рдг рддрдм рдЬрд╛рд░реА рдХрд┐рдпрд╛ рдЧрдпрд╛ рдерд╛ рдЬрдм рдореИрдВрдиреЗ рдпрд╣ рд▓реЗрдЦ рд▓рд┐рдЦрд╛ рдерд╛ - рдФрд░ рднрд╡рд┐рд╖реНрдп рдореЗрдВ рд╣рдореЗрдВ рдЕрдзрд┐рдХ рд╕реЗ рдЕрдзрд┐рдХ рдирдИ рд╕реБрд╡рд┐рдзрд╛рдПрдБ рдкреНрд░рд╛рдкреНрдд рд╣реЛрдВрдЧреАред



All Articles