Is there a description of commands for the command line interface

by Ryck » Fri, 23 Oct 2009 23:00:48 GMT


Sponsored Links
 I haven't been able to find a description of the commands available
when I terminal to my android phone.  Can anyone point me to it?
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Have ListView and other widgets scroll as a whole

Hello all,

I'm trying to achieve the following with my Android search app:

- 2 input boxes where the user can enter criteria to search for
- 1 search button
- when the search button is clicked, a search is performed and on the
same page the matches are shown *below* the 2 input boxes and search
button.
- the results can be quite a few (say up to 50), which won't fit all
on the viewable part of the screen, so the user has to be able to
scroll down in the results.
- when the user scrolls down over the results, the 2 input boxes +
search button should of course also scroll up out of sight.

Basically the behaviour you get when you for example do a google
search on google.com. But, for clarity: I don't want to use the
WebView.

Note that there should be no scrollbar for the results only (that can
be done easily with a standard ListView), the all needs to scroll as a
whole.

The reason I want this behavior is that I don't want to direct the
user to a next screen with the search results; that would be so
annoying having to go back to the "search" screen all the time if you
want to enter another search criteria, like if you figured out you
made a typo.

Now I've read most posts about possible solutions, quite a few people
asked for this before, like:

2. Reliable Http Request needed

I have a game in development that makes http calls to my server.  The
server handles some database interaction and returns some XML for the
game to parse.  The issue is that the connection seems very
unreliable.  I believe my server is in part to blame for this because
it can be somewhat unresponsive at times, but the frequency is MUCH
greater when communicating with the phone than with a browser on a
computer.  I also notice that it gets worse when 3G is not available
for the phone and it is on the edge network.  Is there any way to code
my app to make it more robust?  Do I need to retry calls X times on
failures?

Here is the code I am using now:
try
{
                  URL url = new URL(totalUrl);

                  HttpURLConnection con = (HttpURLConnection) 
url.openConnection();
                  con.setReadTimeout(10000);
                  con.setConnectTimeout(15000);
                  con.setRequestMethod("GET");
                  con.setDoInput(true);

                  // Start the query
                  con.connect();

                  // Read results from the query

                  String payload = "";
                  String line = null;

                  BufferedReader br = new BufferedReader(new InputStreamReader
(con.getInputStream()));
                  while ((line = br.readLine()) != null)
                  {
                          payload += line + "\n";
                  }
                  br.close();

                  SAXParserFactory spf = SAXParserFactory.newInstance();
              SAXParser sp = spf.newSAXParser();

              /* Get the XMLReader of the SAXParser we created. */
              XMLReader xr = sp.getXMLReader();

              SAXHandler mySAXHandler = new SAXHandler();
          xr.setContentHandler(mySAXHandler);

          /* Parse the xml-data from our URL. */
          xr.parse(new InputSource(new StringReader(payload)));
}
catch (MalformedURLException e) {
          e.printStackTrace();
          }
          catch (Exception e)
          {
                  Log.e("XMLREAD", "XML read error", e);
                  Intent errorWindow = new Intent(mapActivity, 
ErrorWindow.class);
                  errorWindow.putExtra("errorCode", 1);
                  gameActivity.startActivity(errorWindow);
          }
          finally {
         if (con != null) {
             con.disconnect();
          }
}

--~--~---------~--~----~------------~-------~--~----~

3. No text zoom in for gmail app on android

4. Getting Friends list from Facebook

5. Too many audioflinger blocked warn,please help.

6. Identifying handsets

7. Reducing application size by exporting some files to SD card