Added support for US Weather queries.
This commit is contained in:
parent
722ac10dcf
commit
21ef08738a
7 changed files with 102 additions and 77 deletions
142
GooglME-2.iws
142
GooglME-2.iws
|
@ -115,42 +115,42 @@
|
|||
<first-group selected-file="file://$PROJECT_DIR$/src/net/thauvin/j2me/googlme/GooglME.java">
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/googlme/GooglME.java" pinned="false">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="709" column="60" selection-start="16068" selection-end="16068" vertical-scroll-proportion="0.21482277">
|
||||
<state line="730" column="31" selection-start="16669" selection-end="16669" vertical-scroll-proportion="0.80236304">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/googlme/HelpScreen.java" pinned="false">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="57" column="11" selection-start="2129" selection-end="2129" vertical-scroll-proportion="0.389738">
|
||||
<state line="50" column="13" selection-start="2084" selection-end="2084" vertical-scroll-proportion="0.25982532">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/GooglME.jad" pinned="false">
|
||||
<entry file="file://$PROJECT_DIR$/build.xml" pinned="false">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="4" column="25" selection-start="165" selection-end="165" vertical-scroll-proportion="0.07303974">
|
||||
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/GooglME-2.jad" pinned="false">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="4" column="25" selection-start="167" selection-end="167" vertical-scroll-proportion="0.07303974">
|
||||
<state line="3" column="19" selection-start="139" selection-end="139" vertical-scroll-proportion="0.054779805">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/midp-1/net/thauvin/j2me/googlme/Util.java" pinned="false">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="62" column="8" selection-start="2264" selection-end="2264" vertical-scroll-proportion="0.24489796">
|
||||
<state line="62" column="8" selection-start="2339" selection-end="2339" vertical-scroll-proportion="0.25778732">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/googlme/MainScreen.java" pinned="false">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="68" column="11" selection-start="2368" selection-end="2368" vertical-scroll-proportion="0.5370569">
|
||||
<state line="68" column="11" selection-start="2449" selection-end="2449" vertical-scroll-proportion="0.56390977">
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
|
@ -159,7 +159,7 @@
|
|||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/googlme/PrefsScreen.java" pinned="false">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="51" column="13" selection-start="2004" selection-end="2004" vertical-scroll-proportion="0.2556391">
|
||||
<state line="51" column="13" selection-start="2086" selection-end="2086" vertical-scroll-proportion="0.2556391">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
|
@ -173,14 +173,14 @@
|
|||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/googlme/HistoryScreen.java" pinned="false">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="49" column="13" selection-start="1921" selection-end="1921" vertical-scroll-proportion="0.2556391">
|
||||
<state line="49" column="13" selection-start="2005" selection-end="2005" vertical-scroll-proportion="0.2556391">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/midp-2/net/thauvin/j2me/googlme/Util.java" pinned="false">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="75" column="57" selection-start="2460" selection-end="2460" vertical-scroll-proportion="0.48872182">
|
||||
<state line="75" column="57" selection-start="2535" selection-end="2535" vertical-scroll-proportion="0.5123523">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
|
@ -201,30 +201,30 @@
|
|||
<component name="J2EEProjectPane" />
|
||||
<component name="NamedScopeManager" />
|
||||
<component name="PackagesPane">
|
||||
<expanded_node url="net" module="GooglME-2" type="package" />
|
||||
<expanded_node url="net.thauvin.j2me.googlme" module="GooglME-2" type="package" />
|
||||
<expanded_node url="net.thauvin.j2me" module="GooglME-2" type="package" />
|
||||
<expanded_node url="" module="GooglME-2" type="module" />
|
||||
<expanded_node url="net.thauvin.j2me.googlme" module="GooglME-2" type="package" />
|
||||
<expanded_node url="net.thauvin" module="GooglME-2" type="package" />
|
||||
<expanded_node url="net" module="GooglME-2" type="package" />
|
||||
<expanded_node url="net.thauvin.j2me" module="GooglME-2" type="package" />
|
||||
</component>
|
||||
<component name="ProjectPane">
|
||||
<expanded_node url="file://$PROJECT_DIR$/src/net/thauvin/j2me/googlme" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/src/net" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="" module="GooglME-2" type="module" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/midp-1/net" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/midp-1/net/thauvin/j2me" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/midp-2/net/thauvin/j2me" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/src" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/midp-2/net/thauvin/j2me/googlme" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/src/net/thauvin/j2me" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/midp-2" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/midp-1/net/thauvin/j2me/googlme" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/src/net/thauvin" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/midp-1/net/thauvin" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/midp-2/net/thauvin" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/midp-1/net" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/midp-2/net" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/midp-2" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/midp-2/net/thauvin" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/src/net/thauvin/j2me/googlme" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/src" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/midp-2/net/thauvin/j2me" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/src/net" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/midp-1/net/thauvin/j2me" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/midp-1" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="" module="GooglME-2" type="module" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/src/net/thauvin/j2me" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/midp-1/net/thauvin" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/src/net/thauvin" module="GooglME-2" type="directory" />
|
||||
<expanded_node url="file://$PROJECT_DIR$/midp-1/net/thauvin/j2me/googlme" module="GooglME-2" type="directory" />
|
||||
</component>
|
||||
<component name="ProjectView">
|
||||
<navigator currentView="ProjectPane" splitterProportion="0.5">
|
||||
|
@ -258,6 +258,20 @@
|
|||
</component>
|
||||
<component name="RunManager">
|
||||
<activeType name="Application" />
|
||||
<configuration selected="false" default="true" type="WebLogic Instance" factoryName="Local">
|
||||
<option name="WORKING_DIRECTORY" />
|
||||
<option name="HOST" value="localhost" />
|
||||
<option name="PORT" value="7001" />
|
||||
<option name="LOCAL" value="true" />
|
||||
<option name="OPEN_IN_BROWSER" value="true" />
|
||||
<option name="OPEN_IN_BROWSER_URL" value="/" />
|
||||
<option name="COMMON_VM_ARGUMENTS" value="" />
|
||||
<option name="DOMAIN_PATH" value="" />
|
||||
<option name="USER" value="weblogic" />
|
||||
<option name="PASSWORD" value="weblogic" />
|
||||
<option name="SERVER_NAME" value="myserver" />
|
||||
<option name="DOMAIN_NAME" value="mydomain" />
|
||||
</configuration>
|
||||
<configuration selected="false" default="true" type="Applet" factoryName="Applet">
|
||||
<module name="" />
|
||||
<option name="MAIN_CLASS_NAME" />
|
||||
|
@ -296,20 +310,6 @@
|
|||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<module name="" />
|
||||
</configuration>
|
||||
<configuration selected="false" default="true" type="WebLogic Instance" factoryName="Local">
|
||||
<option name="WORKING_DIRECTORY" />
|
||||
<option name="HOST" value="localhost" />
|
||||
<option name="PORT" value="7001" />
|
||||
<option name="LOCAL" value="true" />
|
||||
<option name="OPEN_IN_BROWSER" value="true" />
|
||||
<option name="OPEN_IN_BROWSER_URL" value="/" />
|
||||
<option name="COMMON_VM_ARGUMENTS" value="" />
|
||||
<option name="DOMAIN_PATH" value="" />
|
||||
<option name="USER" value="weblogic" />
|
||||
<option name="PASSWORD" value="weblogic" />
|
||||
<option name="SERVER_NAME" value="myserver" />
|
||||
<option name="DOMAIN_NAME" value="mydomain" />
|
||||
</configuration>
|
||||
</component>
|
||||
<component name="SelectInManager" />
|
||||
<component name="StarteamConfiguration">
|
||||
|
@ -357,13 +357,13 @@
|
|||
</todo-panel>
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="58" y="5" width="1445" height="1124" extended-state="0" />
|
||||
<frame x="42" y="29" width="1445" height="1124" extended-state="0" />
|
||||
<editor active="true" />
|
||||
<layout>
|
||||
<window_info id="CVS" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33032128" order="8" />
|
||||
<window_info id="Regex" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
|
||||
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="7" />
|
||||
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="true" weight="0.18090452" order="0" />
|
||||
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="true" weight="0.17803302" order="0" />
|
||||
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33032128" order="1" />
|
||||
<window_info id="Jalopy" active="false" anchor="bottom" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.33" order="8" />
|
||||
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="docked" type="docked" visible="false" weight="0.25" order="1" />
|
||||
|
@ -460,51 +460,30 @@
|
|||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/build.xml">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/googlme/GooglME.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="709" column="60" selection-start="16068" selection-end="16068" vertical-scroll-proportion="0.21482277">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/googlme/HelpScreen.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="57" column="11" selection-start="2129" selection-end="2129" vertical-scroll-proportion="0.389738">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/GooglME.jad">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="4" column="25" selection-start="165" selection-end="165" vertical-scroll-proportion="0.07303974">
|
||||
<state line="3" column="19" selection-start="137" selection-end="137" vertical-scroll-proportion="0.054779805">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/GooglME-2.jad">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="4" column="25" selection-start="167" selection-end="167" vertical-scroll-proportion="0.07303974">
|
||||
<state line="3" column="19" selection-start="139" selection-end="139" vertical-scroll-proportion="0.054779805">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/midp-1/net/thauvin/j2me/googlme/Util.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="62" column="8" selection-start="2264" selection-end="2264" vertical-scroll-proportion="0.24489796">
|
||||
<state line="62" column="8" selection-start="2339" selection-end="2339" vertical-scroll-proportion="0.25778732">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/googlme/MainScreen.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="68" column="11" selection-start="2368" selection-end="2368" vertical-scroll-proportion="0.5370569">
|
||||
<state line="68" column="11" selection-start="2449" selection-end="2449" vertical-scroll-proportion="0.56390977">
|
||||
<folding>
|
||||
<element signature="imports" expanded="true" />
|
||||
</folding>
|
||||
|
@ -513,7 +492,7 @@
|
|||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/googlme/PrefsScreen.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="51" column="13" selection-start="2004" selection-end="2004" vertical-scroll-proportion="0.2556391">
|
||||
<state line="51" column="13" selection-start="2086" selection-end="2086" vertical-scroll-proportion="0.2556391">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
|
@ -527,14 +506,35 @@
|
|||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/googlme/HistoryScreen.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="49" column="13" selection-start="1921" selection-end="1921" vertical-scroll-proportion="0.2556391">
|
||||
<state line="49" column="13" selection-start="2005" selection-end="2005" vertical-scroll-proportion="0.2556391">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/midp-2/net/thauvin/j2me/googlme/Util.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="75" column="57" selection-start="2460" selection-end="2460" vertical-scroll-proportion="0.48872182">
|
||||
<state line="75" column="57" selection-start="2535" selection-end="2535" vertical-scroll-proportion="0.5123523">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/googlme/GooglME.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="730" column="31" selection-start="16669" selection-end="16669" vertical-scroll-proportion="0.80236304">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/build.xml">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/src/net/thauvin/j2me/googlme/HelpScreen.java">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state line="50" column="13" selection-start="2084" selection-end="2084" vertical-scroll-proportion="0.25982532">
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
MIDlet-1: GooglME,/googlme.png,net.thauvin.j2me.googlme.GooglME
|
||||
MIDlet-Jar-URL: GooglME-2.jar
|
||||
MIDlet-Icon: /googlme.png
|
||||
MIDlet-Version: 0.3.0
|
||||
MIDlet-Version: 0.4.0
|
||||
MIDlet-Description: GooglME
|
||||
MIDlet-Name: GooglME
|
||||
MIDlet-Vendor: Erik C. Thauvin
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
MIDlet-1: GooglME,/googlme.png,net.thauvin.j2me.googlme.GooglME
|
||||
MIDlet-Jar-URL: GooglME.jar
|
||||
MIDlet-Icon: /googlme.png
|
||||
MIDlet-Version: 0.3.0
|
||||
MIDlet-Version: 0.4.0
|
||||
MIDlet-Description: GooglME
|
||||
MIDlet-Name: GooglME
|
||||
MIDlet-Vendor: Erik C. Thauvin
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
<wtkrun jadfile="${path.deploy}/${ant.project.name}-2.jad" device="DefaultColorPhone" wait="true"/>
|
||||
</target>
|
||||
|
||||
<target name="build" depends="jar,jar-2" description="Rebuilds project">
|
||||
<target name="build" depends="jar,clean,jar-2" description="Rebuilds project">
|
||||
</target>
|
||||
|
||||
<target name="clean" depends="init" description="Removes classses">
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
</template>
|
||||
<card id="card1" title="GooglME" newcontext="true">
|
||||
<p align="center">
|
||||
GoogleME 0.3 (13Kb)<br/>
|
||||
GoogleME 0.4 (~13Kb)<br/>
|
||||
</p>
|
||||
<p align="center">
|
||||
MIDP 2.0<br/>
|
||||
|
|
|
@ -83,6 +83,11 @@ public class GooglME extends MIDlet implements CommandListener, Runnable
|
|||
*/
|
||||
protected static final String CHOICE_GOOGLE_SMS = "Google SMS";
|
||||
|
||||
/**
|
||||
* Google Weather choice.
|
||||
*/
|
||||
protected static final String CHOICE_WEATHER = "Weather";
|
||||
|
||||
/**
|
||||
* Local Showtimes choice.
|
||||
*/
|
||||
|
@ -107,7 +112,7 @@ public class GooglME extends MIDlet implements CommandListener, Runnable
|
|||
/**
|
||||
* The application version.
|
||||
*/
|
||||
protected static final String APP_VERSION = "0.3";
|
||||
protected static final String APP_VERSION = "0.4";
|
||||
|
||||
/**
|
||||
* The <code>Back</code> command.
|
||||
|
@ -121,7 +126,7 @@ public class GooglME extends MIDlet implements CommandListener, Runnable
|
|||
{
|
||||
CHOICE_GOOGLE_SMS, CHOICE_GOOGLE_LOCAL, CHOICE_FROOGLE_PRICES,
|
||||
CHOICE_GOOGLE_SEARCH, CHOICE_MOVIE_SHOWTIMES, CHOICE_LOCAL_SHOWTIMES,
|
||||
CHOICE_DEFINITION
|
||||
CHOICE_DEFINITION, CHOICE_WEATHER
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -184,6 +189,11 @@ public class GooglME extends MIDlet implements CommandListener, Runnable
|
|||
*/
|
||||
private static final String PREFIX_MOVIE = "movie: ";
|
||||
|
||||
/**
|
||||
* The Weather query prefix.
|
||||
*/
|
||||
private static final String PREFIX_WEATHER = "weather ";
|
||||
|
||||
/**
|
||||
* The history preferences key.
|
||||
*/
|
||||
|
@ -406,6 +416,13 @@ public class GooglME extends MIDlet implements CommandListener, Runnable
|
|||
}
|
||||
}
|
||||
|
||||
// Weather
|
||||
else if (query.startsWith(PREFIX_WEATHER))
|
||||
{
|
||||
_mainScreen.queryFld.setString(query.substring(PREFIX_WEATHER.length()));
|
||||
_mainScreen.actionPopup.setSelectedIndex(choiceIndex(CHOICE_WEATHER), true);
|
||||
}
|
||||
|
||||
// Local
|
||||
else if (isValidString(_location) && query.endsWith('.' + _location))
|
||||
{
|
||||
|
@ -708,6 +725,12 @@ public class GooglME extends MIDlet implements CommandListener, Runnable
|
|||
}
|
||||
}
|
||||
|
||||
// Weather
|
||||
else if (_action.equals(CHOICE_WEATHER))
|
||||
{
|
||||
text = PREFIX_WEATHER + _query;
|
||||
}
|
||||
|
||||
// Default
|
||||
else
|
||||
{
|
||||
|
|
|
@ -71,6 +71,8 @@ public class HelpScreen extends Form
|
|||
append(new StringItem(GooglME.CHOICE_LOCAL_SHOWTIMES + ": ",
|
||||
"To get local movie showtimes, enter the movie's title. For a listing of theaters near you, enter 'theaters'. For a listing of movies playing near you, enter 'movies'. The permanent location setting is automatically added to your query.\n\n"));
|
||||
append(new StringItem(GooglME.CHOICE_DEFINITION + ": ", "For definitions, enter the word or term.\n\n"));
|
||||
append(new StringItem(GooglME.CHOICE_WEATHER + ": ",
|
||||
"To get the latest weather conditions and four-day forecast for a particular U.S. location, just enter your location, zip or city and state.\n\n"));
|
||||
|
||||
addCommand(GooglME.COMMAND_BACK);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue