Ticker scrolling on screen startup

by wipand » Tue, 20 May 2008 09:50:12 GMT


Sponsored Links
 Seems like we can start Ticker only on some key event. Is that
possible to start the ticker on screen startup?
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. strings.xml, styled string with params issue

hi,

all i want to do is to define string in strings.xml like this:

hello <b>%s</b>

the problem is that i cannot simply get such SpannedString since if i
have any rich tag like <b></b> i have to use Resources.getText(id) and
if i have any params like %s i have to use Resources.getString(id,
Object...)

but if i have them both i would have to use Resources.getText(id,
Object...) but, well, there is no such method...

i worked-around this by creating SpannableStringBuilder ssb, and for
each % param i call ssb.replace(int, int, CharSequence)

do you know any better solution for this?

thanks
pskink
--~--~---------~--~----~------------~-------~--~----~

2. Back navigation for database stored web pages

Greetings all,

I have a problem with the Back navigation within my web-view.

Here is what I would like to have:
On the device there is a database containing some web-pages. The User
is able to search the content of the database and view the stored
pages. Those pages contain some links.
If the user clicks on one of those links the click is intercepted. If
the reference set within this link is also part of the database, the
stored content is displayed, otherwise a remote URL is loaded.

This works great so far, but the problem I have is, that when I want
to do a back navigation, always the address for my remote location is
displayed and the method for searching the local database is not
shown.

The data from my content provider is displayed with the method:

<code>
  public void showContent(ByteArrayOutputStream content, String title)
  {
    if (activity!=null)
      activity.setTitle(URLDecoder.decode(title));
    // loadData(content.toString(), MIME_TYPE, DEFAULT_ENCODING);
    loadDataWithBaseURL(BASE_URL + title, content.toString(),
MIME_TYPE,
        DEFAULT_ENCODING, REMOTE_URL + title);
  }
</code>

  I implemented my own WebViewClient and overloaded the method '
 shouldOverrideUrlLoading' to intercepted the loading of the requested
URL.
There I parse the URL and call 'showContent' of my WebView to
displayByteArrayOutputStream stored within my database, otherwise I
load the the URL directly by calling 'loadUrl' of the WebView.

On back navigation, the method shouldOverrideUrlLoading is not called
or the URL is formated differently so I could not read the correct
data from the database.

If needed, I can provide a test-application that shows what I mean,
but I hope this will suffice.

Thanks for your help beforehand,

Aracos
--~--~---------~--~----~------------~-------~--~----~

3. paid support

4. Can't bind to local 8600 for debugger (mac)

5. For google employees

6. Dev Phone not available anymore

7. how to specify setWallpaper() for landscape mode???